File Navigation & Paths
Moving, Copying & Creating Files
Grep Mastery
Finding Logs
Development CLI
100

cd ..

Move up one directory.

100

touch file.txt

Create an empty file named file.txt if it doesn't already exist.

100

grep "ERROR" app.log

Find every line containing the word ERROR.

100

ls /var/log

List the Linux operating system log files.

100

uvicorn main:app --reload

Start a FastAPI application with automatic reload whenever code changes.

200

cd ~

Go to the current user's home directory.

200

touch one.txt two.txt three.txt

Create three empty files at the same time.

200

grep -i "warning" app.log

Search for warning without caring about uppercase or lowercase letters.

200

journalctl -b

Display logs from the current system boot.

200

gh repo clone octocat/demo

Clone a GitHub repository using the GitHub CLI.

300

pwd

Display the full absolute path of the current working directory.

300

cp report.txt backup.txt

Copy report.txt into a new file named backup.txt.

300

grep -r "TODO" .

Recursively search every file in the current directory tree for TODO.

300

tail -f /var/log/syslog

Continuously watch new system log messages as they are written.

300

gh pr list

List the open Pull Requests in the current GitHub repository.

400

cat ../notes/todo.txt

Display the contents of a file located one directory above in the notes folder.

400

cp -r project backup/

Copy an entire directory and all of its contents recursively.

400

grep -n "Exception" server.log

Search for Exception and display the matching line numbers.

400

docker logs my-container > docker.log

Save the Docker container's logs into a file named docker.log.

400

gh workflow list

Display the GitHub Actions workflows configured for the repository.

500

cat /var/log/syslog

Display the contents of the system log using an absolute path starting from the root directory.

500

mv report.txt archive/

Move the file into the archive directory (or rename it if the destination is a filename).

500

grep -v "^#" config.conf

Show every line except those beginning with a # comment.

500

terraform apply -no-color > terraform.log 2>&1

Run Terraform and save both standard output and error messages into terraform.log.

500

gh run watch

Watch a GitHub Actions workflow run in real time until it completes.

M
e
n
u