
Concept explainers
Solve this using Linux Shell Commands. Provide the screenshoots as well.
Create 4 files named yourID_1.txt, yourID_2.txt, yourID_3, yourID_4.txt and 2 directories named YourName1, YourName2. Move yourID_1.txt, yourID_2.txt, yourID_3.txt in YourName1 directory. Copy yourID_1.txt, yourID_2.txt YourName2 directory. Create another directory YourName3. Now, copy the YourName1 directory along with contents to the YourName3 directory. Now go into the YourName3 directory and check the permissions of the files/directory in there and change the permissions for both group and others to only read-execute for all the files. Now go back one directory and print all the directories and files in the current working directory. Finally, move the YourName3 folder to the root directory and delete the rest of the files and folders in the current working directory. Write down all the commands in the exact same order as you have written in the command line while following the instructions.

Trending nowThis is a popular solution!
Step by stepSolved in 8 steps with 11 images

- Which of the following option of Is command can be used to view hidden files? A.- B. C. -a D. -i Which command creates an empty file if it does not exist? A. cat B. touch C. ed D. read Which option of rm command is used to remove a directory including all its subdirectories? A. -b B. -o C. -p D. -r What is the command to check process status? A. grep B. ps C. count D. cutarrow_forwardWe used the -RequiredServices parameter of the Get-Service, so what did the results tell us what the cmdlet actually did?arrow_forwardWrite the command that will mount a filesystem of type ext4. The device file used for the filesystem is /dev/sdd7. The mount point is /five/four/data.arrow_forward
- d. Within Alienlmage.zip, you have an image of a small partition named alienimage.dd. You want to hide the file picture1.jpg in the disk image, starting at offset 1 MB of the disk image. The rest of the disk image remains unmodified. What commands should you use? Try it and check the accuracy of your outcomes.arrow_forwardWhich command can increase the number of file handles that programs can open in a shell?a. lddb. ulimitc. lba32d. toparrow_forwardYou are working on the Linux system and run the following commands: $ mkdir .new_stuff $ ls After running these commands, you notice that you do not see your newly created directory in the output. Why? List all of the subdirectories in the /home/ directory. Create a directory in the /home/student/ folder named whatever you wish. Now what about deleting that directory? How might you do this? What is another name for the Linux Terminal? What is the difference between relative and absolute directoriesarrow_forward
- What are the linux commad below the questionarrow_forwardQuestion 4 What command will create the archive pics of the folder camera? A. tar cf pics.tar camera B. tar cf pics camera C. tar cf camera pics.tar D. tar cf pics camera.tar Full explain this questionarrow_forwardWhich of these controls MapReduce job output directory file count? Pick one: a. Partitioner partitions b. Mappers c. Reducers HDFS Block: Pick one: a. It represents data physically b. It represents data logically c. The partitioner divides map intermediate output key-values into partitions to ensure that each reducer gets the same amount of key-value pairs in MapReduce.arrow_forward
- • Login via putty and go to /tmp using command cd /tmp . Go back to your home directory Hint use $HOME or tilde (~) a shortcut for your home directory (e.g. /home/user) • Create a new directory called "sandbox". • Now, using command line create directory dir1 and dir2 insandbox directoy. /tmp directory has 3 files command.txt, file 1.txt and file.txt Copy above 3 files from /tmp to sandbox directories. After copying files, Running Tree command should show below structure when you are done. sandbox E commands.txt dir1 file1.txt file2.txt 3 directories, 3 files dir2arrow_forwardE7. Write a simple shell script to display number of files/directories in the current working directory. By using a text editor, write text as shown below and save it as "cmd1.sh": # files & direc tories script # displays # of files and directories echo "number of files & directories is:" && echo | ls -1 | WC -1 You can use bash command to execute script files. To run the cmd1.sh script, type $ bash cmd1. sh. There is also a way to change the script file mode and make it executable using the chmod command. Note that only the owner of a file can use change file mode. More information on chmod is available online or by using man.arrow_forwardThe mode portion of the command format is made up of the following parts: Category of users you are working with: u = user, g = group, o = other or a = all Permissions: r = read, w = write or x = execute Assume the file, pfile1, has the following permissions, r----x-w-. Use symbolic mode to change the permissions to rwxrw-r--.arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education





