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

Problem 4 (10 points): Answer the following questions about the ls command a) Wh

ID: 3588838 • Letter: P

Question

Problem 4 (10 points): Answer the following questions about the ls command a) What Is command line (flags) will display the filenames, the file sizes, and file type classifications in a single column, one per line? b) What Is command lne sts files and directories of the /var directory in a comma separated list along with the file inode number? c) The command Is -R / lists all files and directories in the root filesystem d) The command Is -ult displays the files in the current directory in long format sorted time e) Give a command for listing all of the files inside of the /sbin directory (including hidden files) as a comma-separated list, and sorted from most-recently modified to least-recently modified f) The ls command can colorize the output it displays (yours may or may not be turned on by default, but the man page will instruct you on how to turn it on). Using color to distinguish file allows users to quickly locate files

Explanation / Answer

1. ls command line(flags) $ ls -1 will display the filenames, the file sizes and file type classifications in a single
column, one per line .

2.ls-m and ls-li command used to list files and directories of the /var directory in a comma separated list along with
the file inode number.

3. The command ls-R/ lists all files and directories in the root system recursively.

4. The command ls-ult displays the files in the current directory in long format sorted by extension time.

5. ls -t | head -n1 for most recently modified files and ls -lAtr | tail -1 for least-recently modfied files

6. --color

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