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

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...
Need to process these steps in UNIX. To encourage users to get a good night's sleep,...
Need to process these steps in UNIX. To encourage users to get a good night's sleep, it has been decided that the web server will be unavailable from 23:30 each night until 07:00 the next morning. Create a cron file named /etc/cron.d/web that stops httpd each evening at 23:30 and restarts it the next morning at 07:00.
Unix ramdom question. How do you display a list of files in your current directory, sorted...
Unix ramdom question. How do you display a list of files in your current directory, sorted by file size with the largest files at the top.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT