Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I am using Kernel (Macbook Air laptop) to type in these commands Hint: List of c

ID: 3881085 • Letter: I

Question

I am using Kernel (Macbook Air laptop) to type in these commands

Hint: List of commands to read and use: uname, hostname, stty, date, echo, who, whoami, “who am i”, and mv

1.) Display the content of the root directory using long option -

2.) Change your working directory to your login directory without using any option or argument in the command, that is, type just the name of the command only.

3.) Display the pathname of working directory. Is it your home directory?

4.) With appropriate command, display the attributes of one of the files in your working directory. Based on the output, using echo commands, answer the following for that file. Your answer should have descriptive text like: “The character representing file type is: -“. “The owner permission is ”

Your answer should include what the file type letter stands for like ordinary file, directory, soft link, etc.

a.)The character representing the file type

b.)The permissions for the user (owner). NOTE: It is 3 characters

c.)The permissions for the group. NOTE: It is 3 characters

d.) The permissions for others. NOTE: It is 3 characters

e.) The size of the file in bytes

f.) Name of the file

Explanation / Answer

1.) Display the content of the root directory using long option -

ls -l

2.) Change your working directory to your login directory without using any option or argument in the command, that is, type just the name of the command only.

cd

3.) Display the pathname of working directory. Is it your home directory?

pwd

4.) With appropriate command, display the attributes of one of the files in your working directory. Based on the output, using echo commands, answer the following for that file. Your answer should have descriptive text like: “The character representing file type is: -“. “The owner permission is ”

Your answer should include what the file type letter stands for like ordinary file, directory, soft link, etc.

Ans :

Below is the output from my working directory :

uknmsrt1vr:weblogic:/home/weblogic $ ls -lrt
total 652
drwxr-x--- 3 weblogic weblogic 4096 Jan 19 2017 oradiag_weblogic
drwxrwxr-x 3 weblogic weblogic 4096 Apr 27 2017 download
drwxrwxr-x 2 weblogic weblogic 4096 Jul 4 2017 area_post_code_maint
-rw-rw-r-- 1 weblogic weblogic 122198 Aug 21 14:29 threaddump1.log
-rw-rw-r-- 1 weblogic weblogic 129032 Aug 21 14:32 threaddump2.log
-rw-rw-r-- 1 weblogic weblogic 130514 Aug 21 14:35 threaddump3.log
-rw-rw-r-- 1 weblogic weblogic 127729 Aug 21 14:40 threaddump4.log
-rw-rw-r-- 1 weblogic weblogic 136043 Aug 21 14:42 threaddump5.log
uknmsrt1vr:weblogic:/home/weblogic $

Lets take below file :

-rw-rw-r-- 1 weblogic weblogic 127729 Aug 21 14:40 threaddump4.log


a.)The character representing the file type

The character representing file type is: - (first character - of string "-rw-rw-r--"), this is "regular file".

b.)The permissions for the user (owner). NOTE: It is 3 characters

The owner permission is:rw- i.e read and write (first 3 chars after - , rw-)

c.)The permissions for the group. NOTE: It is 3 characters

The group permission is:rw- i.e read and write (next set of 3 chars after owner permission , rw-)

d.) The permissions for others. NOTE: It is 3 characters

The others permission is:r-- i.e read (next set of 3 chars after group permission , r--)

e.) The size of the file in bytes: 127729 bytes

f.) Name of the file: threaddump4.log

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote