- Home
- Interview Questions
- Linux System Administrator
26.
How can you check what processes a specified user (tom) is currently running?
ps command will output the current processes of all or specific users - ps -U tom.
27.
How can you see all the running processes at the system and their resources use on a live auto-refreshing view?
Top lets you see all the processes in the system and sort them by resources usage.
28.
What is the tool provided with gzip for decompression?
The gzip tool provides another tool gunzip for gzip files decompression.
29.
You are waiting for a file to finish upload (newFile.tar.gz) by a user to your directory and you know that the file size is 100M -
how can you sample the file every 5 seconds to see if it was changed?
Answer: You can monitor commands using "watch -n 5 'ls -sh newFile.tar.gz'" and it will give you the output of the command every 5 seconds.
30.
How would you see the contents of a gzip compressed contents without decompressing it first?
Using zcat with the following command: zcat <filename>.gz