com: Linux Common Commands Cheat Sheet By Seth Kenlon
Use this handy Linux command cheat sheet for executing common tasks such as navigating files, installing software, and starting services.
Navigate files Installing software
List directories (with type indicator)
• On Fedora and CentOS, [COMMAND] is dnf $ ls --file-type • On Ubuntu and Debian, [COMMAND] is apt • On OpenSUSE, [COMMAND] is zypper • Other distributions may use different commands Change directory to ``example`` $ cd example Search for an application called example $ sudo [COMMAND] search example Move up one directory $ cd .. Install an application called example $ sudo [COMMAND] install example Move up two directories $ cd ../.. Uninstall an application called example $ sudo [COMMAND] remove example Change to home directory $ cd ~ Services
Get current directory Start services
$ pwd $ sudo systemctl start example
Get absolute path to a file or folder Stop services
$ readlink -f example $ sudo systemctl stop example
Get file type of ``example.ext`` Get status of services
$ file example.ext $ sudo systemctl status example