Linux Directory Log Worksheet

734 Words3 Pages
University of Phoenix Material NOTE: This assignment is three pages in length File Processing Commands and Linux Directory Log Worksheet From:Matthew Kirkland Date:06/15/2012 Physical Memory | Within your Linux environment, what UID and PID have the highest amount of physical memory that a process is using? Show all information for that one process. Hint: Use the `ps` command with the proper options to provide output sorted by the amount of physical memory used by each process. Note: The answer to this question does NOT involve the `top` command. Use the `ps` command and the proper options. | Screen Capture of `ps` output | Insert your screen capture here. | Answer: | What UID and…show more content…
ps –l ) and no process modifiers, what is the swap space amount for the bash command? For some reason below it would not let me do a screen shot in for you below but I typed in the code free and received the information below | Screen capture of `ps –l` output | Insert your screen capture here. matthewkirkland@ubuntu:~$ free total used free shared buffers cached Mem: 1981324 1896784 84540 0 355448 788044 -/+ buffers/cache: 753292 1228032 Swap: 262140 2032 260108 matthewkirkland@ubuntu:~$ | Answer | Which column header of the output contains the value in question? Free / number is 84540 What is the swap space amount for the bash process? Code/ free…show more content…
What command would you use to create a new group called mygroup, with a group ID (GID) of 1423? Include the full command and all necessary options. # /usr/sbin/groupadd shared # tail /etc/group Haldaemon:x:68: Xfs:x:43 Gdm:x:42: Rich:x:1423: Mysql:x:27: Test:x:1424: Sharing:x:1425:test,rich # # /usr/sbin/useradd –D Group=1423 Home=/home INACTIVE=-1 EXPIRE= SHELL=/bin/bash SKEL=/etc/skel Create_MAIL_SPOOL=yes # From your current working directory, you have created a new directory (i.e. folder) called bubba. Now, you want to modify the permissions on your new directory to set the following permissions: user:read, write and execute group: read and execute other: read What command would you use to set these permissions? user:read, write and execute/ rwx group: read and execute / r-x other: read/ = r-- You have created a file in your current working directory by typing the following command: touch myfile1.txt Now, you want to change the group ownership of the file myfile1.txt to be a member of group:mygroup. What command would you use to change the group ownership of the file myfile1.txt to be a member of group:mygroup?

More about Linux Directory Log Worksheet

Open Document