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:
- Terminal (Command Line Interface - CLI)
- 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.
- ':' - It is a simple seperator.
- '~' - It shows that the user working in the home directory.
- '$' - It suggests that you are working as a regular user in Linux.
- '#' - Sign for root user.
Present Working Directory.
Directory which is currently browsing.
- pwd - Command which determines the directory you are presently working on. It stands for print working directory.
Changing root directories.
- cd - Changes current directory.
- cd/ cd~ - to navigate to home directory.
Moving to root directory:
- / - root of file system.
- /dev/cpu - to reach directory file directly.
- 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.
- Disk Space Usage: <df-h> or <lsblk> (displays the mounted filesystem disk usage)
- Memory: <free-h> or <cat/proc/meminfo> (Displays the RAM and virtual memory information)
- CPU Details: <lscpu> or <cat/proc/cpu> (Displays information related to CPU)
- 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
Post a Comment