Linux 01 Flashcards
show date
date
show calendar
cal
free disk space
df
free memory
free
exit linux
exit
current working directory
pwd
change directory
cd
list contents of directory
ls
change directory to home directory
cd
change directory to previous
cd -
change directory to specific user name
cd [user]
determine file type
type
view file contents
less (used to me “more”)
list files long output
ls -l
list sort by modification time
ls -lt
list sort in reverse order
ls -lt –reverse
list with directory
ls -d
list sort by file size
ls -S
list sort by mod time
ls -t
less: move to end
G
less beginning of text file
1G or g
less search for characters
/[characters]
less quit
q
directory for storage devices
/etc/fstab
copy
cp
move
mv
make direectory
mkdir
remove files or directories
rm
create links hard or symbolic
ln
wilcdard anything
*
wildcard single character
?
make a directory
mkdir directory
make multiple directories
mkdir dir1 dir2 dir3
copy one file to another
cp item1 item2