# Advanced Linux interview प्रश्नोत्तरं

Source: https://ravindrabagale.com/mr/aws/ch04-linux-advanced-commands/interview-questions.html
Language: mr (Marathi with English technical terms)

Q1. Nginx log मधले top 10 IPs?

awk '{print $1}' access.log | sort | uniq -c | sort -rn | head

Q2. >, >>, 2>&1?

> overwrite; >> append; 2>&1 stderr ला त्या क्षणी stdout च्या destination कडे पाठवतो.

Q3. Listening ports?

sudo ss -tlnp; जुना पर्याय netstat -tlnp.

Q4. restart आणि reload?

Restart stop/start करतो; downtime शक्य. Reload supported असेल तर चालू connections ठेवून config पुन्हा वाचण्याची विनंती करतो.

Q5. service आणि systemctl?

systemctl native systemd tool. service जुना wrapper; systemd systems वर सामान्य actions forward करतो. enable आणि daemon-reload साठी systemctl.

Q6. Cron चे पाच fields?

Minute, hour, day-of-month, month, weekday. 30 2 * * 1 प्रत्येक सोमवारी 02:30, configured timezone नुसार.

Q7. Service logs?

journalctl -u <service>; -f live, -n 50 शेवटच्या 50, --since "1 hour ago" वेळ filter.

Q8. df आणि du?

df mounted filesystem ची free/used जागा; du files/folders चा वापर मोजतो.

रवींद्र बागले यांची tip

Command सोबत त्याची मर्यादा सांगा. ss local socket दाखवतो; internet reachability साठी बाहेरूनही test लागतो.
