Question

In: Computer Science

What are the UNIX codes for each of these steps Display the directories and sub-directories including...

What are the UNIX codes for each of these steps

  1. Display the directories and sub-directories including files so I can verify your starting point.
  2. Redirect the above step to the lab3.txt file
  3. Make a sub-directory named Files in your user directory

Solutions

Expert Solution

Display the directories and sub-directories including files so I can verify your starting point.

---- You can use ls -R command to list down all the directoring and sub-directories present in the current directory.

-R option list down files recursively meaning it will print the files present in the sub-directories as well.

Example:- I am currently in directory names test which contains sub-directories named abc and xyz. xyz folder contains file xyz in it.

Output of ls -R:

Redirect t the above step to the lab3.txt file:

You can redirect the output of ls -R to lab3.txt by using symbol >

You command will bye like ls -R > lab3.txt

Output

Content inside lab3.txt:

Make a sub-directory named Files in your user directory:

To create subdirectory in the presend directory use command mkdir foldername

Hope i made it clear to you. Enjoy!!!!


Related Solutions

What are the UNIX commands for each of these steps? 1. Copy all of the files...
What are the UNIX commands for each of these steps? 1. Copy all of the files in your Files directory to the Backup directory. 2. Create an ITE130 directory in the Classes Directory 3. Move all the ITE 130 files from the backup directory to the ITE130 directory. 4. Redirect echo step 19 to mark this step in the lab3.txt file 5. Display all of the directories and sub-directories including files so I can verify you completed all the above...
What are the UNIX commands for each of these steps? 1. Delete all the files in...
What are the UNIX commands for each of these steps? 1. Delete all the files in the Classes and Backup directories only. 2. Redirect echo step 23 to mark this step in the lab3.txt file 3. Display all of the directories and sub-directories including files so I can verify you completed all the steps correctly. 4. Repeat the above step and redirect the output to the file lab3.txt without erasing what is already in it! 5. Redirect echo step 26...
UNIX treats file directories in the same fashion as files; that is, both are defined by...
UNIX treats file directories in the same fashion as files; that is, both are defined by the same type of data structure, called an inode. As with files, directories include a nine-bit protection string. If care is not taken, this can create access control problems. For example, consider a file with protection mode 644 (octal) contained in a directory with protection mode 730. How might the file be compromised in this case?
Unix treats file directories in the same fashion as files; that is, both is defined by...
Unix treats file directories in the same fashion as files; that is, both is defined by the same type of data structure, call an inode. As with files, directories include a non-bit protection string. If care is not taken, this can create access control problems. For example, consider a file with protection mode 644 (rw- r-- r--) contained in a directory with protection mode 730 (rwx -wx ---). How might the files be compromised in this case?
An extraction .............. is a convenient way to display each of the steps of a reactive...
An extraction .............. is a convenient way to display each of the steps of a reactive (or acid-base) extraction.
Display and store a long listing of all the regular files and directories in /personal_files. Store...
Display and store a long listing of all the regular files and directories in /personal_files. Store the output in a file called mypersonalfiles. UNIX
Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of...
Linux Directories, File Properties, and the File System in C Understanding Unix/Linux Programming Your version of mv command The mv command is more than just a wrapper around the rename system call. Write a version of mv that accepts two argument. The first argument must be the name of a file, and the second argument may be the name of a file or the name of a directory. If the destination is the name of a directory, then mv moves...
This is unix based server management Part A Steps in the exercise: Write, and verify the...
This is unix based server management Part A Steps in the exercise: Write, and verify the operation of, an rsync command that will perform a differential backup in place of the copy command. Verify that the rsync process is backing up only the incremental files by running it, then running it again, then adding a new file, and running again. Include the option in rsync to delete any files that do not exist in the destination directory. Verify this by...
Compare/contrast MHC-I and MHC-II proteins, including the types of cells that display each.
Compare/contrast MHC-I and MHC-II proteins, including the types of cells that display each.
Use the find command to find all directories under /pub/cs/ whose name is cs160a. Be sure to only display the results that match, do not display any error output.
Unix/Linux1)Use the find command to find all directories under /pub/cs/ whose name is cs160a. Be sure to only display the results that match, do not display any error output.Hint: use: 2>/dev/null.2)Create a one-line command, using he famous.dat file, to add the word " STREET" to the address, for all who live on 2nd or 3rd.For example: '2nd' becomes "2nd STREET" and '3rd' becomes "3rd STREET".Display only the first 9 lines.Hint: use 2 sed statements with pipes.3)Display all lines in famous.dat...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT