Silvestro Di Pietro, una passione informatica.

05. Unix

Unix

Unix

Silvestro Di Pietro

22/03/2023

Definition

Unix

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 Ritchie

Dennis MacAlistair Ritchie (September 9, 1941 – c. October 12, 2011)


unix

https://youtu.be/XvDZLjaCJuw


grep

https://youtu.be/NTfOnGZUZDk

Unix Commands

Listing files

For example ls -al would list all files in the current directory, including hidden files, in a long format.


Special characters


Files

there are the r and f arguments where r is for recursive and f if for force


Directories


Text files


control keys


Permissions

Unix allow to set ACL (access control list) to files. User ROOT (Super User) can do anything so can assign permissions. There are three sets:


Permission bytes


List files

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.html

Permission alias


chmod chown

chmod changes file and directory permissions

chgrg change group ownership

chown change ownership

← Back to course