Short for remove, the rm and rmdir commands will remove (as in permanently delete) files and directories. Be careful while running any command that starts with the word “sudo.” You can instantly render your entire system inoperable by entering a bad sudo command.Using the command line argument -help will usually explain the most commonly used options. Almost every command has switches or arguments that you can use to modify its behavior. Typing any command followed by "-help" will often show quick usage examples.For example, the commands cd /home/user and cd ~ are the same. You can substitute ~ anywhere in a command to represent that path. The full path to that directory is usually something like /home/user/ or /var/home/user/. This directory stores all your personal files. Every user on Linux has a home directory. The tilde (~) is shorthand for your home directory.Be sure to pay attention to capital and lowercase letters when copying or entering any command. ls -a and ls -A are also two different commands. Typing Ls or LS will return a command not found error. Typing ls will list files in your current directory. Capital and lowercase letters are different in Linux. The Linux command line is case-sensitive.Before we get into actual commands, here are a few tips to help avoid confusion and errors:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |