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

I need help finding the command line for these Linux practie questions. Use the

ID: 3711730 • Letter: I

Question

I need help finding the command line for these Linux practie questions.

Use the command line to answer following questions in Linux OS:

1.) Display all files that were modified 2 hours ago.

2.) Apply following permissions on Example.desktop file.

User permission: only read and write

Group permission: only read

Other permission: None

3.) Which partition is used for installing the Linux operating system?

4.) Which filesystem is used by currently installed Linux operating system?

5.) Display the currently used and free partition space of a hard-drive used by the Linux operating system.

6.) Display the Linux operating system name

7.) Display the entire list of processes across all terminals including daemons

8.) Display all user passwords

9.) Currently you are logged in to its203 standard user account and you need to switch to a root user account name its203admin, what is the command line switching from the standard user account to the root user account.

10.) The output on the terminal should display the line number and the content of the line that contains the word that starts with the letter c and ends with the letter t.

11.) Install a LibreOffice on the Linux operating system using one of the package manager discussed in this course.

~Thank you

Explanation / Answer

All Answer through Command line in Linux OS:

1.) Display all files that were modified 2 hours ago.
=> Files modified 2 hours ago command is : find . -mmin -120

2.) Apply following permissions on Example.desktop file.
User permission: only read and write
Group permission: only read
Other permission: None
=> user pemission read and write : chmod u+rw Example.desktop file.
group permission only read : chmod g+r Example.desktop file.
other permission none : chmod o Example.desktop file.

3.) Which partition is used for installing the Linux operating system?
=> sudo parted -l

It is your “C:” drive under DOS/Windows used for installing the Linux operating system. root file system represented by a forward slash (/). and it's top of the directory tree & all contains of Linux and everything you install with Linux. and also administrator of the system.

4.) Which filesystem is used by currently installed Linux operating system?
=> mount -v

5.) Display the currently used and free partition space of a hard-drive used by the Linux operating system.
=> df -h

6.) Display the Linux operating system name
=> uname

7.) Display the entire list of processes across all terminals including daemons
=> ps

8.) Display all user passwords
=> sed 's/:.*//' /etc/passwd

9.) Currently you are logged in to its203 standard user account and you need to switch to a root user account name its203admin, what is the command line switching from the standard user account to the root user account.
=> su its203admin

10.) The output on the terminal should display the line number and the content of the line that contains the word that starts with the letter c and ends with the letter t. below I took filename as example
=> grep -n "^c.*t$" example  
grep -n "^c.*t$" filename or file path

11.) Install a LibreOffice on the Linux operating system using one of the package manager discussed in this course.
=> This question mentioned discussed in course, but I don't know what discussion. so I couldn't give answer.

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