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;
82 Cards in this Set
- Front
- Back
lists contents of current working directory |
ls
|
|
lists all files in working directory including hidden
|
ls -a
|
|
make a directory
|
mkdir
|
|
change directory
|
cd
|
|
name of current directory
|
.
|
|
name of parent directory
|
..
|
|
print working directory
|
pwd
|
|
home directory
|
~
|
|
command to make a copy of file1 in the current working directory and call it file2
|
cp file1 file2
|
|
move (or rename) file1 to file2
|
mv file1 file2
|
|
remove a file
|
rm
|
|
remove a directory
|
rmdir
|
|
clear terminal window
|
clear
|
|
display contents of a file on the screen
|
cat
|
|
write the contents of a file onto the screen a page at a time
|
less
|
|
write the first ten lines of a file onto the screen
|
head
|
|
write the last ten lines of a file on the screen
|
tail
|
|
finding a word using less command
|
less (file.ext); /phraseofinterest
|
|
result of writing grep science science.txt
|
prints all lines with the word “science” in it from science.txt (case-sensitive)
|
|
ignore case distinctions w grep
|
grep -i
|
|
search for phrase “spinning top” in science.txt using grep
|
grep -i 'spinning top'
|
|
option to use grep to display lines that do not match
|
grep -v
|
|
option to precede each matching line in grep with line number
|
grep -n
|
|
word count utility
|
wc -w
|
|
count lines in a text
|
wc -l
|
|
stopping a process
|
Control-d
|
|
effect of cat command without specifying a file to read
|
reads standard input and displays when process is stopped
|
|
redirect output of a function
|
>
|
|
appends standard output to a file
|
>>
|
|
concatenate list1 and list2 to biglist
|
cat list1 list2 > biglist
|
|
command for alphabetically or numerically sorting a list
|
sort
|
|
direct output from one command into another
|
|
|
|
wildcard character
|
*
|
|
wildcard for one character only
|
?
|
|
gives a one-line description of the command
|
whatis
|
|
gives commands with a word in their page header
|
apropos keyword
|
|
meaning of string giving permissions in ls -l
|
taken in 3 groups of 3. left group gives permissions for owner of file. Middle group gives permissions for group owning the file. Rightmost group gives permissions for all others.
|
|
command to change permissions on a file
|
chmod
|
|
remove read write and execute permissions for group and others on a file called “biglist”
|
chmod go-rwx biglist
|
|
shows information about processes, with process identifier number and status
|
ps
|
|
to background a process
|
Type & at the end of the command
|
|
suspend a process
|
[ctrl]z
|
|
background an active process
|
bg
|
|
see the list of processes running, including backgrounded processes
|
jobs
|
|
to restart (foreground) a suspended process
|
fg %jobnumber
|
|
foregrounds last suspended process
|
fg
|
|
kills a process running in the foreground
|
[ctrl]c
|
|
kill a suspended or background process
|
kill %jobnumber or processnumber
|
|
good for killing a process that is refusing to be killed
|
Kill -9 processnumber
|
|
reports on space left in the file system
|
df
|
|
outputs the number of kilobytes used by each subdirectory
|
du
|
|
compress a file (put into gzip)
|
gzip file.ext
|
|
expand a gzipped file
|
gunzip file.ext.gz
|
|
file to read gzipped files without first uncompressing them
|
zcat file.ext.gz
|
|
classifies named files according to the type of data they contain
|
file
|
|
compares contents of 2 files and displays the differences
|
diff file1 file2
|
|
searches through files and directories for files with a given attribute
|
find
|
|
search for all files with the ext .txt, starting at the current directory and working through all sub-directories
|
Find . -name “*.txt” -print
|
|
find files over 1Mb in size and display as a long listing
|
Find . -size +1M -ls
|
|
gives an ordered list of all commands entered
|
history
|
|
package search command (debian)
|
Apt-get update; apt-cache search string
|
|
package installation tool (debian)
|
Apt-get update; apt-get install package_name
|
|
install package on Debian (low level, without dependency resolution)
|
dpkg –install package_file
|
|
remove a package
|
Apt-get remove package_name
|
|
commands for updating system with latest packages
|
Apt-get update; apt-get upgrade
|
|
list of all packages installed on system
|
dpkg –list
|
|
specify whether a given package is installed
|
dpkg –status package_name
|
|
display a description of the package
|
Apt-cache show package_name
|
|
determine which package is responsible for the installation of a particular file
|
dpkg –search file_name
|
|
mount a filesystem
|
mount
|
|
unmount a filesystem
|
unmount
|
|
partition table manipulator
|
fdisk
|
|
check and repair a filesystem
|
fsck
|
|
format a floppy disk
|
fdformat
|
|
create a filesystem
|
mkfs
|
|
write block-oriented data directly to a device
|
dd
|
|
create an ISO 9660 image file
|
genisoimage (mkisofs)
|
|
write data to optical storage media
|
wodim (cdrecord)
|
|
calculate an md5 checksum
|
md5sum
|
|
file listing devices (typically hard disk partitions) that are to be mounted at boot time
|
/etc/fstab
|
|
action of mount command without arguments
|
will display a list of filesystems currently mounted
|
|
keystroke for command completion
|
tab key |