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 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>

What is the command for moving or renaming files?

mv <source> <destination>

What is the command for deleting a file?

rm <filename>

What is the command for displaying the current directory path?

pwd

Ready to master this source?

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