Shared Flashcard Set

Details

Operating Systems
Chapter 8-14 Matching
40
Other
Undergraduate 1
05/08/2014

Additional Other Flashcards

 


 

Cards

Term
cp wc yyy
Definition
copies wc to yyy
Term
cat cw >> xxx
Definition
copies wc to xxx
Term
cat < xxx
Definition
displays a file called xxx
Term
wc -cw wc >> xxx
Definition
counts the words and characters in wc and saves them in xxx
Term
cp -i wc yyy
Definition
copies wc to yyy and asks for confirmation if yyy exists
Term
ls *[a-d]
Definition
displays all the filenames that end with the letter a, b, c, or d
Term
rm *
Definition
deletes all the files in the current directory
Term
ls .*
Definition
lists only the invisible files
Term
ls [Aa]*
Definition
displays all the filenames that begin with a or A
Term
mv xxx yyy
Definition
renames the file named xxx to yyy
Term
HI= hello
Definition
assigns value to variable HI
Term
PS1="Hi: "
Definition
reassigns the prompt string
Term
ps –a
Definition
displays the status of all active processes
Term
echo $HI
Definition
displays the content of the specified variable
Term
Set
Definition
displays the list of the shell variables
Term
kill -9 11237
Definition
removes the specified process
Term
export
Definition
displays exported variables
Term
ls | tee xyz
Definition
displays the current directory and saves it in a file
Term
grep hello xyz
Definition
finds the string hello in the specified file
Term
unset xyz
Definition
removes the specified variable
Term
G
Definition
shows the last command in the history file
Term
export xyz
Definition
exports the variable called xyz
Term
set -o vi
Definition
turns on the command line editing option
Term
10G
Definition
displays the 10th command from the history file
Term
alias D=rm
Definition
makes letter D the alias name for the rm command
Term
alias
Definition
lists the name of aliases
Term
set -o noclobber
Definition
sets the option to prevent overwriting an existing file
Term
set -o ignoreeof
Definition
sets the option to prevent accidental log off when [Ctrl-d] key is used
Term
fc –l
Definition
lists commands in the history list
Term
set +o noclobber
Definition
turns off the option that prevents overwriting an existing file
Term
echo $XYZ
Definition
HELLO
Term
echo $EMPTY
Definition
Nothing is displayed
Term
echo ${XYZ: - "BYE"}
Definition
HELLO
Term
echo ${EMPTY: - "BYE"}
Definition
BYE
Term
echo ${XYZ: + "BYE"}
Definition
BYE
Term
echo ${EMPTY: + "BYE"}
Definition
Nothing is displayed
Term
echo ${XYZ: = "BYE"}
Definition
HELLO
Term
echo ${EMPTY: = "BYE"}
Definition
BYE
Term
echo ${XYZ: ? "BYE"}
Definition
HELLO
Term
echo ${XYZ: ? "BYE"}
Definition
BYE
Supporting users have an ad free experience!