Shared Flashcard Set

Details

rhel 5 training guide ch 01
Overview of Linux
42
Computer Science
Professional
03/08/2010

Additional Computer Science Flashcards

 


 

Cards

Term
list hidden files
Definition
ls -a
Term
list File types and what does it show for each type
Definition
ls -F
/ for directories
* for executable
@ for symbolic links
nothing for text files
Term
display file size in human readable format
Definition
ls -lh
-l to show file size
-h to make it human readable
Term
display the long listing of a directory name but not the contents
Definition
ls -ld
Term
display the contents of a directory and all of its sub-directories
Definition
ls -R
Term
list files sorted by date, newest first
Definition
ls -t
Term
list files sorted by date, oldest first
Definition
ls -tr
Term
display files with detailed information, oldest first
Definition
ls -ltr
Term
display files with detailed information, sorted by date, newest first
Definition
ls -lt
Term
display the current directory
Definition
pwd
Term
go back to the home directory - two answers
Definition
cd
cd ~
Term
go to the dir1 sub-directory of the home directory
Definition
cd ~/dir1
Term
go to the home directory of user2
Definition
cd ~user2
Term
switch to the previous directory
Definition
cd -
Term
display the pseudo terminal where you are logged in
Definition
tty
Term
display all current logged in users
Definition
who
Term
display the name of the current user
Definition
who am i
whoami
Term
what is the w command
Definition
the what command
Term
dislay detailed information about who is logged in to the machine
Definition
w
Term
display the name of the first user to log in
Definition
logname
Term
you have used su to switch users several times, display the username of the initial login
Definition
logname
Term
display the user ID
Definition
id
Term
display user2's group ID
Definition
id user2
Term
display all the system information
Definition
uname -a
Term
display the system name
Definition
hostname
Term
remove the text from the screen
Definition
clear
Term
display the date and time, also to make a change
Definition
date
Term
display a calendar for the current month
Definition
cal
Term
display the date and time based on the hardware clock
Definition
hwclock
Term
what is the path of a command (ex: cat)
Definition
which cat
Term
find the location of a command (ex: cat)
Definition
whereis cat
Term
display the lines, words, and character counts(or bytes) of a file
Definition
wc filename
Term
print the line count, word count, byte count, and character count for the file file1
Definition
wc -l file1
wc -w file1
wc -c file1
wc -m file1
Term
send a message to all logged in users - how does it work
Definition
wall
start typing
ctrl+d to send the message
Term
show the instructions for the cat command
Definition
man cat
Term
how do you search forward for the word "text" in a man page
Definition
/text
Term
how do you search backwards for "text" in a man page
Definition
?text
Term
you've searched for "text" in a man page, now find the next instance and the previous instance
Definition
n
N
Term
you are viewing a man page, move forward one page, backward one page
Definition
f/space/Page down
b/Page up
Term
perform a command keyword search for password - two answers
Definition
man -k password
apropos password
Term
who the help page for passwd
Definition
passwd --help
Term
display the short description for the command passwd - two answers
Definition
whatis passwd
man -f passwd
Supporting users have an ad free experience!