Silvestro Di Pietro
22/03/2023

is a family of multitasking, multiuser computer operating systems
that derive from the original AT&T Unix, whose
development started in 1969 at the Bell Labs research
center by Ken Thompson, Dennis Ritchie, and
others.

Dennis MacAlistair Ritchie (September 9, 1941 – c. October 12, 2011)
https://youtu.be/XvDZLjaCJuw
https://youtu.be/NTfOnGZUZDk
ls list files in current directoryls -l list files in a long formatls -a list all files (including hidden files) in
current directoryls -F adds indicators to the list output to identify
directories and different types of files.For example
ls -alwould list all files in the current directory, including hidden files, in a long format.
. the current working directory.. the parent directory to working directory~ your home directory/ the root (top-level) directory. This is also the
separator for directories* a wildcard meaning any string of characters? a wildcard meaning any single charactercp file1 file2 makes a copy of file1 and calls it
file2mv file1 file2 moves (renames) file1 to file2rm file1 removes (deletes) file1rm -i file1 asks for confirmation that you want to
delete file1there are the
randfarguments whereris for recursive andfif for force
pwd print the working directorycd dirname change directory to
dirnamecd .. change to the parent directory of the
currentcd ~ change to your home directorymkdir dirname makes a new directory with name
“dirname”rmdir dirname removes the directory with name
“dirname”.rmdir -r dirname recursively removes
directories and subdirectoriescat file1 writes the whole of file “file1” to
the terminal, also useful for concatenating filesmore file1 displays the file “file1” a page at
a timeless file1 a more versatile version of
“more”head -30 file1 show the first 30 linestail -25 file1 show the last 25 linestail -f file1 show the last few lines and keep
updating as the file growswc file1 counts lines, words and characters in
a filectrl C interrupts whatever is currently running. (It
can get you out of trouble at embarrassing moments)ctrl Z puts a foreground process into the
background.ctrl S suspends current terminalctrl Q resumes current terminalUnix allow to set ACL (access control list) to files. User ROOT (Super User) can do anything so can assign permissions. There are three sets:

bash-3.2$ ls -la
total 72
drwxr-xr-x 7 sdipietr staff 224 Mar 22 08:46 .
drwxr-xr-x 14 sdipietr staff 448 Mar 21 14:38 ..
-rw-r--r-- 1 sdipietr staff 8196 Mar 21 14:42 .DS_Store
-rw-r--r-- 1 sdipietr staff 12387 Mar 21 16:50 05-Unix.html
-rw-r--r-- 1 sdipietr staff 3204 Mar 22 08:46 05-Unix.md
drwxr-xr-x 7 sdipietr staff 224 Mar 21 14:53 images
-rw-r--r-- 1 sdipietr staff 1110 Mar 21 14:44 instituteStyle.htmlu userg groupo othersa all (equivalent to ugo)+ gain- loser read permissionw write permissionx execute permissionchmod changes file and directory permissions
chmod u+r file1 change permissions of “file1” so user
(“u”) gains (“+”) read permission (“r”).chmod -R 754 directorychgrg change group ownership
chgrp group1 file1 change “file1” to belong to group
“group1”chown change ownership
chown -R root:user directory