Professional Documents
Culture Documents
Shell Cmds
Shell Cmds
Shell Cmds
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.