Unix Flashcards
(49 cards)
command for: list contents of current directory
ls
command for: make a directory
mkdir
command for move:
mv
command for rename:
mv
what would the command be to move text1 into directory files
mv text1 files
command for changing to a directory:
cd
command for printing current directory to the terminal:
pwd
command to move to previous directory:
cd ..
command to show contents of a file:
more
command to copy:
cp
command to remove:
rm
command to remove a directory:
rmdir
command to change security permissions:
chmod
command to do a long list of files:
ls -l
addition to ls if we want to see details of files and direcetories:
ls -l
wildcard to match anything (to be read by shell):
*
in file permissions what are u,g,o?
u = user
g = groups
o = the rest
how would you see what permission groups you’re in?
groups
in file permissions, what are r,w,x?
r = read
w = write
x = execute
what symbol can be used for home directory?
~
how can the home directory symbol be used to mean someone else’s home directory?
~theiruserid
what does man -k do?
search manual for a following word
what is the command to find someones username?
finger
what is the quick way to write current directory in a pathname?
.