Try the following unix commands:
Description | Command |
make a new directory | mkdir dirname |
change directory | cd dirname |
change to higher directory | cd .. |
list filenames | ls |
list all files (even hidden) | ls -a |
list filenames with complete information | ls -l |
combine the ls flags -a and -l | ls -al |
show contents of a text file | cat filename |
copy a file to the
directory you created (The file will have the same name) |
cp filename dirname |
change directory | cd dirname |
rename a file (named filename1) | mv filename1 newname |
delete a file | rm filename |
Remove a directory | rmdir dirname |
Remove a directory and contents | rm -r dirname |
show path | echo $PATH |
get help on the ls command | man ls |
Exist unix | exit |
sample of basic commands |