Linux Commands Flashcards
date
displays today’s date
cal
displays current month
df
displays the current amount of free space on disk drives
free
displays the amount of free memory
exit
to end terminal session
CTRL-D
command to end terminal session
pwd
print working directory
cd
change working directory to home directory
cd ..
change to parent directory
cd -
change to previous directory
cd ~user_name
change to home directory of user_name
ls
list files and directories
ls -a (–all)
list all files including hidden ones
ls -A (–almost all)
like ls -a except for . current directory and .. parent directory
ls -d (–directory)
use with -l to view details of the diretory itself
ls -F (–classify)
appends indicator to each listed name (i.e., / if directory)
ls -h (–human-readable)
displays files sizes in human-readable in long format listings
ls -l
display listing in long format (with details)
ls -r (–reverse)
display results in reverse order
ls -S
display results by file size
ls -t
display results by modification time
file filename
determine file type
less filename
program to view text files
less etc/passwd
lists all the system’s user accounts