Submitted by: Submitted by drjohnson3223
Views: 94
Words: 419
Pages: 2
Category: Science and Technology
Date Submitted: 09/22/2014 06:09 PM
University of Phoenix Material
File Processing Commands Worksheet
* What UID and PID have the highest amount of physical memory a process has used and is not swapped out? Show all processes and full output.
UID – “d” PID = “A”
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22 root 20 0 0 0 0 S 0.7 0.0 4:11.36 ata/0
212 root 20 0 0 0 0 S 0.7 0.0 2:09.14 scsi_eh_1
3249 student 20 0 80492 37m 6152 S 0.3 7.6 0:01.23 nxagent
3276 nx 20 0 3172 528 456 S 0.3 0.1 0:00.05 nc
3486 student 20 0 49496 11m 9444 S 0.3 2.3 0:00.13 gnome-terminal
3504 student 20 0 2672 1140 880 R 0.3 0.2 0:00.04 top
1 root 20 0 2852 1376 1180 S 0.0 0.3 0:00.88 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
* If using a long listing and no process modifiers, what is the swap space amount for the bash command?
[student@bsit_rh61 ~]$ top
top - 00:35:03 up 18:08, 2 users, load average: 0.01, 0.02, 0.00
Tasks: 138 total, 1 running, 137 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 1.3%sy, 0.0%ni, 98.0%id, 0.0%wa, 0.3%hi, 0.0%si, 0.0%st
Mem: 507472k total, 308388k used, 199084k free, 33048k buffers
Swap: 1015800k total, 0k used, 1015800k free, 133664k cached
* When using top command, what command would you use to kill a process?
lower case “k”
* If you were not using top command, what command would you use to kill a process?
killall
kill [option] PID-list
* What command would you use to manually mount the standard CD-ROM device /dev/db1 at /media/disk?
mount -t vfat /dev/db1/media/disk
* What command would you use to display the amount of available disk space on /dev/db1 in a human readable form?
df -h /dev/db1
* Type in the command grep --help to access the help manual. Using this information and the information from the text, how would you write a command to find the pattern 111 in a file called myfile.txt?...