Questions & Answers for Guaranteed Pass |
Newest Update, 2025-2026.
Terms in this set (235)
cd change to another directory
mkdir make a directory
cp copy a file
pwd display current working directory
mv move a file to another location
rm
rmdir delete a directory
ls list filenames and directories
chmod change file security setting
man help manual
Count the files that you own ls -lR | grep myusername | wc -l
in all your directories
(where your userid is
myusername)
touch
What UNIX command is used
to update the modification
time of a file and/or change
the file's access?
,The file "mypage.html" has chmod og+r mypage.html
permissions set for read and
write only for owner. Which
of the following command
will change the permissions
so that the file can be viewed
on the
WWW?
To list the permissions on ls -l
files, which of the following
commands will work?
When you use the ln a file is created that points to an existing file
command, which of the
following occurs?
(T/F) The command "grep false
-i hello" prints all the lines in
file, not containing the
string "hello".
Which expression shows the PATH=$PATH:/usr/bin
proper way to add the
directory /usr/bin to your
path?
Which of the following is not batch file
a UNIX file type?
plain file
special file
batch file
directory file
How do you create a new mkdir flower
directory called "flower"?
,Which of these is not a fresh
common UNIX shell
discussed in class (or
textbook or lecture)?
bash sh
fresh
ksh
What is the command to grep hello *
search all files in your
current directory for the
word "hello"?
most current UNIX installations have a graphical user interface
Which of the following is not
a benefit of the fact that
many UNIX commands
operate on plain ASCII text
files?
the same file can be used by
many programs
output to the terminal and
to files can be done in the
same way
most current UNIX
installations have a
graphical user interface
these commands can be
used as filters for the output
of other commands
, Change the current directory cd /usr/local/bin
to /usr/local/bin
Which command will print cat a*.??[0-9]
the contents of all files in the
current directory whose
names start with the
character "a" and end with a
period (".") followed by any
two characters followed by a
number?
(T/F) Consider a file abc false
which can be "read, write,
execute" only by the owner.
After the command
"chmod o+x abc", the file
"abc" is executable by
group.
How do you rename file mv new old
"new" to be "old"?
To delete a file called rm -i mynotes.txt
mynotes.txt, which
command do you use?
In Unix, if you wanted to read
allow a user to list the
contents of a directory, you
would give the directory
what permission, at least?
The command history prints false
ALL the commands you
typed.
What represents an absolute /usr/bin/cat
path?