I need this in Linux. I am using CentOS During this practice you will demonstrat
ID: 3722611 • Letter: I
Question
I need this in Linux. I am using CentOS During this practice you will demonstrate the commands and write down the commands to do the following: I need this in Linux. I am using CentOS
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
Step 1
cd ~
mkdir DIR_1 DIR_2 DIR_3 DIR_ALL DIR_MOV
Step 2
cd DIR_1
touch file_1
cd ~
cd DIR_2
touch file_2
cd ~
cd DIR_3
touch file_3
Step3
cd DIR_1
cd ~
cd DIR_2
cd ~
cd DIR_3
Step3
cp DIR_1/file_1 DIR_MOV
cp DIR_2/file_2 DIR_MOV
cp DIR_3/file_3 DIR_MOV
Step 4
mv DIR_1/file_1 DIR_MOV/
mv DIR_2/file_2 DIR_MOV/
mv DIR_3/file_3 DIR_MOV/
STEP 5
cat DIR_MOV/file_1 >> DIR_ALL/file_all
cat DIR_MOV/file_2 >> DIR_ALL/file_all
cat DIR_MOV/file_3 >> DIR_ALL/file_all
STEP 6
id
Step 7
less DIR_ALL/file_all
Step 8
id
Step 9
hostname
Step 10
ip addr show
OR
ifconfig eth0
STEP 11
ps -a | less
STEP 12
cd ~
ps -a | less | grep -F 'daemon' >> process_for_client
STEP 13
sudo shutdown now
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.