ls - list files cd - change directory chown - change ownership chgrp - change group ownership chmod - changing file permissions mkdir - create a new directory - # mkdir newdir Creates a new directory called "newdir" rmdir - remove a directory ( empty directories only ) - # rmdir newdir Removes the *empty* directory "newdir" rm - Remove file(s) and directories - # rm afile Removes the file named "afile" - # rm -R directory Recursively removes the directory "directory" - Meaning it goes through all of the subdirectories, and their subdirectories, and so on, to clear out the entire tree. - A good option for this command, is the "-f" flag - meaning "force" remove. ( rm -Rf dir ) -- be careful with this command - *especially as root* mv - Moves files ( renames ) - # mv src dst The file named "src" is now known as "dst" ( sort of like cp + rm ) - Note: This is how you rename files under linux cp - Copy files - # cp fileA fileB "fileB" now contains a copy of everything in "fileA" - # cp logs/* /archive/logs ( assuming logs is a subdirectory of archive ) touch - Touches a file, updating it's modification time ( or creates a new file ) - # touch somefile "somefile" will be created, if it did not already exist. The modification time on "somefile" will be updated to this second, if it did exist. # touch t[123] n4 z5 n5 cat find - Finds files on the filesystem, by name, size, attributes, owners, etc - # find / -name mylostfile - # find / -name '*file' <- notice it's enclosed in single quotes - that's to keep the shell from substituting the "*" symbol