Shared Flashcard Set

Details

Chapters 1-3 Commands
A list of all of the commands used in intro to unix/linux
50
Computer Science
Undergraduate 2
08/21/2015

Additional Computer Science Flashcards

 


 

Cards

Term
who
Definition
tells you who is logged in
Term
ls
Definition
gives you a list of current directories
Term
ls -a
Definition
shows all files including hidden ones
Term
ls -A
Definition
shows all files except hidden ones
Term
ls -l
Definition
is a long listing of the files that displays some meta-data about the files
Term
exit
Definition
leaves the terminal
Term
pwd
Definition
displays the current directory being used
Term
cd
Definition
allows you to change the directory you are in
Term
~
Definition
short hand for the home directory
Term
date
Definition
displays the current date and time
Term
cal
Definition
displays a calendar
Term
|
Definition
called a pipe, redirects the out put from one command to another
Term
more
Definition
reformats the output to display one screen at a time
Term
hostname
Definition
displays the name of the computer that you are using
Term
whoami
Definition
displays the current user's username
Term
man
Definition
will display the manual pages for any command
Term
mv
Definition
allows you to move things
Term
mkdir
Definition
makes a new directory
Term
ls -F
Definition
adds a trailing character to the end of a file that will tell you something about the file
Term
cat
Definition
also shows you the contents of a file without formatting the information
Term
head
Definition
shows you the beginning 10 lines of a file
Term
tail
Definition
shows you the ending 10 lines of a file
Term
cp
Definition
will copy files or directories
Term
rm
Definition
will remove/delete files
Term
rm -i
Definition
will ask if you want to remove each file selected
Term
history
Definition
displays the history of commands that have been entered
Term
wc
Definition
word count, displays the number of lines, words, and characters received as input
Term
wc -l
Definition
displays the number of lines
Term
wc -w
Definition
displays the number of words
Term
wc -c
Definition
displays the number of characters
Term
alias
Definition
allows a user to define an alias or pseudonym for some command
Term
touch
Definition
updates the time stamp on a file
Term
sort
Definition
sorts the input
Term
sort -n
Definition
sorts numbers numerically
Term
ctrl + D
Definition
tells the shell that this is the end of the data
Term
sort -d
Definition
dictionary sort
Term
sort -r
Definition
reverse sort
Term
sort -f
Definition
ignores case sensitivity
Term
>
Definition
redirects output to a new file, will write over a file that already exists
Term
>>
Definition
redirects output to an existing file, will not write over that file just adds to the file
Term
sort -o
Definition
puts the output in a specified file
Term
\
Definition
ignores the special meaning of the next character
Term
grep
Definition
searches its input for a specified target
Term
grep -i
Definition
ignores case when searching a file
Term
grep -v
Definition
displays lines without the target
Term
grep -n
Definition
adds line numbers to the output
Term
echo
Definition
repeats the parameters that are given
Term
source
Definition
will cause the shell to execute a file
Term
chmod
Definition
allows you to change the permissions of a file (change mode bits)
Term
ps
Definition
reports a snapshot of the current processes
Supporting users have an ad free experience!