Linux Commands and syntax Flashcards
Command format
command options arguments
/
absolute path
pwd
print working directory
~
shortcut to absolute path of home directory
cd
change directory
ls
list directory contents
ls -l
produces a detailed long format list
ls -lrth
displays files in chronological order rather than alphabetical
t
time
r
reverse
h
human-readable
du-h
disk usage reveals the size of the current directory
mkdir
make directory in current directory
!$
represents most recently used argument (last argument of last command)
gedit and nano
text editors that can be used as commands to open or create a file in the editors
xyz
file format that represents molecules: number of atoms, comment line, types of atoms and their positions in angstroms
cp
copy (and rename)
mv
move (and rename)
rm
remove
../
parent directory of current directory
cat
prints the contents of the file
less
allows paging through contents (of a large file) using the space bar, end with q