Quiz 3
nice
Changes the priority of a command
renice
Changes the priority of a process
test
Check file types and compare values
xargs
Converts standard input to command lines
tee
Copies standard input to standard output and one or more files
mkdir
Creates a directory
touch
Creates a file or changes a file's access and/or modification time
mkfs
Creates a filesystem on a device
sleep
Creates a process that sleeps for a specified interval
pax
Creates an archive, restores files from an archive, or copies a directory hierarchy
man
Displays documentation for utilities
stat
Displays information about files
w
Displays information about local system users
who
Displays information about logged-in users
ls
Displays information about one or more files
stty
Displays or sets terminal parameters
ps
Displays process status
strings
Displays strings of printable characters from files
tail
Displays the last part (tail) of a file
wc
Displays the number of lines, words, and bytes in one or more files
uniq
Displays unique lines from a file
split
Divides a file into sections
od
Dumps the contents of a file
top
Dynamically displays process status
sed
Edits a file noninteractively
df
For each mounted file system, This reports the file system device, the number of blocks, the number of blocks available, and the directory where the file system is mounted.
w
If you use This , you also get a list of what they are doing.
who
If you use This , you also get the IP numbers or computer names of the terminals they are using.
paste
Joins corresponding lines from files
make
Keeps a set of programs current (to compile, link edit, clean, etc).
nl
Numbers lines from a file
0010
Only Group can execute the file
0040
Only Group can read the file
0020
Only Group can write the file
0001
Only Others can execute the file
0004
Only Others can read the file
0002
Only Others can write the file
0100
Only Owner can execute the file
0400
Only Owner can read the file
0200
Only Owner can write to the file
open
Opens files, directories, and URLs
rm
Removes a file (deletes a link)
rmdir
Removes directories
mv
Renames or moves a file
tr
Replaces specified characters
nohup
Runs a command that keeps running after you log out
rsync
Securely copies files and directory hierarchies over a network
scp
Securely copies one or more files to or from a remote system
ssh
Securely runs a program or opens a shell on a remote system
2000
Sets the group ID when the program is executed
which
Shows where in PATH a utility is located
sort
Sorts and/or merges files
umask
Specifies the file-creation permissions mask
1000
Sticky Bit
tar
Stores or retrieves files to/from an archive file
gzip, gunzip, zcat
The ___ utility compresses files, the ___ utility restores files compressed with gzip, and the ___ utility displays files compressed with this utility.
expr
This (utility) evaluates an expression and sends the result to standard output.
gcc
This ___ will compile C and C++ programs
chmod
This changes the permission information associated with a file.
cd
This changes your current directory location.
comm
This compares sorted files
configure
This configures the source code automatically.
cp
This copies a file, preserving the original and creating an identical copy.
cpio
This creates an archive, restores files from an archive, or copies a directory hierarchy.
ps
This displays information about programs (i.e., processes) that are currently running.
set
This displays or changes various settings and options associated with your Unix session.
less
This displays text files, one screen at a time
head
This displays the beginning of a file
file
This displays the classification of a file
more
This displays the contents of a file one screen at a time, waiting for you to press the Spacebar between screens.
date
This displays the current day, date, time, and year.
cmp
This displays the differences between two files on a byte-by-byte basis.
find
This is most commonly used to find all of the files that have a certain name.
join
This joins lines from two files based on a common field
less
This lets you read text without it scrolling quickly off your screen.
ls
This lists all of the files within a directory and its subdirectories that match a set of conditions.
w
This lists all users logged into the computer.
ln
This makes a link to a file
cat
This outputs the contents of a text file. You can use it to read brief files or to concatenate files together.
jobs
This reports any programs that you suspended and still have running or waiting in the background (if you had pressed Ctrl-z to suspend an editing session, for example).
du
This reports disk usage (i.e., the amount of space taken up by a group of files).
df
This reports file system disk usage (i.e., the amount of space taken up on mounted file systems).
grep
This searches for a pattern in files
cut
This selects characters or fields from input lines and writes them to standard output.
lpr
This sends files to printers
kill
This terminates a process by PID
finger
This utility displays the usernames of users, together with their full names, terminal device numbers, times they logged in, and other information.
fsck
This utility verifies the integrity of a filesystem and reports on and optionally repairs problems it finds.
ls
This will list the files and the subdirectories in a directory.
mkdir
This will make a new subdirectory.
mv
This will move a file.
cal
This will print a calendar for a specified month and/or year.
rm
This will remove (delete) a file.
rmdir
This will remove (delete) a subdirectory.
ls -l | cut -c2-10
To output only the permissions of the files in the working directory, which of the following commands will do it?
kill
Use This as a last resort to destroy any jobs or programs that you suspended and are unable to restart.
-a
With ls command, use this option to list all the "dot" files (configuration files that begin with a period, such as .login or .profile).
0777
With this option of chmod command, Owner, group, and others can read, write, and execute the file.
0644
With this option of chmod command, Owner can read, and write the file; group and other can read the file.
0640
With this option of chmod command, Owner can read, and write the file; group can read the file, and other cannot access the file.
0711
With this option of chmod command, Owner can read, write, and execute the file; group and other can execute the file.
0755
With this option of chmod command, Owner can read, write, and execute the file; group and other can read and execute the file.
X
[chmod] Make the file executable only if it is a directory
s
[chmod] Set the user ID or group ID of the file while the file is being executed
x
[chmod] Sets execute permission
r
[chmod] Sets read permission
o
[chmod] Sets the specified permissions to those of others
g
[chmod] Sets the specified permissions to those of the group
u
[chmod] Sets the specified permissions to those of the owner
t
[chmod] Sets the sticky bit
4000
[chmod] Sets the user ID when the program is executed
w
[chmod] Sets write permission