CS Linux Quiz
finger user
displays information about a particular user
python
execute a file
tar xf file.tar
extract the files from file.tar
rm -rf dir
force remove directory
rm -f file
force remove file
vim
text editor
w
who is online
whoami
who you are logged in as
:w
write to a file
cd
Go to home
cd dir
change directory
chmod
change the permissions of a file
gzip file
compresses file and renames it to file.gz
tar cjf file.tar.bz2
compresses the entire folder into it
cp -r dir1 dir2
copy directory 1 to directory 2
cp file1 file2
copy file1 to file2
tar czf file.tar.gz files
create a tar more efficiently
tar cf file.tar files
create a tar names file.tar containing files
touch file
create or update file
gzip -d file.gz
decompresses a file back to its original
I in vim
input
:q
leave a file
Ls
list current directory
mkdir directory
make directory
Ls -al
more extensive listing of the current directory
mv file1 file2
move file 1 to file 2, if file to is a directory, it is added to the directory
more
output a file's contents
tail -f
outputs a file ten lines at a time
head
outputs the first ten lines of a file
tail
outputs the last ten lines of a file
cat > file
places standard input into file
pwd
print working directory (show current directory)
r vs. w vs. x
read (4), write (3), execute (2)
tar xjf file.tar.bz2
read and extract a file using Bzip2
tar xzf file.tar.gz
reads and extracts a file, and the compresses it with gzip
rm file
remove a file
rm -r directory
remove directory
uptime
show the current uptime
date
show the date
cal
show the month's calander