Commands | Description |
---|---|
$ cd <directory> |
change directory |
$ ls |
list items of current directory |
$ clear |
clean terminal window |
$ pwd |
show working directory |
$ touch <file-name> |
create new file |
$ cp <file-name> <Directory>/<file-name> |
copy file to a directory |
$ mv <file-name> <Directory> |
move file to a directory |
$ rm <file-name> |
delete a file |
$ nano <file-name> |
open file in nano text editor |
$ cat <file-name> |
show content of a file in the terminal |
$ less <file-name> |
show content of a file |
$ <command> --help |
show info about a command |
$ man <program> |
show the manual of mentioned program |
$ grep <word/ file-name> |
search a certain word/ name |
$ echo "some message" > <file-name> |
write message in mentioned file |
$ mkdir <directory> |
create new directory |
$ adduser <user-name> |
add new user account |
$ chown <user> <file-name> |
change ownership of file to mentioned user |
$ chmod |
change mode/ access permissions (Read, Write, Execute) |
Created
May 26, 2019 23:57
-
-
Save theowlsden/89d88f2876d3572067e4ac81d502e2f0 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment