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
Question
1. Write Commands: The command chmod ugo-wr+x file1 changes the permission of file1. How do you use the chmod command in octal notation to have the same result?
2. Device a shell command to search for a file named foo starting from the root directory, please send the output to a file called fooResult and the errors to /dev/null.
3. What is the command used to limit the default permissions for a new file or a new directory? Please write the command to set the default file permission to -rw-------and default directory permission to drwx--x--x
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
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
- 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_forwardin linux only the root user can change file ownership with command chown True or falsearrow_forwardWrite the command that will create a compressed tar archive of all the files in the directory named"/farmer/brown/red/barn". The directory resides on the local machine. The name of the tar archiveis "/animals/squeezed". The command should be executed from the directory "/houston/texas".arrow_forward
- develop a new Physical File called STUMAS (Student Master) with Record Length 30 in your Library, use the command CRTPF and prompt it by using F4 - develop 5 records in the File using STRDFU Option 5 or running upddta command against the file - develop new MenuA and add 4 options in it. One of the options should be to take you to MenuB, the other 3 options can by anything of your choice - develop new MenuB and on this Menu have an option for Adding/Changing/Deleting recourds from STUMAS, another option for Runqry against STUMAS and third option to go back to MenuA - In the end shown your library and grant me *ALL authority. You can make by using the wrkobj yourlibrary command and using option 2 edit to grant my id BHATTI full authorityarrow_forwardWrite the command that will locate all files that are larger than 10 megabytes in size, and copy each one to the directory "/overflow".arrow_forwardhi so fir this i used cp /usa/clause/roster.txt / intro but it doesn't work could you please tell me what I am doing wrongarrow_forward
- Create a bash script to manage users. The script will take three script arguments: an input filename of users, a group name, and an operation flag. The input filename of users to manage will be a text file with a list of users to add to the system or remove from the system. Each line in the file will contain a User ID and an encrypted password, which are separated by a space character as a delimiter. Your input user file should have at least five users. You will need to encrypt your passwords via the command line using openssl and place the generated password in your input user file. Write a script that adds and removes users to a Linux system using the input file provided to the script. The users should be added to group provided in the script argument. You will want to check if the group already exists. Use an operation of -a to signify to add the users to the system and an operation of -r to signify removing the users from the system. When adding users, make sure you create the…arrow_forwardWhich of the following is opening a file with a raw path? a. outs = open(“file.txt”,”w”) b. outs = open(r”c:\acc\file.txt”, “a”) c. None of the above d. ins = open(“newfile”, “r”)arrow_forwardPlease answer this ques. i am lostarrow_forward
- Q4.One of the file space allocation mechanisms is the most convenient for random access files.Which mechanism is that?arrow_forwardAfter typing the ls –F command, you see the following line in the output: -rw-r-xr- - 1 user1 root 0 Apr 29 15:40 file1What does this mean?* a. User1 has read and write, members of the root group have read and execute, and all others have read permissions to the file. b. Members of the root group have read and write, user1 has read and execute, and all others have read permissions to the file. c. All users have read and write, members of the root group have read and execute, and user1 has read permissions to the file. d. User1 has read and write, all others have read and execute, and members of the root group have read permissions to the file.arrow_forward1. In an earlier assignment, you created a fileAsst directory containing several files. Give a command that will create a file named listing.dat, in your current (commandsAsst) directory, containing a list of the names of all the files in your fileAsst directory. The listing must not include dates, file sizes, or any information other than the names. 2. Someone has decided that the function sequentialInsert, declared in -cs252/Assignments/commandsAsst/project/arrayops.h, should be renamed orderedInsertion. Give a command to produce the altered version the header file, saving it as ~/UnixCourse/commandsAsst/arrayops.h (Something to think about: Why would the same approach not work well for changing the variable name i to i0?) 3. Sometimes programmers propose changes to an existing software definition and need to know what other code could be affected by the change. Suppose that you are a programmer who has proposed a change to the C/C++ data type known as "timespec". You know that there…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