Linux Commands to Know for the CompTIA A+ and Linux+ Exams
Both A+ and Linux+ test command-line knowledge, at very different depths. A+ expects recognition of common commands and what they do; Linux+ expects you to use them with options and combine them. Grouping by task makes them easier to hold than an alphabetical list. Navigation and inspection pwd prints the working directory. cd changes it — cd ~ for home, cd - for the previous directory. ls lists; ls -l gives the long format with permissions and ownership, ls -a includes hidden files beginning with a dot, and ls -lh gives human-readable sizes. find searches the filesystem by name, size, age or type. locate is faster because it queries a pre-built database, at the cost of being only as current as the last database update. which shows the path of an executable. Files and directories cp copies, with -r for directories. mv moves and also renames. rm removes, rm -r recursively — and rm -rf deletes without prompting and without mercy, which is worth respecting. mkdir -p...