Unix
Unix
What is UNIX?
● UNIX is a powerful operating system used for computers.
● It was developed in the 1960s and has evolved over time.
● It is known for being multi-user and multitasking.
History of UNIX
● UNIX was created at Bell Labs in 1969.
● It has influenced many other operating systems, like Linux and
macOS.
● Different versions and distributions of UNIX exist today.
Key Features of UNIX
● Multitasking: Run multiple programs at once.
● Multi-user: Many users can access the system simultaneously.
● Portability: Can run on various hardware platforms.
UNIX vs. Other Operating Systems
● UNIX is different from Windows and macOS in design and
functionality.
● It is often preferred for servers and programming.
● Discuss: What do you think are the advantages of using UNIX?
Basic UNIX Commands
● Common commands include:
● cd: Change directory
● ls: List files
● pwd: Print working directory
● Practice: Try using these commands on your system!
Understanding the UNIX File System
● UNIX has a hierarchical file system structure.
● Important directories include:
● /home: User files
● /bin: Essential programs
● /etc: Configuration files
File Permissions in UNIX
● File permissions control who can access files.
● Key commands:
● chmod: Change permissions
● chown: Change file owner
● Why do you think file permissions are important?
Process Management in UNIX
● You can view running processes with:
● ps: Show current processes
● top: Display active processes
● Managing processes includes:
● kill: Terminate a process
● fg/bg: Bring processes to the foreground/background
Introduction to Shell Scripting
● Shell scripting automates tasks in UNIX.
● You can create scripts to perform multiple commands.
● Example: Write a script to back up files.
Hands-On Practice and Q&A
● Now it's your turn! Complete these tasks:
● Navigate directories and create files.
● Change file permissions.
● Write a simple shell script.
● Questions? What do you want to know more about?