Tester1 Linux
Tester1 Linux
CTRL L = Clear the terminal cat <file name > show content of the file grep <textuwanttosearch> <fileName> = search
SHIFT Page Up/Down = Go up/down the mkdir = create new folder for text in file
terminal head = from the top mkdir <name> grep -i = Ignores uppercase/lowercase 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> <foldername> 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 <foldername> <foldername> = 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 filename> <txt filename>= rename file grep -r <text> <folderName>/ =
TAB TAB = shows you the options of rm <filename>= delete file or files search for file names
commands with rm <filename> <filename1>... with occurrence of the text
!! = repeat last command rm -i <filename> = ask for confirmation on
CTRL Z = stops the current each file
touch <filename> = create or update a file
Basic navigation
File Manipulation continued
Finding you way
editing or viewing files
ls -a = list all files and folders
ls <folderName> = list files in folder head -n <#oflines> <txt fileName>= 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 <fileName> = Result for file only tail -n <#oflines> <txt fileName> = writes the no
cd <folderName> = 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 fileName> = 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 <command> = shows manual more <txt fileName> = wtites the contents of a
file onto the screen.