The ‘grep’ command is used in Linux to search for specific patterns within files. For example, running ‘grep keyword filename.txt’ will return all lines in filename.txt that contain ‘keyword’. This…
#command line
You can use the curl command to send a GET request to a REST API. For example, ‘curl https://api.example.com/data’ retrieves data from the specified endpoint.
You can use tools like curl or wget on the command line to interact with RESTful APIs. Curl is particularly versatile as it can handle different request methods and send…
You can use the ‘top’ command to view real-time CPU usage by processes, and additionally, ‘htop’ provides a more user-friendly interface. Another option is to use ‘ps’ with specific flags…
Once, I needed to find large files consuming disk space on a server. I used the ‘du’ command to check directory sizes and ‘find’ to locate files over a specific…
You can use the chmod command to set file permissions and the chown command to change the file owner. To secure a directory, setting appropriate permissions can help control who…
You can use the ‘mysqldump’ command to back up a MySQL database from the command line. It’s important to consider factors like the size of the database, consistency during backup,…
‘grep’ can be piped with ‘find’ to search for text patterns in files by combining them like this: find . -type f -exec grep ‘pattern’ {} +. Options like -i…
I once faced a situation where a web application was down, and I used the Linux command line to diagnose the issue. I utilized tools like ‘top’ to monitor system…

2,000 Interview Questions & Answers, in one PDF
- Short answers, in-depth explanations, common mistakes and follow-ups
- 89 topics, from Beginner to Architect, with a clickable contents list
- 226 extra questions that are not on this website
- Free Bonus Pack: 30-day study plan, behavioral questions, salary scripts
Get both books for $9.99 (save $2.99):
The material stays free to read online. This is the organised, offline, print-ready PDF edition. Secure payment by PayPal; your personal download link is emailed after payment is confirmed. Digital product, no shipping.