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

I need help with this practices on Linux in opensuse OS in command line: 1.) Use

ID: 3713274 • Letter: I

Question

I need help with this practices on Linux in opensuse OS in command line:

1.) Use a command line to add a standard user account on a Linux operating system

a.)set the account name to its203

b.) set the account password as Its@)#S345

2.) Use a command line to add a root user account on a Linux operating system [10]

a.) set the account name to its203admin

b.) set the account password as its203S#$%

3.) Add a new group. The name of the group must be its203group

4.) Add the its203 standard user account as a member of its203Group

5.) Locate all files size greater than 2 GB

6. ) Locate all files and directories that have file size of zero (empty)

7.) Display all files and directories including hidden files located under the home directory of the its203 standard user account

8.) Display inodes of all files and directories (including hidden files and directories) located under the home directory of a root user account

9.) Display the UID, GID, and Groups ID number of the its203 standard user account

10.) Reboot the system after 5 minutes by issuing a command from a terminal window.

11.) If a standard user is currently inside the bin directory and the user needs to return to his/her home directory (/home/its203), which metacharacter user must type on the terminal window to change the directory to the user’s home directory.

12.) Show last 20 lines of a file (pick an arbitrary file or create a new file to complete this task)

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

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

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

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

17.) Display the Linux operating system name

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

Explanation / Answer

For some of the commands u need root access use "sudo su" or sudo before command to run it as administrator

1) add a standard user account

sudo useradd -m its203 -p Its@)#S345


2) add a root user account

> sudo useradd its203admin -s /bin/bash -g sudo -m

> passwd its203admin
   enter : its203S#$%

3) Add a new group

>sudo groupadd its203group

4) Adding the its203 standard user account as a member of its203Group

>sudo usermod -a -G its203group its203

5) Locate all files size greater than 2 GB

>find . -type f -size +2000M

6) Locate all files and directories that have file size of zero

>find . -empty

7) Display all files and directories including hidden files located under the its203 directory

>ls -a /home/its203

8) Display inodes of all files and directorie directory of a root user account

>sudo ls -a -id ls /home/its203admin

9) UID, GID, and Groups ID number of the its203

>id its203

10) Reboot the system after 5 minutes

>shutdown -r +5 "Rebooting in 5 minutes.."

11) the user needs to return to his/her home directory

>cd    or
>cd $HOME    or
>cd ~

12) Show last 20 lines of a file

>watch tail -n 20 myfile.txt

13) Display all files that were modified 2 hours ago

>find . -mtime -2
>find . -amin -120

14) listing all partitions

>sudo fdisk -l

15) Which filesystem is used

>df -T | awk '{print $1,$2,$NF}' | grep "^/dev"

16) Display the currently used and free partition

>df -alh   or
>df -h

17.) Display the Linux operating system name

>uname -a   or
>cat /proc/version


18) list of processes across all terminals

>ps aux | less