CompTIA Linux+ Powered by LPI certifies foundational skills and knowledge of Linux. With Linux being the central operating system for much of the worlds IT infrastructure, Linux+ is an essential credential for individuals working in IT, especially those on the path of a Web and software development career. With CompTIAs Linux+ Powered by LPI certification, youll acquire the fundamental skills and knowledge you need to successfully configure, manage and troubleshoot Linux systems. Recommended experience for this certification includes CompTIA A+, CompTIA Network+ and 12 months of Linux admin experience. No prerequisites required.
This document provides an overview of Linux system fundamentals including how to install Ubuntu in a virtual machine, basic commands like ls, cat, and sudo, understanding users, home directories and man pages. It explains key Linux concepts such as the kernel, command line interface, and root user and how to switch directories, view files and get help using man pages.
- Linux originated as a clone of the UNIX operating system. Key developers included Linus Torvalds and developers from the GNU project.
- Linux is open source, multi-user, and can run on a variety of hardware. It includes components like the Linux kernel, shell, terminal emulator, and desktop environments.
- The document provides information on common Linux commands, files, users/groups, permissions, and startup scripts. It describes the Linux file system and compression/archiving utilities.
The document provides an overview of common Linux commands organized into categories, with brief explanations of each command. It covers commands for working with files and directories (ls, cd, cp, rm), processes (ps, top, kill), networking (ping, ifconfig), file archiving and compression (tar, gzip), and more. It also lists important directories in the Linux file system such as /bin, /usr/bin, /etc, and directories under /usr.
This document discusses user administration concepts and mechanisms in UNIX/Linux operating systems. It covers topics like users, groups, permissions, and how to manage users and groups. Specific commands to manage files, directories and permissions are also described, such as chown, chgrp, and chmod. The structure of standard UNIX/Linux directories like /bin, /dev, /etc, and others are outlined as well.
Unix Shell Script - 2 Days Session.pptxRajesh Kumar
油
The document provides an overview of Unix and shell scripting. It discusses what Unix is, its architecture including the kernel, shell, commands, and filesystem. It then covers what shell scripts are, their components and syntax. The document provides examples of shell script code and discusses how to invoke scripts, execute them in background, and useful metacharacters. It also covers various Unix commands like ls, cd, grep, find and their usage.
The document provides information about an upcoming UNIX and Shell Scripting workshop, including contact information for the workshop instructor R. Chockalingam, and covers topics that will be discussed such as the architecture and components of the UNIX operating system, basic UNIX commands, text editors, the file system structure, flags and arguments, and more.
Unix was created in 1969 by Ken Thompson at Bell Labs to allow multiple users to access a computer simultaneously. It features a multi-user design, hierarchical file system, and shell interface. The kernel handles memory management, process scheduling, and device interactions to enable these features. Common Unix commands like cat, ls, cp and rm allow users to work with files and directories from the shell. File permissions and ownership are managed through inodes to control access across users.
This document provides a beginner's guide to learning Linux. It covers topics such as what Linux is, understanding files and folders, users and permissions, the root user, opening a terminal, basic commands like ls, cd, pwd, and tar for archiving files. The guide explains important Linux concepts and provides examples of common commands to get started using the Linux command line.
This document provides a beginner's guide to learning Linux. It covers topics such as what Linux is, understanding files and folders, users and permissions, the root user, opening a terminal, basic commands like ls, cd, pwd, and tar for archiving files. The guide explains important Linux concepts and provides examples of common commands to get started using the Linux command line.
This document provides a beginner's guide to learning Linux. It covers topics such as what Linux is, understanding files and folders, users and permissions, the root user, opening a terminal, basic commands like ls, cd, pwd, and tar for archiving files. The guide explains important Linux concepts and provides examples of common commands to get started using the Linux command line.
This document discusses embedded Linux programming. It covers topics such as what Linux is, the layers in a Linux system including the kernel and user programs, how Linux differs from legacy real-time operating systems, and an agenda for a course on embedded Linux driver development that covers the Linux kernel, memory management, interrupts, and networking. It also provides information on basic Linux command line tools and file permissions.
The document discusses Linux commands for file management and viewing. It describes commands for navigating directories (cd), changing file permissions (chmod), copying files (cp), finding files (find), listing directory contents (ls), creating and removing directories (mkdir, rmdir), moving and renaming files (mv), viewing file contents (cat, head, tail), comparing files (cmp, diff), searching files (grep), and more. It also covers commands for compressing, archiving, and backing up files like tar, gzip, zip, and commands for counting, sorting, and filtering file contents.
The document discusses Linux commands for file management, viewing and shell programming. It describes common commands like ls, cd, cp, mv, rm, mkdir which allow navigating and manipulating files and directories. It also covers commands for viewing file contents like cat, head, tail, grep. Commands for compression like tar, gzip, zip and decompression like gunzip, unzip are mentioned. The document also has a section on shell programming which explains how to write shell scripts using commands and variables. It provides examples of using pipes, redirections and command options.
This document discusses managing the Linux file system. It describes the Linux file system structure, including the main directories like /bin, /home, /etc. It also covers common file system tasks like navigating directories, managing files and directories by creating, deleting, copying and moving files. Additional topics covered include managing disk partitions by creating partitions with fdisk and formatting partitions with file systems using mkfs, mounting partitions, and checking file systems with fsck.
This document provides an overview of the Linux operating system. It discusses that Linux is an open-source operating system that provides a structured file system, multi-user capabilities, and strong security. It describes the Linux file structure with directories like /bin, /boot, /dev, /etc, and explains commands to view processes, manage users and files, and install packages. Network services like Apache web server, OpenSSH, and FTP are also summarized.
The document provides an overview of the Linux filesystem, including its hierarchical tree structure with common subdirectories like /bin, /home, and /usr. It discusses useful commands for navigating the filesystem like cd, pwd, and running privileged commands with sudo. The document also compares the Linux and Windows filesystem structures and file types. It introduces package management with apt-get and the power of pipes in Linux.
NanoCdac Providing linux administration training in Hyderabad. Training includes Linux Internals and Device Drivers,Real -Time Operating System (RTLinux) Programming,Linux System programming,Linux Device Drivers Programming.Our aim is to quality training to the students and professionals Call Us-040 -23754144,+91- 9640648777
The document defines an operating system and describes the key components and types of operating systems. It provides details on the differences between Windows and UNIX/Linux operating systems. It also summarizes the architecture of an operating system including the shell and kernel components. Common commands used in UNIX/Linux systems such as ls, cd, pwd are also described.
Unix is a multi-user computer operating system capable of handling activities from multiple users simultaneously. It was originally developed in 1969 at Bell Labs by Ken Thompson and Dennis Ritchie. The Unix operating system acts as an interface between the user and computer, allowing users to run multiple programs simultaneously. It became a leading operating system for commercial enterprises during the 1980s and 1990s.
Here are the steps to complete the assignment:
1. Login as guest user (password is guest)
2. To find the present working directory: pwd
3. The root directory structure includes: /bin, /dev, /etc, /home, /lib, /root, /sbin, /tmp, /usr etc.
4. A few commands in /bin are: ls, cp, mv, rm, chmod. Commands in /sbin are: ifconfig, route, iptables etc.
5. The guest home directory is /home/guest
6. The permissions of the guest home directory are: drwxr-xr-x
7. To create a new
Linux is an open source operating system initially created by Linus Torvalds in 1991. It has since grown significantly with hundreds of companies and individuals developing their own versions based on the Linux kernel. The kernel is developed under the GNU GPL license and its source code is freely available. Basic Linux commands allow users to navigate directories, manage files and permissions, transfer files, and get system information. More advanced commands provide additional control and functionality.
This document provides an overview of shell scripting. It begins with an agenda that covers introducing UNIX/Linux and shell, basic shell scripting structure, shell programming with variables, operators, and logic structures. It then gives examples of shell scripting applications in research computing and concludes with hands-on exercises. The document discusses the history and architecture of UNIX/Linux, commonly used shells like bash and csh, and why shell scripting is useful for tasks like preparing input files, job monitoring, and output processing. It also covers basic UNIX commands, commenting in scripts, and debugging strategies.
Unix was created in 1969 by Ken Thompson at Bell Labs to allow multiple users to access a computer simultaneously. It features a multi-user design, hierarchical file system, and shell interface. The kernel handles memory management, process scheduling, and device interactions to enable these features. Common Unix commands like cat, ls, cp and rm allow users to work with files and directories from the shell. File permissions and ownership are managed through inodes to control access across users.
This document provides a beginner's guide to learning Linux. It covers topics such as what Linux is, understanding files and folders, users and permissions, the root user, opening a terminal, basic commands like ls, cd, pwd, and tar for archiving files. The guide explains important Linux concepts and provides examples of common commands to get started using the Linux command line.
This document provides a beginner's guide to learning Linux. It covers topics such as what Linux is, understanding files and folders, users and permissions, the root user, opening a terminal, basic commands like ls, cd, pwd, and tar for archiving files. The guide explains important Linux concepts and provides examples of common commands to get started using the Linux command line.
This document provides a beginner's guide to learning Linux. It covers topics such as what Linux is, understanding files and folders, users and permissions, the root user, opening a terminal, basic commands like ls, cd, pwd, and tar for archiving files. The guide explains important Linux concepts and provides examples of common commands to get started using the Linux command line.
This document discusses embedded Linux programming. It covers topics such as what Linux is, the layers in a Linux system including the kernel and user programs, how Linux differs from legacy real-time operating systems, and an agenda for a course on embedded Linux driver development that covers the Linux kernel, memory management, interrupts, and networking. It also provides information on basic Linux command line tools and file permissions.
The document discusses Linux commands for file management and viewing. It describes commands for navigating directories (cd), changing file permissions (chmod), copying files (cp), finding files (find), listing directory contents (ls), creating and removing directories (mkdir, rmdir), moving and renaming files (mv), viewing file contents (cat, head, tail), comparing files (cmp, diff), searching files (grep), and more. It also covers commands for compressing, archiving, and backing up files like tar, gzip, zip, and commands for counting, sorting, and filtering file contents.
The document discusses Linux commands for file management, viewing and shell programming. It describes common commands like ls, cd, cp, mv, rm, mkdir which allow navigating and manipulating files and directories. It also covers commands for viewing file contents like cat, head, tail, grep. Commands for compression like tar, gzip, zip and decompression like gunzip, unzip are mentioned. The document also has a section on shell programming which explains how to write shell scripts using commands and variables. It provides examples of using pipes, redirections and command options.
This document discusses managing the Linux file system. It describes the Linux file system structure, including the main directories like /bin, /home, /etc. It also covers common file system tasks like navigating directories, managing files and directories by creating, deleting, copying and moving files. Additional topics covered include managing disk partitions by creating partitions with fdisk and formatting partitions with file systems using mkfs, mounting partitions, and checking file systems with fsck.
This document provides an overview of the Linux operating system. It discusses that Linux is an open-source operating system that provides a structured file system, multi-user capabilities, and strong security. It describes the Linux file structure with directories like /bin, /boot, /dev, /etc, and explains commands to view processes, manage users and files, and install packages. Network services like Apache web server, OpenSSH, and FTP are also summarized.
The document provides an overview of the Linux filesystem, including its hierarchical tree structure with common subdirectories like /bin, /home, and /usr. It discusses useful commands for navigating the filesystem like cd, pwd, and running privileged commands with sudo. The document also compares the Linux and Windows filesystem structures and file types. It introduces package management with apt-get and the power of pipes in Linux.
NanoCdac Providing linux administration training in Hyderabad. Training includes Linux Internals and Device Drivers,Real -Time Operating System (RTLinux) Programming,Linux System programming,Linux Device Drivers Programming.Our aim is to quality training to the students and professionals Call Us-040 -23754144,+91- 9640648777
The document defines an operating system and describes the key components and types of operating systems. It provides details on the differences between Windows and UNIX/Linux operating systems. It also summarizes the architecture of an operating system including the shell and kernel components. Common commands used in UNIX/Linux systems such as ls, cd, pwd are also described.
Unix is a multi-user computer operating system capable of handling activities from multiple users simultaneously. It was originally developed in 1969 at Bell Labs by Ken Thompson and Dennis Ritchie. The Unix operating system acts as an interface between the user and computer, allowing users to run multiple programs simultaneously. It became a leading operating system for commercial enterprises during the 1980s and 1990s.
Here are the steps to complete the assignment:
1. Login as guest user (password is guest)
2. To find the present working directory: pwd
3. The root directory structure includes: /bin, /dev, /etc, /home, /lib, /root, /sbin, /tmp, /usr etc.
4. A few commands in /bin are: ls, cp, mv, rm, chmod. Commands in /sbin are: ifconfig, route, iptables etc.
5. The guest home directory is /home/guest
6. The permissions of the guest home directory are: drwxr-xr-x
7. To create a new
Linux is an open source operating system initially created by Linus Torvalds in 1991. It has since grown significantly with hundreds of companies and individuals developing their own versions based on the Linux kernel. The kernel is developed under the GNU GPL license and its source code is freely available. Basic Linux commands allow users to navigate directories, manage files and permissions, transfer files, and get system information. More advanced commands provide additional control and functionality.
This document provides an overview of shell scripting. It begins with an agenda that covers introducing UNIX/Linux and shell, basic shell scripting structure, shell programming with variables, operators, and logic structures. It then gives examples of shell scripting applications in research computing and concludes with hands-on exercises. The document discusses the history and architecture of UNIX/Linux, commonly used shells like bash and csh, and why shell scripting is useful for tasks like preparing input files, job monitoring, and output processing. It also covers basic UNIX commands, commenting in scripts, and debugging strategies.
Finals of Rass MELAI : a Music, Entertainment, Literature, Arts and Internet Culture Quiz organized by Conquiztadors, the Quiz society of Sri Venkateswara College under their annual quizzing fest El Dorado 2025.
Mate, a short story by Kate Grenvile.pptxLiny Jenifer
油
A powerpoint presentation on the short story Mate by Kate Greenville. This presentation provides information on Kate Greenville, a character list, plot summary and critical analysis of the short story.
The Constitution, Government and Law making bodies .saanidhyapatel09
油
This PowerPoint presentation provides an insightful overview of the Constitution, covering its key principles, features, and significance. It explains the fundamental rights, duties, structure of government, and the importance of constitutional law in governance. Ideal for students, educators, and anyone interested in understanding the foundation of a nations legal framework.
APM People Interest Network Conference 2025
- Autonomy, Teams and Tension
- Oliver Randall & David Bovis
- Own Your Autonomy
Oliver Randall
Consultant, Tribe365
Oliver is a career project professional since 2011 and started volunteering with APM in 2016 and has since chaired the People Interest Network and the North East Regional Network. Oliver has been consulting in culture, leadership and behaviours since 2019 and co-developed HPTM速an off the shelf high performance framework for teams and organisations and is currently working with SAS (Stellenbosch Academy for Sport) developing the culture, leadership and behaviours framework for future elite sportspeople whilst also holding down work as a project manager in the NHS at North Tees and Hartlepool Foundation Trust.
David Bovis
Consultant, Duxinaroe
A Leadership and Culture Change expert, David is the originator of BTFA and The Dux Model.
With a Masters in Applied Neuroscience from the Institute of Organisational Neuroscience, he is widely regarded as the Go-To expert in the field, recognised as an inspiring keynote speaker and change strategist.
He has an industrial engineering background, majoring in TPS / Lean. David worked his way up from his apprenticeship to earn his seat at the C-suite table. His career spans several industries, including Automotive, Aerospace, Defence, Space, Heavy Industries and Elec-Mech / polymer contract manufacture.
Published in Londons Evening Standard quarterly business supplement, James Caans Your business Magazine, Quality World, the Lean Management Journal and Cambridge Universities PMA, he works as comfortably with leaders from FTSE and Fortune 100 companies as he does owner-managers in SMEs. He is passionate about helping leaders understand the neurological root cause of a high-performance culture and sustainable change, in business.
Session | Own Your Autonomy The Importance of Autonomy in Project Management
#OwnYourAutonomy is aiming to be a global APM initiative to position everyone to take a more conscious role in their decision making process leading to increased outcomes for everyone and contribute to a world in which all projects succeed.
We want everyone to join the journey.
#OwnYourAutonomy is the culmination of 3 years of collaborative exploration within the Leadership Focus Group which is part of the APM People Interest Network. The work has been pulled together using the 5 HPTM速 Systems and the BTFA neuroscience leadership programme.
https://www.linkedin.com/showcase/apm-people-network/about/
Research & Research Methods: Basic Concepts and Types.pptxDr. Sarita Anand
油
This ppt has been made for the students pursuing PG in social science and humanities like M.Ed., M.A. (Education), Ph.D. Scholars. It will be also beneficial for the teachers and other faculty members interested in research and teaching research concepts.
APM event hosted by the South Wales and West of England Network (SWWE Network)
Speaker: Aalok Sonawala
The SWWE Regional Network were very pleased to welcome Aalok Sonawala, Head of PMO, National Programmes, Rider Levett Bucknall on 26 February, to BAWA for our first face to face event of 2025. Aalok is a member of APMs Thames Valley Regional Network and also speaks to members of APMs PMO Interest Network, which aims to facilitate collaboration and learning, offer unbiased advice and guidance.
Tonight, Aalok planned to discuss the importance of a PMO within project-based organisations, the different types of PMO and their key elements, PMO governance and centres of excellence.
PMOs within an organisation can be centralised, hub and spoke with a central PMO with satellite PMOs globally, or embedded within projects. The appropriate structure will be determined by the specific business needs of the organisation. The PMO sits above PM delivery and the supply chain delivery teams.
For further information about the event please click here.
How to Modify Existing Web Pages in Odoo 18Celine George
油
In this slide, well discuss on how to modify existing web pages in Odoo 18. Web pages in Odoo 18 can also gather user data through user-friendly forms, encourage interaction through engaging features.
Useful environment methods in Odoo 18 - Odoo 際際滷sCeline George
油
In this slide well discuss on the useful environment methods in Odoo 18. In Odoo 18, environment methods play a crucial role in simplifying model interactions and enhancing data processing within the ORM framework.
Principle and Practices of Animal Breeding || Boby BasnetBoby Basnet
油
18 LINUX OS.pptx Linux command is basic isma
1. LINUX OS
Linux is a family of open-source Unix-like operating systems based on the Linux kernel,
an operating system kernel first released on September 17, 1991, by Linus Torvalds.
Components of Linux System
Linux Operating System has primarily three components
Kernel Kernel is the core part of Linux. It is responsible for all major activities of this
operating system. It consists of various modules and it interacts directly with the
underlying hardware. Kernel provides the required abstraction to hide low level hardware
details to system or application programs.
System Library System libraries are special functions or programs using which
application programs or system utilities accesses Kernel's features. These libraries
implement most of the functionalities of the operating system and do not requires kernel
module's code access rights.
System Utility System Utility programs are responsible to do specialized, individual
level tasks
2. LINUX OS
Linux is a family of open-source Unix-like operating systems based on the Linux kernel,
an operating system kernel first released on September 17, 1991, by Linus Torvalds.
Components of Linux System
Linux Operating System has primarily three components
Kernel Kernel is the core part of Linux. It is responsible for all major activities of this
operating system. It consists of various modules and it interacts directly with the
underlying hardware. Kernel provides the required abstraction to hide low level hardware
details to system or application programs.
System Library System libraries are special functions or programs using which
application programs or system utilities accesses Kernel's features. These libraries
implement most of the functionalities of the operating system and do not requires kernel
module's code access rights.
System Utility System Utility programs are responsible to do specialized, individual
level tasks
3. Basic Features
Following are some of the important features of Linux Operating System.
Portable Portability means software can works on different types of hardware in same way. Linux kernel and
application programs supports their installation on any kind of hardware platform.
Open Source Linux source code is freely available and it is community based development project. Multiple teams
work in collaboration to enhance the capability of Linux operating system and it is continuously evolving.
Multi-User Linux is a multiuser system means multiple users can access system resources like memory/ ram/
application programs at same time.
Multiprogramming Linux is a multiprogramming system means multiple applications can run at same time.
Hierarchical File System Linux provides a standard file structure in which system files/ user files are arranged.
Shell Linux provides a special interpreter program which can be used to execute commands of the operating
system. It can be used to do various types of operations, call application programs. etc.
Security Linux provides user security using authentication features like password protection/ controlled access to
specific files/ encryption of data.
4. Basic Linus Commands
Linux commands are case sensitive hence you need to be careful about what you are keying in.
1. ls
List directory contents. If you know windows you would know that the command dir is used to list
the contents in a directory. In Linux, the ls command is used to list out files and directories.
$ ls -l filename
2. cd /var/log
Change the current directory. The forward slash is to be used in Linux. The example is a Linux
directory that comes with all versions of Linux
$ cd/var/log
5. .
3. grep
Find text in a file. The grep command searches through many files at a time to find a piece of text you
are looking for.
$ grep failed transaction.log
The above command will find all of the words in the files that matched the word failed.
4. su / sudo command
There are some commands that need elevated rights to run on a Linux system. So you run them as a
System Administrator which normal users cannot do.
su command changes the shell to be used as a super user and until you use the exit command you can
continue to be the super user
sudo if you just need to run something as a super user, you can use the sudo command. This will
allow you to run the command in elevated rights and once the command is executed you will be back to
your normal rights and permissions.
Example shutdown command the shutdown command safely turns off the computer system.
sudo shutdown 2 shutdown and turns of the computer after 2 minutes
sudo shutdown r 2 shuts down and reboots in 2 minutes
Using ctrl C or shutdown c helps in stopping the shutdown process.
$ sudo shutdown 2
$ sudo shutdown r 2
6. 5. pwd Print Working Directory
One way to identify the directory you are working in is the pwd command
It displays the current working directory path and is useful when directory changes are often.
$ pwd
6. passwd
This command is used to change the user account password.
$ passwd admin
7. mv Move a file
To move a file or rename a file you would use the mv command. Here the file name gets changed
from first.txt to second.txt.
$ mv first.txt second.txt
7. .
8. cp Copy a file
cp source file destination file. In case you need a copy of the file second.txt in the same directory you
have to use the cp command
$ cp second.txt third.txt
9. rm
This command is used to remove files in a directory or the directory itself. A directory cannot be removed
if it is not empty.
rm [name of the file]
rm r removes all the contents in a directory and the directory as well.
$ rm file1
$ rm r myprojects
10. mkdir to make a directory.
mkdir [directory name] if you would like to create a directory in the name myproject type
mkdir myproject
$ mkdir myprojects
8. 11. chmod
To change mode of a file system object. Files can have r read, w- write and x-execute permissions.
For example:
chmod mode FILE
chmod 744 script.sh
The first number stands for the user who is associated with the file
The second number is for the group associated with the file
The third number is associated with everyone else who is not a part of the user or group
$ chmod 744 script.sh
12. chown
This command is used to change the ownership of a file/folder or even multiple files/folders for a
specified user/group.
chown owner_name file_name
$ chown user1 script.sh
9. .
13. cat -
The cat command (short for concatenate ) is one of the most frequently used commands in
Linux. cat command allows you to create single or multiple files, view contents of file, concatenate
files and redirect output in terminal or files.
$ cat file.txt
$ cat file1.txt file2.txt
14. echo
This command is used to display a text or a string to the standard output or a file.
$ echo This is an article on basic linux commands
The echo e option acts as an interpretation of escape characters that are back-slashed.
$ echo e This is an article is for beginners. nIt is on basic linux commands
Output is
This is an article is for beginners.
It is on basic linux commands
10. 15. wc -
The wc (word count) command in Linux operating system is used to find out the number of new lines,
word count, byte and characters count in a file specified by the file arguments.
$ wc -1 readme.txt
Shows the output as - 120 readme.txt
wc -l : Prints the number of lines in a file.
wc -w : prints the number of words in a file.
wc -c : Displays the count of bytes in a file.
wc -m : prints the count of characters from a file.
wc -L : prints only the length of the longest line in a file
16. man
This command is used to view the on-line reference manual pages for commands/programs.
$ man grep
17. history
This command is used to show previously used commands or to get information about the commands
executed by a user.
$ history
11. .
18. clear
This command lets you clear the terminal screen.
$ clear
19. apt get
apt -get is a powerful and free front-end package manager for Debian/Ubuntu systems. It is used to
install new software packages, remove available software packages, upgrade existing software
packages as well as upgrade the entire operating system. apt stands for advanced packaging
tool.
$ sudo apt-get update
20. reboot
This command may be used to halt, power-off or reboot a system as follows.
$ reboot
12. .
Directory Description
/ (root filesystem) The root filesystem is the top-level directory of the filesystem. It must contain all of the files
required to boot the Linux system before other filesystems are mounted. It must include all
of the required executables and libraries required to boot the remaining filesystems. After
the system is booted, all other filesystems are mounted on standard, well-defined mount
points as subdirectories of the root filesystem.
/bin The /bin directory contains user executable files.
/boot Contains the static bootloader and kernel executable and configuration files required to
boot a Linux computer.
/dev This directory contains the device files for every hardware device attached to the system.
These are not device drivers, rather they are files that represent each device on the
computer and facilitate access to those devices.
/etc Contains the local system configuration files for the host computer
/home Home directory storage for user files. Each user has a subdirectory in /home.
/lib Contains shared library files that are required to boot the system.
Linux File system
13. .
/media A place to mount external removable media devices such as USB thumb drives that may be
connected to the host.
/mnt A temporary mountpoint for regular filesystems (as in not removable media) that can be used while
the administrator is repairing or working on a filesystem.
/opt Optional files such as vendor supplied application programs should be located here.
/root This is not the root (/) filesystem. It is the home directory for the root user.
/sbin System binary files. These are executables used for system administration.
/tmp Temporary directory. Used by the operating system and many programs to store temporary files.
Users may also store files here temporarily. Note that files stored here may be deleted at any time
without prior notice.
/usr These are shareable, read-only files, including executable binaries and libraries, man files, and
other types of documentation.
/var Variable data files are stored here. This can include things like log files, MySQL, and other
database files, web server data files, email inboxes, and much more.
14. A shell in a Linux
A shell in a Linux operating system takes input from you in the form of commands, processes it, and
then gives an output. It is the interface through which a user works on the programs, commands, and
scripts. A shell is accessed by a terminal which runs it. ... Hence the name Shell.
File Permissions
On a Linux system, each file and directory is assigned access rights for the owner of the file, the members
of a group of related users, and everybody else. Rights can be assigned to read a file, to write a file, and
to execute a file.
[me@linuxbox me]$ ls -l /bin/bash
-rwxr-xr-x 1 root root 1113504 Jun 6 2019 /bin/bash
Here we can see:
The file "/bin/bash" is owned by user "root"
The superuser has the right to read, write, and execute this file
The file is owned by the group "root"
Members of the group "root" can also read and execute this file
Everybody else can read and execute this file
15. In the diagram below, we see how the first portion of the listing is interpreted. It
consists of a character indicating the file type, followed by three sets of three
characters that convey the reading, writing and execution permission for the owner,
group, and everybody else.
16. VI Editor
Vi or the Visual Editor is the default text editor that comes with most Linux systems. It is a
Terminal-based text editor that users need to learn, essentially when more user-friendly text
editors are not available on the system. ... Vi editor creates small size files making it light on your
storage.
VI editor works on two mode:
Command Mode and
Insert Mode
Command Mode
The vi editor opens in this mode, and it only understands commands
In this mode, you can, move the cursor and cut, copy, paste the text
This mode also saves the changes you have made to the file
17. vi Editor Insert mode:
This mode is for inserting text in the file.
You can switch to the Insert mode from the command mode by pressing 'i' on the keyboard
Once you are in Insert mode, any key would be taken as an input for the file on which you are
currently working.
To return to the command mode and save the changes you have made you need to press the
Esc key
How to use vi editor
To launch the VI Editor -Open the Terminal (CLI) and type
vi <filename_NEW> or <filename_EXISTING>
And if you specify an existing file, then the editor would open it for you to edit. Else, you can
create a new file.
18. VI Editing commands
i - Insert at cursor (goes into insert mode), a - Write after cursor (goes into insert mode)
A - Write at the end of line (goes into insert mode), ESC - Terminate insert mode
u - Undo last change, U - Undo all changes to the entire line
o - Open a new line (goes into insert mode), dd - Delete line
3dd - Delete 3 lines., D - Delete contents of line after the cursor
C - Delete contents of a line after the cursor and insert new text. Press ESC key to end insertion.
dw - Delete word
4dw - Delete 4 words
cw - Change word
x - Delete character at the cursor
r - Replace character
R - Overwrite characters from cursor onward
s - Substitute one character under cursor continue to insert
S - Substitute entire line and begin to insert at the beginning of the line
~ - Change case of individual character
19. .
Moving within a file
k - Move cursor up
j - Move cursor down
h - Move cursor left
l - Move cursor right
Saving and Closing the file
Shift+zz - Save the file and quit
:w - Save the file but keep it open
:q - Quit without saving
:wq - Save the file and quit
20. X Window System
The X Window System (X11, or simply X) is a windowing system for bitmap displays, common on
Unix-like operating systems.
X provides the basic framework for a GUI environment: drawing and moving windows on the display
device and interacting with a mouse and keyboard.
The X Window SystemTM provides the base technology for developing graphical user interfaces. At
a very basic level, X draws the elements of the GUI on the user's screen and builds in methods for
sending user interactions back to the application.
21. Filter Commands
A filter is a program that reads standard input, performs an operation upon it and writes the results
to standard output.
1. Awk Command
Awk is a remarkable pattern scanning and processing language, it can be used to build useful
filters in Linux
$ man awk
2. Sed Command
sed is a powerful stream editor for filtering and transforming text. The sed man page has added
control options and instructions:
$ man sed
3. Grep, Egrep, Fgrep, Rgrep Commands
These filters output lines matching a given pattern. They read lines from a file or standard input,
and print all matching lines by default to standard output.
$ egrip=grip -E
22. .
4. head Command : head is used to display the first parts of a file, it outputs the first 10 lines by
default.
tecmint@Tecmint ~ $ head /var/log/auth.log
It displays the tecmint file information.
5. tail Command
tail outputs the last parts (10 lines by default) of a file. Use n num switch to specify the number of
lines to be displayed.
tecmint@Tecmint ~ $ tail n 5 /var/log/auth.log
6. sort Command
sort is used to sort lines of a text file or from standard input.
Below is the content of a file named domains.list:
tecmint@Tecmint ~ $ cat domains.list
7. uniq Command
uniq command is used to report or omit repeated lines, it filters lines from standard input and writes
the outcome to standard output.
23. .
tecmint@TecMint ~ $ sort domains.list
linuxsay.com
linuxsay.com
news.tecmint.com
news.tecmint.com
tecmint@TecMint ~ $ sort domains.list | uniq -c
2 linuxsay.com
2 news.tecmint.com
8. fmt Command
fmt simple optimal text formatter, it reformats paragraphs in specified file and prints results to the
standard output.
tecmint@TecMint ~ $ sort domains.list
1. linuxsay.com 2.linuxsay.com
tecmint@TecMint ~ $ fmt w 1 domains.list.text
1. linuxsay.com
2.linuxsay.com
24. .
9. pr Command
pr command converts text files or standard input for printing.
tecmint@TecMint ~ $ dpkg -l | pr --columns 3 -l 20
--columns : defines number of columns created in the output.
-1 : specifies page length (default is 66 lines).
10. tr Command
This tool translates or deletes characters from standard input and writes results to standard output.
tr options set1 set2
This set1 means upper case letter changed into set2 i.e. lower case.
$
25. Process
As with any multitasking operating system, Linux executes multiple, simultaneous processes.
Well, they appear simultaneous, anyway. Actually, a single processor core can only execute one
process at a time but the Linux kernel manages to give each process its turn at the processor and
each appears to be running at the same time.
There are several commands that are used to control processes. They are:
ps - list the processes running on the system
kill - send a signal to one or more processes (usually to "kill" a process)
jobs - an alternate way of listing your own processes
bg - put a process in the background
fg - put a process in the foreground
26. What are Shell Scripts?
In the simplest terms, a shell script is a file containing a series of commands. The shell reads this
file and carries out the commands as though they have been entered directly on the command line.
To successfully write a shell script, we have to do three things:
Write a script
Give the shell permission to execute it
Put it somewhere the shell can find it
Writing a Script
A shell script is a file that contains ASCII text. To create a shell script, we use a text editor. A text
editor is a program, like a word processor, that reads and writes ASCII text files.
27. Our first script as follows:
#!/bin/bash
# My first script
echo "Hello World!
This is a traditional "Hello World" program. We save it as Hello_World.
The first line of the script is /bin/bash. It is a special construct, called a shebang, given to the system
indicating what program is to be used to interpret the script.
The second line is a comment. Everything that come after # symbol is ignored by bash.
The last line is the echo command. This command simply prints its arguments on the
display.
28. Setting Permissions
The next thing we have to do is give the shell permission to execute our script. This is done with
the chmod command.
[me@linuxbox me]$ chmod 755 hello_world
The "755" will give us read, write, and execute permission. Everybody else will get only read and
execute permission. To make the script private, (i.e., only we can read and execute), use "700"
instead.
Putting It in Our Path
At this point, our script will run.
[me@linuxbox me]$ ./hello_world
We should see "Hello World!" displayed.