Skip to main content
CloudCareerLabs Logo CloudCareerLabs
Systems Engineering

Linux Prep.

Master shell scripting automation, cron daemon jobs, TCP/IP socket tuning, file permissions, processes vs threads scheduling, and Python administration.

SM
Written by Sachin Mehta • Founder & Principal Cloud Architect Principal cloud infrastructure specialist and systems architect. Former SRE.

Interactive Flashcards

# 1
Unreviewed

How do you write a Bash script to automate task execution?

# 2
Unreviewed

What is the purpose of the crontab, and what is its syntax?

# 3
Unreviewed

How do you find and kill a process running on port 8080?

# 4
Unreviewed

Explain the difference between file permissions chmod 755 and chmod 644.

# 5
Unreviewed

How do you check memory and CPU utilization in real-time?

# 6
Unreviewed

What is the difference between a process and a thread in Linux?

# 7
Unreviewed

How do you find files larger than 100MB in the /var/log directory?

# 8
Unreviewed

What is the difference between systemd services and init scripts?

# 9
Unreviewed

How do you append text to a file in Bash without overwriting it?

# 10
Unreviewed

What is the difference between hard links and soft links?

# 11
Unreviewed

How is Python used in DevOps scripting compared to Bash?

# 12
Unreviewed

How do you write a Bash script that creates 5 log files in the current directory containing custom messages?

Scenario Challenges

Select a scenario below to test your troubleshooting workflow.

Topic: Automated Log Cleanup

Write and schedule a bash script that purges log files older than 7 days from the /var/log/app folder.

Write find /var/log/app -type f -name "*.log" -mtime +7 -exec rm -f {} \; inside a script file. Click to select
Save the file to /usr/local/bin/cleanup.sh and apply execute permissions: chmod +x. Click to select
Open crontab -e and configure: 0 2 * * * /usr/local/bin/cleanup.sh to run daily at 2 AM. Click to select
Selected Sequence

No steps selected yet. Click options above in sequence.