Question
1. I have a file with the following permissions: -rw-r--r-- 1 jessica jessica ....... topsecret.jpg I want to change the permissions so that the file
1. I have a file with the following permissions:
-rw-r--r-- 1 jessica jessica ....... topsecret.jpg
I want to change the permissions so that the file can be read and written to by the file's owner and group ONLY. What command would make that change? USE OCTAL NOTATION ONLY.
2. Use UGOA notation to change the following file's permission from this:
-rw-r----- 1 jessica jessica ....... topsecret.jpg
to this:
-rwxr-xrw- 1 jessica jessica ....... topsecret.jpg
USE UGAO NOTATION ONLY - NOT OCTAL
3. User jjones has quit to pursue knitting and I need to not only remove heraccount from my server, but backup the user's home directory AND then delete all files which were owned by the user. What SINGLE command would do this?
4. Whoops! I just ran the following command:
# sudo chmod 000 ./mydirectory
Now I can't read the directory or cd into it! Show me a command that would allow the directory's owner and group to cd to the directory and list the contents for the owner and group of the directory ONLY!
5. I run a server that currently has 80 users logged in. I am interested in finding out if user 'captainamerica' has logged in, and if so, when he logged in. What command sequence would I use to show me the status for 'captainamerica' ONLY -- no one else (Hint: one of the commands is grep)
6. I created a file last week SOMEWHERE on my hard drive and I know the file name contains either the word "pizza" or "PIZZA" or "piZZa" or "PIZza". What command would I run to find that file?
7. I have two files, one called smaller.txt and another called ontheoutside.txt. I want to concatenate them into a single file called tetris.txt. What command would I use?
8. What is /dev/sdb4? (I want a detailed explanation of EACH component)
9. I want to manually mount a thumb drive (/dev/sdb1) that has an NTFS (Windows) file system. I created a directory called 'evidence' on which to mount it. Specify the command to manually mount the thumb drive on the directory '~/evidence'. Note: I don't want to see 'auto' in the answer.
10. I'm finished with the thumb drive from Question 9 above. Specify the command to unmount the drive.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started