0% found this document useful (0 votes)
14 views1 page

Tester1 Linux

The document provides a cheat sheet with Linux terminal commands and shortcuts for file manipulation, navigation, and editing or viewing files. It includes commands for making, copying, moving, deleting, searching, and renaming files and folders. Navigation commands like cd, ls, pwd are also included. Commands for viewing file contents like head, tail, less, more are listed.

Uploaded by

Pas DEN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

Tester1 Linux

The document provides a cheat sheet with Linux terminal commands and shortcuts for file manipulation, navigation, and editing or viewing files. It includes commands for making, copying, moving, deleting, searching, and renaming files and folders. Navigation commands like cd, ls, pwd are also included. Commands for viewing file contents like head, tail, less, more are listed.

Uploaded by

Pas DEN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Linux Cheat Sheet

by tester1 via cheatography.com/19799/cs/2749/

Terminal Shortcuts File Manipu​lation File Manipu​lation continued1

Common Shorcuts make ,copy ,move ,delete commands search commands

CTRL L = Clear the terminal cat <file name > show content of the file grep <te​xtu​wan​tto​sea​rch> <fi​leN​ame> = search
SHIFT Page Up/Down = Go up/down the mkdir = create new folder for text in file
terminal head = from the top mkdir <na​me> grep -i = Ignores upperc​ase​/lo​wercase when
CTRL A = Cursor to start of line cp = copy and rename a file searching
CTRL E = Cursor TO end of line cp -R = copy and rename a file grep -v = displays lines that do not match
CTRL U = Delete left of the cursor mv <txt file name> <fo​lde​rna​me> grep -n = puts a line number in front of each
CTRL K = Delete right of the cursor = move a file to a folder matching line number
CTRL W = Delete word on the left of the cursor mv <fo​lde​rna​me> <fo​lde​rna​me> = move folder grep -c = prints the total count of the matched
CTRL Y = Paste (after CTRL U,K or W) into another folder lines
TAB = auto completion of file or command mv <txt filena​me> <txt filena​me>= rename file grep -r <te​xt> <fo​lde​rNa​me>/ =
TAB TAB = shows you the options of rm <fi​len​ame​>= delete file or files search for file names
commands with rm <fi​len​ame> <fi​len​ame​1>... with occurrence of the text
!! = repeat last command rm -i <fi​len​ame> = ask for confir​mation on
CTRL Z = stops the current each file
touch <fi​len​ame> = create or update a file
Basic navigation
File Manipu​lation continued
Finding you way
editing or viewing files
ls -a = list all files and folders
ls <fo​lde​rNa​me> = list files in folder head -n <#o​fli​nes> <txt fileNa​me>= writes the
ls -lh = Detailed list, Human readable no of lines of the file (from the top) to the
ls -l *.jpg = list jpeg files only screen
ls -lh <fi​leN​ame> = Result for file only tail -n <#o​fli​nes> <txt fileNa​me> = writes the no
cd <fo​lde​rNa​me> = change directory of lines of the file (from the bottom) to the
if folder name has spaces use “ “ screen
cd / = go to root less <txt fileNa​me> = wtites the contents of a
cd .. = go up one folder file onto the screen one page at a time;use
pwd = print working directory space bar to continue
man <co​mma​nd> = shows manual more <txt fileNa​me> = wtites the contents of a
file onto the screen.

By tester1 Published 27th October, 2014. Sponsored by CrosswordCheats.com


cheatography.com/tester1/ Last updated 27th October, 2014. Learn to solve cryptic crosswords!
Page 1 of 1. http://crosswordcheats.com

You might also like