_Linux
pdf
keyboard_arrow_up
School
College of DuPage *
*We aren’t endorsed by this school
Course
1450
Subject
Information Systems
Date
Apr 3, 2024
Type
Pages
3
Uploaded by Error69
Exam 3
●
You are currently at the /home/COD directory and you want to change the current
working directory to the directory listed here:
/home/COD/Class/CIT/1450. What
command will allow you to change to the new current working directory (one line only)?
cd Class/CIT/1450
●
You are currently at the /home/COD directory and you want to create a file with the
name: Assignment1.txt in /home/COD/Class/CIT/1450. What command will allow you
to create this file inside of 1450 directory (one line only)?
○
touch Class/CIT/1450/Assignment1.txt
●
You are currently at the /home/COD directory and you want to see all the files and all
directories under the current location. You want to see the files in a long listing format
and see all hidden and all subdirectories. What command will allow you to complete this
task?
find ./ -path '*/.*' -ls
●
You are currently at the /home/COD/CIT/1450 directory and you want to create a new
directory like the directory listed here:
/home/COD/CIT/1450/Homework/Assignments.
However, the Homework directory has not been created yet. What command will allow
you to create the new Assignments directory (one line only)?
mkdir -p ./Homework/Assignments
●
You are currently at the /home/COD/CIT/1450 directory and you want to create two new
directories like the directory listed here:
/home/COD/CIT/1450/Homework/Assignments;
/home/COD/CIT/1450/Homework/Labs. However, the Homework directory has not been
created yet. What command will allow you to create the new Assignments and Labs
directory simultaneously (one line only)?
mkdir -p Homework/Assignments Homework/Labs
●
You are currently at the /home/COD/CIT/1450 directory and you want to copy these 2
files (Assignment1.txt and Assignment2.txt) to
/home/COD/CIT/1450/Homework/Assignments directory. What command will allow you
to copy these 2 files to the Assignments directory simultaneously (one line only)?
cp ./Assignment{1..2}.txt Homework/Assignments/
●
You are currently at the /home/COD/CIT/1450 directory. You no longer need the
Assignments directory (/home/COD/CIT/1450/Homework/Assignments) and you want to
delete the directory. However, the directory is not empty. What command will allow you
to delete this not empty directory and also prompt for confirmation before deleting (one
line only)?
rm -rI Homework/Assignments/
●
What command can be used to create a hard link for the Homework1.txt in the current
directory and the file in the
/home/COD/CIT/1450/Homework/Backup/Homework1Saved.txt
ln Homework1.txt home/COD/CIT/1450/Homework/Backup/Homework1Saved.txt
●
You are currently at the /home/COD/CIT/1450 directory and you want to create 3 new
directories: Homework1, Homwork2, and Homework3 inside 1450 directory. What
command will allow you to create these 3 new directories simultaneously (You must use
brace expansion to complete this task and one line only)?
mkdir Homework{1..3}
Exam 4
●
What is the command to find the manual pages for ls command (Please pay attention to
the uppercase and lowercase of the text.)
man -k is
●
In addition to trying to get help from manual pages for printf, you want to bring up the
section 3 (library functions) of the printf manual pages. What is the command that allows
you to bring up section 3 of printf manual pages? (Please pay attention to the
uppercase and lowercase of the text.)
Man 3 printf
●
You are currently in the section 5 passwd manual page and you want to search for the
word
user. What is the command to do a string search inside of the manual pages?
/user
●
You are currently in the section 5 passwd manual page and you are searching for the
word user. What is the command to repeat the string search and go down the page and
search for the next user string?
n
●
You are looking for manual pages for want to know all manual pages that include help for
ls command. What command should you all the related ls manual pages?
whatis -k s
●
When you are looking through the manual page. What command will allow you to quit
the current manual page?
q
●
You are comparing the difference between manual pages and GNU ino pages. What
command will allow you to bring up the GNU info page for printf?
Info printf
●
What command brings up the manual pages for manual pages?
man man
●
What command allows you to create a postscript format of manual pages for ls?
A2ps is
●
What command allows you to use firefox to view documentations in the share/doc
directory?
firefox file:///usr/share/doc
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help