UNIX commands Flashcards
ls
ls - list files and directories
mkdir
mkdir - create directory
rmdir
rmdir - remove directory
cd
cd - change dircetory
pwd
pwd - path to current directory
touch
touch - create a file
rm
rm - remove files or directories
mv
mv - move or rename a file (move file1 file2 changes the name)
cp
cp - copy files or directories
ln
ln - create a link to a file
ln tomat.txt ../bar/gurka.txt : Create hard link from tomat.txt (in directory “foo”) to gurka.txt (in directory “bar”)
chmod
chmod - change permissions of a file
cat
cat - print file to standard output (terminal)
echo
echo - display a line of text
echo “hello hello” > tomat.txt : Write “hello hello” to tomat.txt
head
head - output the first part of file
tail
tail - output the last part of file