Question
Linux 1. What command would you use to determine what directory you are currently in? 2. I have seven files named: filea fileb
Linux
1. What command would you use to determine what directory you are currently in?
2. I have seven files named:
filea
fileb
filec
filed
filee
filef
fileg
How can I list only filed filee and filef in a single command? You must use file globbing.
3. Provide the command to find all files on the system with the file extension .xz.
4. You have a directory called ics2231. You wish to create a backup of this directory, which you have decided to call ics231_backup. Provide the command to create this backup directory.
5. Provide the command to delete all files in your current directory with an extension of txt.
6. Provide the command to create the compressed file: ics231.tar.xz. Do not use the touch command.
7. What does the following command do:
!100
8. If I wanted to change the ownership of an entire directory to the user grossp, what command would I use?
9. What command would you use to learn about your USB devices?
10. Provide the command to find all files on the system that belong to the user grossp, are created in the last 24 hours, and are less than 100 megs.
Part 2:
Use the same text document to answer the following questions. 5 from each section (a total of 10) will randomly be picked for grading. Each one is worth 2 points.
Part A:
Write the command by using letters (symbolic) to set the following permissions. The default file permissions are: 755 ( rwxr-xr-x)
- rwxrwxrwx
- r--r----x
- rw-rw-rw-
- rwxrwxr--
- rw-rw--w-
- --x--x--x
- -wxr-----
- ---rwxr-x
- -wxr--rwx
- ---rw--wx
Part B:
Write the command by using octal numbers to set the following permissions:
- rwxrwxrwx
- r--r----x
- rw-rw-rw-
- rwxrwxr--
- rw-rw--w-
- --x--x--x
- -wxr-----
- ---rwxr-x
- -wxr--rwx
- ---rw--wx
Part 3:
Each question is worth 5 points.
1. What is the difference between a Window Manager and a Desktop Environment? Provide examples of each one.
2. What is the difference between hard and soft links? Provide an example of each one.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Linux 1 What command would you use to determine what directory you are currently in The pwd print working directory command is used to determine the current directory in a Linux system bash pwd 2 I ha...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