shell basics Flashcards
ls
lists directory contents
ls -l
uses long listing format
ls -v
explains what is being done
mkdir -p
makes parents
rmdir -p
removes dir and its ancestors
mkdir
makes dir
rmdir
removes empty dir
rm
removes files and dir
rm -r
removes dir and their contents recursively
rm -i
checks before every removal
cp
copies files and dir
cp -r
copies recursively
cp -v
explains what is being done
mv
moves(renames) files
mv -v
explains what is being done
touch
changes file timestamps; creates new file if it doesn’t exist
touch -c
doesn’t create new files
touch -a
only changes access time
touch -m
only changes modificiation time
touch -t
changes time to [[CC]MMDDhhmm[.ss] instead of current time
cat
concatenates files and prints on the standard output
cat
prints on the standard output