• 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/31

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;

31 Cards in this Set

  • Front
  • Back
Determine which unix system is being used
uname
Set an environment variable
LINES=25
export LINES
Command to fide a program
whereis
5 environment variables
HOME
MAIL
PATH
PWD
TERM
Create / Delete Directory
mkdir
rmdir
-p makes parent directories
Display File Types
file
Where are file # stored
per process file descriptor table
Where is user/group information
/etc/group
/etc/passwd
Change file permissions:
owner everything
group read
everyone nothing
chmod u=rwx,g=r,o=
chmod u+rwx
chmod 740
list options
directories
long
all
ls -
d
l
a
display the contents of a file
cat
display the contents of a file with line numbers
cat -n
copy command
cp
move command
mv
delete command
rm
copy, move, delete options
preserve permissions, timestamps
recursive
force overwrite of files
prompt overwrite
p
r
f
i
Print a document
lpr #5 -P PRINTERNAME file
Get the number of bytes in a file
wc -c file
zip file
gzip file
list a gzip file
gzip -l file
unzip file
gunzip file.gz
find some file whose size > 1000 bytes
find / -size +1000c
does a hard link share an inode
yes
disadvantages of hard link
can not span devices
only allowed by superusers
files deleted and replaced are lost
Command to create a hard link
ln file file.hard
Command to create a soft link
ln -s file file.soft
5 ways to share files
copy them
common login
share a users directory (permissions)
common group
Links
list processes
- hide leaders
- for a user
ps
-a
-u 147
5 TCP/IP Layers
Device
Link
Network
Transport
Application
return the name of the host
hostname
display who is logged into a server
rwho servername
rusers servername