Homework 3
1. What command you use to know how much disk space is used for each user?
2. what is -l option does for df command ?
3. what is differences between pkill and kill commands?
4. How to find out if special process is running ?
5. what does pwconv command does ?
6. What is right permission for /etc/shadow file ?
7. How you open new line when you use vi editor ?
8. What is view command ?
9. Create file collad fisrtvi.txt and add :
Your first name and last name
Your address
What version of Linux you are running
Then save file and quit vi
10. Find a line where you have your street on firstvi.txt using grep
I can check disk space for etc , tmp, usr with command du -hs / etc or /usr but not for specific user in my system .Please comment how to
Comment by Tahir — November 17, 2014 @ 5:34 am |
usually user space will be under /home (or /homes ). First check if you have any regular users .
You will need check /etc/passwd file and /home
Then go to /home
cd /home
du -hs *
it will give you how much space used by each user
Comment by raars — November 17, 2014 @ 6:21 am |
For Question 2 using df alone or with option -l make no changes in output.
Comment by Tahir — November 17, 2014 @ 5:37 am |
yes , for now .
we talked about -l option last time .
I just wanted to know if you guys remember .
-l means local .
df -hl will show only local file systems .
Right now you do not have any remote file system , so , df -h and df -hl will give same output.
Comment by raars — November 17, 2014 @ 6:24 am |