Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
j) Find the number of lines in the password file, on the server. /etc/passwd
k) Create a directory called PROJECT1 and copy all the hidden files from your home directory into the PROJECT1 directory.
IMPORTANT: Do NOT use the -r switch on the cp command when copying the hidden files. It is NOT required and will cause other directory structures to be copied and then they can not be removed!
l) Show the directory listing for the PROJECT1 directory in reverse alphabetical order.
m) Remove the PROJECT1 directory and all files in that directory.
n) Print the calendar for June 2000 and November 2005. You must show the calendar entries side-by-side.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Assume you want to move the file ideas from the current directory to a subdirectory named Work, and you enter the following command: $ mv ideas Work When you examine the Work directory, the file is not listed there. Where is it?arrow_forwardHow is it possible to have two files with the same filename in your account? Assume your home directory is your current directory. What command will move a file named florence to a directory named Proposals, which is a subdirectory of the home directory?arrow_forwardWhat command outputs a long listing of your filenames in the current directory, including the permissions attached to each file?arrow_forward
- Imagine you are in your practice directory. Imagine you have a subdirectory there called permDir. In octal mode, recursively change the permissions on all files and directories under permDir to be the following: user: read, write, and execute group: read, write others: none What command/options would you use to recursively change permissions? What command/options would you use to recursively check to see that you were successful?arrow_forwardWrite the command that will display all the files in the rpm package "vsftpd.x86_64". The commandMUST display the following information for each file:* permissions* owner* group* file size (regular files)* date* filename Assume that the rpm package resides in the /tmp directory, and that the /tmp directory is thecurrent directory.arrow_forwardUse file permissions along with the chown, chmod, and chgrp commands to create a couple of folders: Create a directory (mkdir command) inside your home directory and set the permissions using the symbolic mode of chmod. The directory should be named dir1 and both you and the group cs260 should be able get into the directory and read from files. Only you should be able to write to the directory and no one other than you and the cs260 group should be able to access these files in any way. Create a file in this directory and put your name in it. Log in as Tess or Jessie and show that you can see the contents of the file. Save screenshots of both your commands to set up the folder, a listing of your home directory that shows the folder’s permissions, and you logged in as jesse/tess along with the contents of the file printed out on the screen (use vi or cat for this) Create a directory inside your home directory that both you and the cs260 group have full permissions on. No one else…arrow_forward
- The contents of the user's Documents directory are shown by default in the Open dialog box. How can I make a different directory the one that comes up first?arrow_forwardAn "ls -l" command has described a file as "drwxrwx--x". While of the following statements about that file are true? Select all that apply. A. Anyone can list the contents of this file with an "ls" command. B. The owner can list the contents of this file with an "ls" command. C. Anyone can access files within this directory if they already know the file name. D. The group can add new files to the directory.arrow_forwardAnswer all questions else downvote question 1. Create a script where you prompt the user for input, and the value provided will be a user. Loop through each file in that user's home directory (ignore the sub directories) and count the number of times a file contains the word ERROR (hint use 'wc' command to help with counting) and output the total number of errors at the end of the script. Once completed, take a screenshot of the source code of the script, and of the script executing, to execute the script you will need to create your own sample input, please include the sample input as part of your execution screenshot. question 2. What would be your current working directory if you changed directories to /log/././././../media/log/ssh/test/../users/ question 3. What would be your current working directory if you changed directories to /opt/test/usr/www/sbin/boot/pdfs/./spool/share/etc/./bin/.././httpd/arrow_forward
- Assume your prompt is in the Jobs directory. Give one command to list the contents of the Reports directory and redirect the output to a file named list.txt in the same directory (Reports).arrow_forwardWrite a command that revokes write permissions from group and other for all files in the current working directory.arrow_forwardWrite the command that will create a tar archive of all the files in the directory named"/fir/sec/thi", that exists on the local machine. The name of the tar archive is "/tmp/animal".The command should be executed from the directory /home/user1. Write the command that will extract the tar archive that was created in Question #63. The contentsof the archive should be placed in the directory "/two/four/six". The command should be executedwhile the current directory is /tmp.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- 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
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education