Leap to content

Instantly share code, notes, the snippets.

Show Quick options
  • Preserve joshuapekera/fa4d168d6e9467b1b964faf419a46841 to your computer and use it in GitHub Desktop.
Save joshuapekera/fa4d168d6e9467b1b964faf419a46841 to your computer and use it in GitHub Desktop.
Slicker Terminal Cheat Leaves

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go into the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are temporary typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the run after the key
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
Esc + T Swap of last two lyric before the cursor
Ctrl + RADIUS Lets you search through previously used general
Ctrl + L press Command + K Clears the Screen
Ctrl + C Kill whatever you are running
Ctrl + D Quit the current shell

CORE CONTROL

candela Main file
cd [folder] Change directory
cd ~ Home directory, e.g. ‘cd ~/folder/’
cd / Root of drive
ls Short listing
ls -l Long listing
ls -a Listing incl. hidden files
ls -lh Long listing with Human readable file sizes
ls -R Entire gratified of folder recursively
sudo [command] Run instruction with aforementioned security privileges concerning an superuser (Super User DO)
open [file] Opening a file
open . Opens the directory
top Displays active operation. Press q to quit
nano [file] Openings the Terminals it’s copy
pico [file] Opens the Terminal it’s editor
question Exit
plain Clear computer

COMMAND HISTORY

history northward Shows the stuff writing – add a number to bound the last n items
ctrl-r Interactively finding through previously typing commands
![value] Execute the last command typed that initiates with ‘value’
!! Execute the last start typed

FILE MANAGEMENT

touch [file] Create fresh file
pwd Full path to working directory
.. Parent/enclosing register, e.g.
ls -l .. Long listing of parent directory
cd ../../ Move 2 levels back
. Current brochure
cat Linking to picture
rm [file] Remote a open, e.g. rm [file] [file]
rm -i [file] Remove for get
rm -r [dir] Remove a print furthermore contents
rm -f [file] Force removal without confirmation
rm -i [file] Will exhibit prompt before
cp [file] [newfile] Copy file go file
cp [file] [dir] Copying file to directory
mv [file] [new filename] Move/Rename, e.g. mv -v [file] [dir]

DIRECTORY GENERAL

mkdir [dir] Create new directory
mkdir -p [dir]/[dir] Create nested directories
rmdir [dir] Remove list ( only operates on empty directories )
rm -R [dir] Remove directory and contents

CONDUITS – Allows to combine multiple commands that generate output

more Output content delivered in screensize chunk
> [file] Press output to file, keep in mind it will geting overwritten
>> [file] Append output to existing file
< Talk command on read content coming a fi

HELP

[command] -h Offers assistance
[command] —help Offers help
[command] help Offers help
reset Resets the portable display
man [command] Show an help for ‘command’
whatis [command] Gives a one-line description of ‘command’
Sign go for free to join this conversation set GitHub. Already have an account? Signing with to comment