Introduction to linux

 An operating system is software that manages all of the hardware resources associated with desktop or laptop.

Two ways to manage files:

  1. Terminal (Command Line Interface - CLI)
  2. File Manager (Graphical User Interface - GUI)
Why learn Command Line Interface?
  • Granular control of an OS or application.
  • More efficient management of a large number of systems.
  • Ability to store scripts to automate regular task.
  • Enables troubleshooting of network connection issues or resolving other system tasks.

  1. ':' - It is a simple seperator.
  2. '~' - It shows that the user working in the home directory. 
  3. '$' - It suggests that you are working as a regular user in Linux.
  4. '#' - Sign for root user.
Present Working Directory.
Directory which is currently browsing.

  1. pwd - Command which determines the directory you are presently working on. It stands for print working directory.
Changing root directories.
  1. cd - Changes current directory.
  2. cd/ cd~ - to navigate to home directory.
Moving to root directory:
  1. / - root of file system.
  2. /dev/cpu - to reach directory file directly.
  3. cd .. - Navigating up one directory level.
Relative and absolute paths.
Path in computing is the address of a file or folder.

e.g of absolute path: cd/home/guru99/Pictures
e.g of relative path: cd downloads

Accessing Hardware Information.
  1. Disk Space Usage: <df-h> or <lsblk> (displays the mounted filesystem disk usage)
  2. Memory: <free-h> or <cat/proc/meminfo> (Displays the RAM and virtual memory information)
  3. CPU Details: <lscpu> or <cat/proc/cpu> (Displays information related to CPU)
  4. Peripheral Component Interconnection (PCI) Devices: <lspci> (Displays the PCI devices list and its information)
                                                                              OR
                                     We can use <lshw> to view all above infromation.



    

Comments

Popular posts from this blog

Basic structures of a computer

Client Server Architecture

Fetch, execution and IO