Understanding UNIX Operating System and File System

Slide Note
Embed
Share

UNIX is a powerful operating system developed in the 1960s that forms the basis for modern systems like Linux. It manages hardware communication for users and programs. The file system organizes files in a hierarchical structure, with directories acting as folders. Learn about directories, subdirectories, files, and paths within the UNIX environment.


Uploaded on Oct 07, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Lab 01

  2. UNIX - What is it? UNIX is an operating system First developed in the 1960s, constant development ever since Operating system is a suite of programs that make computer work Communicates with hardware on behalf of users and programs Department machines use Linux, a version of UNIX

  3. File System All files are organized in a directory structure - the file-system Directories are like folders - they contain many files Arranged in a hierarchical structure, like an inverted tree The top of the hierarchy is the root (written as a slash /) .. refers to the directory above another directory (aka the parent directory) Only the root has no parent A directory inside another directory is called a subdirectory

  4. Example TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  5. Home Directory TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  6. Sub Directories TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  7. File TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  8. Parent Directory TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  9. Paths TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  10. Paths /TempHome/dogs/myDogs TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  11. Paths TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  12. Paths /TempHome/cats/myCats/yellowCats.jpg TempHome cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  13. Terminal Program on UNIX machines which allows user to navigate the filesystem Can execute various commands to find, read, write, or execute files pwd - prints the working directory ls - lists contents of current directory cd - change directory mkdir - makes a new directory touch - creates a file (includes extension)

  14. Example /TempHome/dogs TempHome pwd cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  15. Example TempHome ls myDogs dogsInfo.csv cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  16. Example TempHome cd cats/myCats cats dogs dog.txt myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  17. Example TempHome cats dogs dog.txt cd ../../dogs myCats catsInfo.csv myDogs dogsInfo.csv yellowCats.jpg brownCats.jpg chihuahua.txt otherDogs.jpg myDog.jpg

  18. Review pwd - current directory ls - list contents cd - change directory

  19. Review mkdir - make directory touch - create a file (include extension)