Shared Flashcard Set

Details

Ch 0 UNIX Quickstart
UNIX The Textbook 2nd edition
37
Computer Science
Undergraduate 2
09/30/2014

Additional Computer Science Flashcards

 


 

Cards

Term
give the structure of a UNIX command
Definition
command [[-] option(s)] [option argument(s)] [ command argument(s)]
Term
one or more modifiers that change the behavior of a command
Definition
[-option(s)]
Term
is one or more modifiers that change the behavior of [-option(s)]
Definition
[option argument(s)]
Term
one or more objects that are affected by command
Definition
[command arguments]
Term
ls -la
Definition
contains the command ls and two options l and a
Term
ls -la m*
Definition
contains the command ls, two options , l and a, and a command argument, m*
Term
lpr -Pspr -n 3 proposal.ps
Definition
contains the command lpr; two options, P and n; two option arguments, spr and 3; and and a command argument, proposal.ps
Term
what happens if you type xy on the command line?
Definition
And error message saying no such command is displayed
Term
what is file maintenance?
Definition
the operation of organizing your files according to some logical scheme
Term
when you first log in you are working in the ___ ____
Definition
home directory
Term
Whatever directory you are presently in is known as the ___ ___ ___
Definition
current working directory
Term
joins one or more files sequentially or displays them in the console window
Definition
cat [options] [ file-list]
Term
display the files in the 'file-list' on the screen, one screen at a time
Definition
more [options][file-list]
Term
copy file1 to file2; if file2 is a directory make a copy of file1 in this directory
Definition
cp [options] file1 file2
Term
rename file1 to file2
Definition
mv [options] file1 file2
Term
Move all the files in the file-list to 'directory'
Definition
mv [options] [file-list] directory
Term
removes files in the file-list from the file structure (and disk)
Definition
rm [options][file-list]
Term
Sends the names of the files and directories in the directory specified by 'pathname-list' to the display screen
Definition
ls [options] [pathname-list]
Term
display a / character after directory names, an *(asterisk) after binary executables, and an @ after symbolic links
Definition
ls -F
Term
Display names of all the files, including hidden files
Definition
ls -a
Term
display inode numbers
Definition
ls -i
Term
display long list that includes file access modes, link count, owner, group, file size (in bytes) and modification time
Definition
ls -l
Term
creates directory or directories specified in 'dirnames'
Definition
mkdir [options][dirnames]
Term
change the current working directory to 'directory', or return to the home directory when 'directory' is omitted
Definition
cd [directory]
Term
displays the current working directory on screen
Definition
pwd
Term
what three ways can you ascend back up to the home directory
Definition
cd
cd ~
cd $HOME
Term
removes the empty directories specified in 'dirnames'
Definition
rmdir [options][dirnames]
Term
one way to delete a non empty directory
Definition
rm -r
The r option recursively descends down into the sub-directory and deletes any files in it before actually deleting the directory itself.
Term
display UNIX Reference Manual Pages for command in 'command-list' one screenful at a time
Definition
man [options][-s section] command-list
Term
display summaries of commands related to keywords in 'keyword-list'
Definition
man -k keyword list
Term
search the whatis database for abbreviated descriptions of each 'keyword'
Definition
whatis keyword
Term
locate the binary, source , and man page files for a command
Definition
whereis [options] filename
Term
displays the effective user id
Definition
whoami
Term
sends files to the printer
Definition
lpr [options][filename]
Term
displays the calendar on screen as text
Definition
cal [[month]year]
Term
Write on the terminal screen or console window of the user with log-in name username; he user must be logged onto the system, and the user's terminal must have write access privileges given by the mesg command
Definition
write username[terminal]
Term
create pseudonym 'string' for the command 'name'
Definition
alias [name[=string]...] Bourne, Korn Bash shells
alis dir='ls -la\!*'
alias rename='mv\!*
alias spr='lpr -Pspr\!*'
alias ls='ls -C'
Supporting users have an ad free experience!