• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/78

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

78 Cards in this Set

  • Front
  • Back
change password
passwd
list directories
ls
change directories
(moving to another directory)
cd
cd ..
move up one level (to parent dir)
to return to home directory from anywhere in system
cd
find yourself - "p__"
(lists current directory your're in)
pwd (print working directory)
connect output of one to input of another command with " "
|
connecting output of one to input of another command is called
piping
use " " for one letter or number (wildcard search)
?
one way to view file contents
is w/ "m___" command
more
with "m___" command
file info is displayed on screen
1page at a time
more
in "more" command, press
" " to view next page
spacebar
when done with "more", press
" " to go back to shell prompt
Q
in "more" command, press "E__ "
to see next line
Enter
" " command used to display contents of file on screen
cat
you can also redirect one or more files with the "c__" command
some versions of "more" do not
cat
in "cat" redirect output with
" " symbol
>
Home directories can also be referred to by the " " character
~
" " can be used to specify paths starting at your home directory
~
ls ~/unixstuff

will ...
will list the contents of your unixstuff directory, no matter your current location
list all files & directories,
ls " "
ls -a
cd
change to home dir
cd ..
change to parent dir
cd ~
change to home dir
cd .
stay in current directory
cp file1 file2
copies file1 in current dir
& calls it file2
cp /vol/examples/tutorial/science.txt .
copy science.txt into current dir
mv file1 file2
moves (or renames) file1 to file2
cd " " (another way to change to home dir)
~
cd means
change dir
make a dir with " "
mkdir
To delete (remove) a file, use the " " command
rm
You can use the " " command to remove a directory
rmdir
make sure dir is empty before using " " to remove it
rmdir
At the prompt, type " " to clear screen
clear
cat means
concatenate
the "l " command writes the contents of a file onto the screen a page at a time
less
in "less" command press " "
for next page
space bar
to quit when in "less" command
press " "
q
" " command writes the first ten lines of a file to the screen
head
" " command writes the last ten lines of a file to the screen
tail
to search a word within "less" command type " " then the word
/
the name " " comes from the ed command " "
grep, g/re/p (global / regular expression / print).
"g__ " searches files for specified words or patterns
grep
ex. grep science science.txt
grep command is case " "
sensitive
in grep, To ignore upper/lower case distinctions, use the " " option
-i
grep - search for phrase or pattern, enclose it in " " quotes
single
grep - " " option displays those lines that do NOT match
-v
grep - " " precede each matching line with the line number
-n
grep - " " print only the total count of matched lines
-c
word count command
wc
in "wc" to count words use " " option
-w
in "wc" to count lines use " " option
-l
ex. wc -l science.txt
UNIX will not let you remove a non-empty directory with " "
rmdir
typing "cat"
then typing something
then ending with ctrl d (end of file)
typed info is shown on screen
cat >> filename
" " standard output to a file
appends
cat list1 list2 > biglist
joins both into file "biglist"
use the " " symbol to redirect the input of a command.
<
The command " " alphabetically or numerically sorts a list
sort
Using < you can redirect the input to come from a file rather than the "k..."
keyboard
sort < biglist
sorts the list received from file
To see who is on the system with you, type " "
who
instead of this
who > names.txt
sort < names.txt , do this ...
who | sort
To find out how many users are logged on, type " "
who | wc -1
" " = wildcard - it will match against none or more character(s) in a filename or directoryname
*
a directory is merely a special type of " "
FILE
the rules and conventions for naming files apply also to " "
DIRECTORIES
EX. whatis wc
GIVES 1 LINE DESCR OF
WC
EX. man wc
BRINGS UP MANUAL PAGE FOR
WC
WHEN NOT SURE OF COMMAND NAME YOU'RE SEARCHING IN MAN PGS TYPE " " THEN NAME
apropos
ls -l - USE THIS FOR " " LISTING
LONG
ls -lg - gives additional info as to which " " owns the file
group
SYMBOLS FOR CHMOD
U,G,O,A, - MEAN?
USER, GROUP, OTHER, ALL
SYMBOLS FOR CHMOD
R,W,X - MEAN?
READ, WRITE, EXECUTE
CHMOD =
changing a file mode
Only " " of a file can use chmod to change the permissions of a file
owner
to add or take away file permission
in CHMOD use...
+ , -
chmod a+rw biglist, =
give read and write permissions on the file biglist