adalyn.app Explore Community
Other
Share code
Ubuntu CLI cheat sheet

Based on the officla cheat sheet from https://ubuntu.com/engage/ubuntu-server-cli-cheat-sheet

#ubuntu#linux#cli

Preview (10 cards)

What is the command for listing CPU architecture information?

lscpu

What is the command for checking the status of a service <name>?

sudo systemctl status <service>

What is the command for reloading a service configuration <name>?

sudo systemctl reload <service>

What is the command for following system logs in real time?

journalctl -f

What is the command for viewing logs for a specific systemd unit?

journalctl -u <unit_name>

What is the command for editing cron jobs for the current user?

crontab -e

What is the command for listing cron jobs for the current user?

crontab -l

What is the command for listing files and directories?

ls

What is the command for creating an empty file?

touch <filename>

What is the command for copying files from source to destination?

cp <source> <destination>

Ready to master this source?

Import this source into your Adalyn library to start learning with spaced repetition.