Skip to content

Instantly share code, notes, and snippets.

@ryuichi24
Last active January 29, 2021 20:21
Show Gist options
  • Save ryuichi24/a53820523639e30b26e9cc76d80b0395 to your computer and use it in GitHub Desktop.
Save ryuichi24/a53820523639e30b26e9cc76d80b0395 to your computer and use it in GitHub Desktop.
list of terminal commands that are useful

Terminal Commands

display the name of files and subdirectories in the directory

ls

Change directory

cd <path>

make a new directory

mkdir <directory name>

make a file

touch <file name>

delete a file

rm <file>

rm <directory>## delete a directory

copy a file

cp <file> <path to the directory>

move a file

mv <file> <path>

rename a file

mv <file> <new file name>

display a content of a file

cat <file>

display full path to the current directory

pwd

open a file with a vim editor

vi <file>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment