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

Perform all of the following steps from the bin directory: 1) Copy the famous.da

ID: 3905784 • Letter: P

Question

Perform all of the following steps from the bin directory: 1) Copy the famous.dat file (from assignment 1) from your home directory into the this (bin) directory and call it famous.data. (Hint: use ../ ) 2) Create a directory called datafiles under this (bin) directory. 3) Make a copy of famous.data into the datafiles directory but use the name famous.backup 4) Make a hard link file called famous.hard into the datafiles directory, that links to famous.data 5) Make a symbolic/soft link file called famous.soft into the datafiles directory, that links to famous.data. Note: the soft link source needs to be an absolute path, as does the destination, since the destination is in a different directory.

explanations for each step please (Intro to unix/linux)

Explanation / Answer

1) Copy the famous.dat file (from assignment)

Explaination:- Here the source is assignment directory & famous.dat file which by cp (copy) command is getting copied in root directory with filename famous.dat

2) from your home directory into the this (bin) directory and call it famous.data

cp /root/famous.dat /bin/famous.data

Explaination:- Here the source is root directory & famous.dat file which by cp (copy) command is getting copied in bin directory with filename famous.data.

3) Create a directory called datafiles under this (bin) directory.

STEP 1:- Check the current working directory by using:- pwd (present working directory) command.

STEP 2:- If the output for pwd have /bin (at end), then go to STEP 4, else go to STEP 3.

STEP 3:- Change directory by using cd command as follows:-  cd /bin

STEP 4:- To create datafiles directory in bin type:-

mkdir datafiles

Explaination:- mkdir command in linux is used for make directory. It enables to create directories.

4) Make a copy of famous.data into the datafiles directory but use the name famous.backup

cp /bin/famous.data /bin/datafiles/famous.backup

5) Make a hard link file called famous.hard into the datafiles directory, that links to famous.data

STEP 1:-Check the current working directory by using:- pwd (present working directory) command.

STEP 2:- If the output for pwd have /datafiles (at end), then go to STEP 4, else go to STEP 3.

STEP 3:- Change directory by using cd command as follows:-  cd /bin/datafiles

STEP 4:- To create a hard link type:-

ln famous.data famous.hard

Explaination:- Hard links have same inode numbers as the files to whom they are linked to.

Inode number is the distinct that each file in a linux or unix system has.

6) Make a symbolic/soft link file called famous.soft into the datafiles directory, that links to famous.data

STEP 1:-Check the current working directory by using:- pwd (present working directory) command.

STEP 2:- If the output for pwd have /datafiles (at end), then go to STEP 4, else go to STEP 3.

STEP 3:- Change directory by using cd command as follows:-  cd /bin/datafiles

STEP 4:- To create a soft link type:-

ln -s famous.data famous.soft

Explaination:- Symbolic links have different inode numbers than the files to whom they are linked to.

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