CLI Shortcuts Flashcards
CTRL + c
Kill command for stuck process
>
echo
prints the string written with quotes on the next line
CTRL + a
Move cursor to front
CTRL + e
Move cursor to end
CTRL + u
Clear current line
CTRL + l
Clear terminal window (does not clear history)
Up arrow
Go to previous command
Down arrow
Go to next command
ls -a
List all (displays all the hidden files and folders in current directory)
q
Quit (alternative to CTRL + c)
..
Move up one directory in filesystem
../../..
Move up three directories in filesystem
Absolute Path
Full path starting from the system’s Root directory
Relative Path
Partial path starting from anywhere in the filesystem except for the Root
touch +
create a new file in the current directory
mv + +
Move (move a file or folder to the specified location) (mv myNewFile.js ../Fullstack_Stuff/myNewFile.js)
mv + +
Rename (mv can also be used to rename a file) (mv typoo.js typo.js)