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

During this practice you will demonstrate the commands and write down the comman

ID: 3722492 • Letter: D

Question

During this practice you will demonstrate the commands and write down the commands to do the following:

Step 1 Create these directories = DIR_1, DIR_2, DIR_3, DIR_ALL, DIR_MOV under your /home/user#.

Step 2 Create 3 files = in DIR_1 file is called file_1, in DIR_2 file is called file_2, in DIR_3 file is called file_3.

Step 3 In file_1 put your first and last name. In file_2 put your address. In file_3 put your favorite subject you like to learn.

Step 3 Copy file_1, file_2, and file_3 to the directory DIR_ALL.

Step 4 Move file_1, file_2, and file_3 to the directory DIR_MOV.

Step 5 Add file_1, file_2, and file_3 to the new file called file_all in the DIR_ALL directory.

Step 6 Change the rights on the file called file_all to 744.

Step 7 Display the contents of the file called file_all.

Step 8 Display the group id’s for your user and its’ user ID.

Step 9 Display the host name of your machine.

Step 10 Display the IP address of your machine.

Step 11 Display all the process running on your system, and display it a page at a time.

Step 12 Display all the process running on your system, and grep for the word daemon and dump that in to a file called process_for_client in the users home directory.

Step 13 Display the correct way to shut down your machine

Explanation / Answer

Create these directories = DIR_1, DIR_2, DIR_3, DIR_ALL, DIR_MOV
C:Users>md DIR_1, DIR_2, DIR_3, DIR_ALL, DIR_MOV
-----------------------------------------------------------------------
Create 3 files = in DIR_1 file is called file_1, in DIR_2 file is called file_2, in DIR_3 file is called file_3.
C:UsersDIR_1>notepad file_1.txt
C:UsersDIR_2>notepad file_2.txt
C:UsersDIR_3>notepad file_3.txt
------------------------------------------------------------------
In file_1 put your first and last name. In file_2 put your address. In file_3 put your favorite subject you like to learn.
C:UsersDIR_1>copy con file_1.txt press enter
(Type your text here)
When finished, press CTRL+Z to confirm your action (or CTRL+C to cancel) and ENTER.
C:UsersDIR_2>copy con file_2.txt press enter
C:UsersDIR_3>copy con file_3.txt press enter
---------------------------------------------------------------------------
Copy file_1, file_2, and file_3 to the directory DIR_ALL.
C:UsersdminDesktop>xcopy C:UsersdminDesktopDIR_1 C:UsersdminDesktopDIR_ALL /i
C:UsersdminDesktop>xcopy C:UsersdminDesktopDIR_2 C:UsersdminDesktopDIR_ALL /i
C:UsersdminDesktop>xcopy C:UsersdminDesktopDIR_3 C:UsersdminDesktopDIR_ALL /i
---------------------------------------------------------------------------------------
Move file_1, file_2, and file_3 to the directory DIR_MOV.
C:Users>move C:UsersdminDesktopDIR_1* C:UsersdminDesktopDIR_MOV
C:Users>move C:UsersdminDesktopDIR_2* C:UsersdminDesktopDIR_MOV
C:Users>move C:UsersdminDesktopDIR_3* C:UsersdminDesktopDIR_MOV
-----------------------------------------------------------------
Display the contents of the file called file_all.
C:UsersDIR_MOV>more file_1.txt
----------------------------------------------------------
Display the host name of your machine.
C:Users>hostname
--------------------------------------------------------
Display the IP address of your machine.
C:Users>ipconfig /all
-----------------------------------------------------
Display all the process running on your system, and display it a page at a time.
C:Users>C:UsersdminDesktop>tasklist > C:UsersdminDesktopprocesses.txt
-----------------------------------------------------------
Display the correct way to shut down your machine
C:Users>shutdown -s