Shell Cmds

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

ls List the files in the current directory. ls directory List the files in directory.

ls -l directory List the files in directory with extra information. ls -ltr directory List the files in directory with the newest files last. cat filename(s) Output the file or files to the terminal window. pwd Print the name of the current directory. cd Change the current directory to your home directory. cd directory Change the current directory to directory. cp existing-file new-file Copy existing-file to new-file. The original file still exists. mv existing-file new-file Rename existing-file to new-file. The original file no longer exists. rm filename Delete file filename. rmdir directory Delete directory directory. The directory must be empty. rm -r directory Delete directory directory including everything it contains.

You might also like