Professional Documents
Culture Documents
Linux 2023
Linux 2023
Linux 2023
An operating system allows your PC’s hardware to communicate with the software you
run on it. It’s hundreds of programs, system libraries, drivers, and more, all tightly integrated
into a whole. In addition, an operating system lets programs talk to other programs and, of
course, communicate with you, the user. In other words, the operating system runs everything
and allows everything to work.
Some other common operating systems are Unix (and its variants BSD, AIX, Solaris,
HPUX, and others); DOS; Microsoft Windows; Amiga; and Mac OS. More properly known
as Gnu/Linux is born in 1991, when Linus Torvalds, then a computer science student at the
University of Heisinki, wanted to run a variation of Unix on his home computer. At that time,
Unix ran only on big workstations with lots of power and memory, not Intel-based personal
computers. GNU is a project established to develop a free system set UNIX-like. Using tools
from the GNU (GNU’s Not Unix) project, Torvalds was able to port a usable operating system
to PCs. He then made the source code available on the Internet, Licensed under the GNU
General Public License (GPL). Linux has been adopted to include support for non-Intel
processors and even multiple processors, sophisticated TCP/IP networking facilities such as
IP masquerading, and more. Several of Linux are now available for such computer models as
the Apple PowerPC, the DEC Alpha, the Motorola 68k, the Sun SPARC, the Mips, and many
others.
2. Introduction to Linux
Linux is a very powerful operating system which includes a multitude of tools for
programmers and system administrators. It is heavily used in the academic and scientific
communities because it is so versatile, and has over 40 years of development of scientific
tools. It is a powerful, robust, stable, and flexible system that allows programmers to tailor the
operations system to run on a variety of hardware from phones to supercomputers.
All modern operating systems have their roots in 1969 when Dennis Ritchie and Ken
Thompson developed the C language and the Unix operating system at AT&T Bell Labs. They
shared their source code with the rest of the world, including the hippies in Berkeyley
California. By 1975, when AT&T started selling Unix commercially, about half of the source
code was written by others. The hippies were not happy that a commercial company sold
software that they had written; the resulting (legal) battle ended in there being two versions of
Unix in the Seventies: the official AT&T Unix, the free BSD Unix.
In the Eighties many companies started developing their own Unix: IBM created AIX,
Sun SunOS (later Solaris), HP HP-UX and about a dozen other companies
Fewer Crashes
Linux very rarely crashes. Programs that run on top of Linux sometimes crash, but they
don’t take the rest of the system down with them.
Security
Linux is very secure. It’s built from the ground up to be secure, in fact, and Linux is based
on years of proven computer science research. It works on the principle of users who have
permissions to undertake various tasks on the system.
There are two predominant software paradigms: Free and Open Source Software
(FOSS) and proprietary software. With proprietary software, control tends to lie more with
the vendor, while with Free and Open Source Software it tends to be more weighted towards
the end user. But even though the paradigms differ, they use the same copyright laws to reach
and enforce their goals.
More and more software is being released under the GNU GPL (in 2006 Java was
released under the GPL). This license (v2 and v3) is the main license endorsed by the Free
Software Foundation. Its main characteristic is the copy left principle. This means that
everyone in the chain of consecutive users, in return for the right of use that is assigned, needs
to distribute the improvements he makes to the software and his derivative works under the
same conditions to other users, if he chooses to distribute such improvements or derivative
works. In other words, software which incorporates GNU GPL software needs to be distributed
in turn as GNU GPL software (or compatible, see below). It is not possible to incorporate
copyright protected parts of GNU GPL software in a proprietary licensed work. The GPL has
been upheld in court.
2.3.2. Copyleft
Copyleft is as a special kind of copyright which imposes limits on one thing only: the
right to prevent sharing. Works registered under copyleft licenses can be used, studied, shared,
modified, and redistributed as anyone likes; but every modification or addition must be
licensed under similar copyleft terms. That way everyone benefits from the work of others,
even the original author. It’s also called a “viral” license, because it is transmitted from person
to person. No one has the right to prevent others from sharing the software. Because copyleft
granted users the right to modify the work, an important side effect was that the source code
had to be released together with the application.
2.4. Linux Distribution
Red Hat
Red Hat is a billion dollar commercial Linux company that puts a lot of effort in
developing Linux. They have hundreds of Linux specialists and are known for their excellent
support. They give their products (Red Hat Enterprise Linux and Fedora) away for free. While
Red Hat Enterprise Linux (RHEL) is well tested before release and supported for up to seven
years after release, Fedora is a distro with faster updates but without support.
Ubuntu
Ubuntu is based on Debian which is reliable and stable. It is the distribution with the
biggest software repositories. Ubuntu have a lot of variants such as Kubuntu, Xubuntu,
Edubuntu, Goubuntu, MIDI Ubuntu.
Canonical started sending out free compact discs with Ubuntu Linux in 2004 and quickly
became popular for home users (many switching from Microsoft Windows). Canonical wants
Ubuntu to be an easy to use graphical Linux desktop without need to ever see a command line.
Of course they also want to make a profit by selling support for Ubuntu.
Debian
There is no company behind Debian. Instead, there are thousands of well-organized
developers that elect a Debian Project Leader every two years. Debian is seen as one of the
most stable Linux distributions. It is also the basis of every release of Ubuntu. Debian comes
in three versions: stable, testing and unstable. Every Debian release is named after a character
in the movie Toy Story.
Other
Distributions like CentOS, Oracle Enterprise Linux and Scientific Linux are based on
Red Hat Enterprise Linux and share many of the same principles, directories and system
administration techniques. Linux Mint, Edubuntu and many other ubuntu named distributions
are based on Ubuntu and thus share a lot with Debian. There are hundreds of other Linux
distributions.
There are a lot of derivatives. Some are maintained by Canonical, and some are not.
The most common are:
• Ubuntu GNOME: Ubuntu with the GNOME desktop environment.
• Kubuntu: Ubuntu with the KDE desktop environment. A good-looking system for home
and office use.
• Edubuntu: A special derivative loaded with applications for educational purposes.
• Ubuntu Studio: Designed for multimedia editing and creation
• Ubuntu Netbook Remix: A special version, targeted at mini notebooks. The desktop is
somewhat redesigned to fit smaller screens, and special care is taken to have it preloaded
with web-enabling technologies such as the Flash plug-in.
o Super-fast to install
o Be fully functional
o Easy to use and free
o Use a sleek and modern operating system (OS) but are reluctant to buy a Mac
Before you can get started with Ubuntu, you will need to obtain a copy of the Ubuntu
installation image for DVD or USB. Some options for doing this are outlined below.
Ubuntu runs well on most computer systems. Below is a list of hardware specifications
that your computer should meet as a minimum requirement.
The easiest and most common method for getting Ubuntu is to download the Ubuntu
DVD image directly from http://www.ubuntu.com/download.
Ubuntu and its derivatives are available in two versions: 32 bit and 64 bit. This
difference refers to the way computers process information. Computers capable of running 64
bit software can process more information than computers running 32 bit software; however,
64 bit systems require more memory to do this. Nevertheless, these computers gain performance
enhancements by running 64 bit software. If your computer has a 64 bit processor, install the
64 bit version. If your computer is older, a netbook, or you do not know the type of processor
in the computer, install the 32 bit version. If your computer has a 64 bit processor, click on the
“64 bit” option before you click “Start download.”
Ubuntu can be installed either from local installation sources (e.g., CDs or DVD or
USB) or a network based installation.
(I) Installing Ubuntu OS on physical machine from the Ubuntu Media (physical boot
media)
1. Make sure the boot sequence in BIOS boot setting
2. Insert the medium into your CD or DVD drive or USB. At most newer computers
can boot from USB.
(II) Installing Ubuntu OS as a virtual machine from the Ubuntu Media (physical boot
media) (under Windows using virtualization Software)
1. Create a VM choosing “I will install Operating system later”
2. Power on the VM and edit VM Setting →Hardware → CD/DVD(IDE) and choose
“Use iso image file option” and browse “ubuntu-22.04.1-desktop-amd64.iso” in CD
drive. At the boot screen, select “Install Ubuntu” and follow the instructions.
Note: If you choose “Try Ubuntu”, Ubuntu will then start up, running directly from the Live
CD/USB.
3. Next, you need to tell Ubuntu what kind of keyboard you are using as Figure 3. In most
cases, you will select the suggested option satisfactory. If you are unsure which keyboard
option to select, you can click the Detect Keyboard Layout button to have Ubuntu
determine the correct by asking you to press a series of keys. You can also manually choose
your keyboard layout from the list of options. If you like, enter text into the box at the
bottom of the window to ensure you are happy with your selection, then click “Continue”.
Use this option if you want to erase your entire disk. This will delete any existing
operating systems that are installed on that disk, such as Microsoft Windows, and install
Ubuntu in its place. This option is also useful if you have an empty hard drive, as Ubuntu will
automatically create the necessary partitions for you. Click “Continue” to continue the
installation.
After that, a new partition was created shown in Figure 9. Swap partition and ROOT
partition can be created with the desired partition size as shown in Figure 10 and Figure 11.
Similarly, the other mounting point described in Figure 12 can be separately created with the
desired size. You can see about Ubuntu file system directories in Appendix A.
5. To choose the location, a world map in Figure 15 will be displayed telling Ubuntu where
you are. Or using your mouse, click your desired geographic location on the map. (You may
select the correct time zone for your location depending on the Ubuntu version.) Click
“Continue” when you are ready to move on.
7. Ubuntu installation now starts as follows: As the installation progresses, a slide show will
give you an introduction to some of the default applications included with Ubuntu.
8. Ubuntu will finish the installation. After approximately twenty minutes, the installation
will complete on your hard drive and you will be able to click “Restart Now” to restart your
computer and start Ubuntu.
Log in Screen
9. After the installation has finished and your computer is restarted, you will be greeted by
the login screen of Ubuntu. The login screen will present you with your username and you
will have to enter the password to get past it.
Initially, you may notice many similarities between Ubuntu and other operating systems,
such as Microsoft Windows or Mac OS X. This is because they are all based on the concept
of a graphical user interface (GUI)—i.e., you use your mouse to navigate the desktop, open
applications, move and perform most other tasks. In short, things are visually-oriented.
In Linux distributions (such as Ubuntu), a number of desktop environments are
available. Ubuntu uses Unity as the default desktop environment. After installing and logging
in to Ubuntu, you will see the Unity desktop. This is initial view is comprised of the desktop
background and two bars— a horizontal one located at the top of your desktop called the menu
bar, and the other bar is vertically oriented at the far left, called the Launcher.
4.1. The Menu Bar
The menu bar incorporates common functions used in Ubuntu. The icons on the far-
right of the menu bar are called the indicator area. Each installation of Ubuntu may contain
slightly different types and quantities of icons based on a number of factors, including type of
hardware and available on-board peripherals.
Network indicator allows you to manage your network connections and connect quickly and
easily to a wired or wireless network.
Keyboard indicator allows you to select the keyboard layout you would like and change your
keyboard preferences.
Sound indicator provides an easy way to adjust the sound volume as well as access your
music player and sound settings.
Clock displays the current time and provides an easy way to access your calendar and time
and date settings.
Session indicator provides an easy way to access system settings, software updates, printers,
and session options for locking your computer, logging out of your session, restarting the
computer, or shutting down completely.
User menu allows you to easily switch between different users and access your online and
user accounts.
The vertical bar of icons on the left side of the screen is called the Dock. The Dock provides
easy access to applications, mounted devices, and the Trash. All running applications on your
system will place an icon in the Dock while the application is running. By default, other
applications appear on the Dock, including LibreOffice and Firefox, the workspace switcher,
any mounted devices, and, of course, the always-important Trash lens at the bottom of the
Dock.
To run an application from the Activities menu, the application that you want to open
can search by typing in Search bar. You can also choose the workspace that the application to
open by clicking that workspace. You can also run the applications through the Dock.
Figure 20 – Activities
The Dock is a tool to help you access and find applications on your computer quickly. If
you are a Windows user, you’ll find the Dock to be a more advanced Start Menu. If you are a
Mac user, you will be familiar with it. If you’ve used a previous version of Ubuntu or another
GNOME Linux distribution, the Dock is a GNOME extension you can install it from the
GNOME Shell Extensions website (https://extensions.gnome.org). Ubuntu 22.04 is based
mostly on GNOME 42.
(1) Open the application to add, and drag and drop it to the Dock
(2) Run the application you want to add to the Dock, right-click on the
application’s icon on the Dock and select Add to Favorites.
The standard Ubuntu installation comes with many applications. Users can also
download thousands more applications from the Ubuntu Software Center. As you collect an
arsenal of awesome applications (and get a bonus point for alliteration!), it may become difficult
to remember the name of a particular application. Simply use the Application lens on the Dash.
This lens will automatically categorize installed applications under “Recently Used,”
“Installed,” or “Apps Available for Download.” You can also enter a name of the application
(or a part of it), in the search bar in the Dash, and the names of applications matching your
search criteria will appear.
Even if you don’t remember the name of the application at all, type a keyword that is
relevant to that application, and the Dash will find it.
For example, type music, and the Dash will show you the default music player and any
music player you’ve used).
4.3. Applications
An application is a computer program that will allow you to perform a task such as,
create a text document or view images etc. You simply choose the appropriate application to
carry out a particular task. This sub section will recommend some alternates that will work
well on Ubuntu. Most of the applications listed in this section are available via the Software
Center.
Figure 22 - Network connection: (a) disconnected, (b) wired, and (c) wireless
In fact, on most Linux systems two login accounts are created during installation - a
standard user, and the root user. The root user is a special user account gifted with the ability
to do anything, such as delete system files, or install software. Its username is always root.
Normally when Linux is used on a PC, a standard user logs into the root account whenever she
has to administer the system, and then logs out when she’s finished. However, she will spend
most of her time logged into her ordinary user account, doing day-to-day stuff like browsing
the web. Ubuntu differs slightly from most Linux. Although the root account is there in the
background, the user is discouraged from directly logging in as root. Instead, the user
“borrows” root powers to administer the system when necessary. Usually, this is done by
simply entering your login password when prompted.
Note that when working at the command line(terminal), any command needing
administrative powers must be preceded by sudo.
4.4.2. Permission
Permissions can be assigned to any file / folder; they determine what types of access
other users are allowed. For example, you can ensure that a user is only able to read your file
& not edit or delete it. Every file is owned / created by a user & that user is associated with a
group that they belong to. You can set permissions for three user categories:
Owner – This is the user that created the file
Paste will only affect the most recent item that was cut or copied. When one or more items
have been “copied,” navigate to the desired location then click Edit ‣ Paste (or right-click in
an empty area of the window and select Paste) to copy them to the new location.
4.5.5. File Compression
For most everyday users, file compression is the process of taking many files and combining
them into a single archive file that’s shrunk so it takes up less disk space. This makes the files
easier to transfer from computer to computer.
Windows: .zip, .rar
Linux: .tar, .tar.bz2, .tar.gz, .gz, .bz2
Tar has its roots in magnetic tape backup, hence the name: Tape ARchive. A tar file is simply
lots of files combined into a single large file. Tar files aren’t compressed by default, which is
to say, tar is not a compression technology. However, tar files are nearly always compressed
using add-in programs, the most popular of which are bzip2 and gzip. Tar files that are
compressed usually have double file extensions showing the type of compression used: tar.bz2
or .tar.gz. Sometimes individual files are compressed using bzip2 or gzip, without the need to
create a tar file first. If this is the case, they simply have .gz or .bz2 extensions.
4.6. System Setting
The Dash, desktop appearance, themes, wallpapers, accessibility, and other configuration
settings are available in system setting.
Appearance
You can change the background, fonts, and window theme to further modify the look and feel
of your desktop. To begin, open Appearance by either right-clicking on your background and
selecting Change Desktop Background or selecting Session Indicator ‣System Settings ‣
Appearance. Under Background, you may choose from Wallpapers, Pictures Folder, and
Colors and Gradients.
Suspend
To save energy, you can put your computer into suspend mode, which will save its current
condition to internal memory, power off all devices, and allow you to start back up more
quickly. While in a suspended state, the computer will use just a trickle of energy; this is
required because the session is saved to internal memory, and if no power goes to internal
memory, the data will be lost.
Rebooting
To reboot your computer, select Shut Down… from the “Session Indicator” and click on
Restart.
Shut down
To totally power down your computer, select Shut Down… from the “Session Indicator” and
click on Shutdown.
When we talk about the “command-line”, we are talking about issuing typed commands
directly to Linux. The command-line offers power and flexibility, at the expense of a
slightly steep learning curve and – arguably – a lack of intuitiveness.
The command-line utilized in Ubuntu is known as bash - the Bourne Again Shell. This is
an evolved version of the Bourne sh program, one of the oldest command-line programs
for Unix. Most people agree that bash offers the best all-round mix of functionality and
ease-of- use. Command-line programs are sometimes known as shells.
Other shell programs are sometimes used under Linux instead of bash. Perhaps the most
popular are Korn Shell (ksh) and C Shell (csh). bash is the default in most popular Linux
distros.
There are two ways to start a command-line session: by running a desktop terminal
program (sometimes known as a terminal emulator), or by switching to a virtual console
(also known as a virtual terminal). In both cases you are accessing exactly the same
command-line.
There are six virtual consoles, and they are accessed by hitting Ctrl+Alt and F1, F2, F3,
F4, F5 or F6. The console on F1 is used for debug and log output, so is best avoided.
Logout of the virtual console by typing exit, and switch back to your desktop (hit
Ctrl+Alt+F7). When you first open the terminal, you are in the home directory of your
user. The directory is usually something like /home/username.
You should be aware of absolute and relative paths in the file tree. When you type a path
starting with a slash (/), then the root of the file tree is assumed. The root is the base of
the Linux file system. If you don't start your path with a slash, then the current directory
is the assumed starting point. ~ symbol represents the home directory of the current user.
To know which directory you are in, you can use the “pwd” command. It gives us the
Absolute Path, which means the path that starts from the root.
uituser@uituserpc:~$ pwd
/home/uituser
uituser@uituserpc:~$ cd home
bash: cd: home: No such file or directory
uituser@uituserpc:~$ cd /home/
uituser@uituserpc:/home$ pwd
/home
Table 1 lists typical useful commands that are commonly used in Ubuntu, along with
popular command options.
Command Description
ls List files and folders.
Syntax : ls [-option]
-l : Long listing (show permissions, ownerships, etc.)
-a: Show all files, including hidden files
-h: Show KB, MB etc, rather than bytes.
Example: ls –l
touch Create a file.
Syntax: touch filename
Example: touch myfile.txt
mkdir Create a folder.
Syntax: mkdir foldername
Example: mkdir myfolder
cat Display content of a file
Example: cat file1.txt
cat file1.txt file2.txt
cat> Inserting text typed in console to a file. Press Ctrl+D after typing
text.
Example: cat > file1.txt
cat>> Appending text typed in console to a file. Press Ctrl+D after
typing text.
Example: cat >> file1.txt
cd 1. Change folder to given path
Syntax: cd [paths if necessary] foldername
Example: cd /home/Documents
2. Type cd .. to change to parent folder.
Example: cd ..
3. Type cd to change to current user’s home folder
(/home/username)
Example: cd
clear Remove all previous commands and output from consoles
cp Copy file or folder, first specify file (and path if necessary) and
specify destination. Note that use –r option to copy folders to
somewhere.
Syntax: cp sourcefile destination
Example: cp myfile.txt Desktop/
mv Move file or folder; can also be used to rename files/folders if a
new destination isn’t specified. Note that, unlike cp, it is not
necessary to specify the –r option in order to move folders.
Syntax: mv myfile.txt Desktop/
Example: mv oldfile.txt newfile.doc
Like many versions of Linux, Ubuntu relies on a system called package management
for all its software installation and removal needs.
To install an application, first you need to find it. This is made easy by the Center’s
browsing and searching mechanisms, and by the fact that Ubuntu maintains all applications in
a catalog containing information about the applications available from all configured software
sources.
The list of available software from the repositories should be updated before any
software installation. This can be done by Software Updater. Type “Updater” in Dash and
Software Updater application will appear then click to run it.
You can find eclipse by Software Center All Software Developer Tools IDEs. Before
installing eclipse IDE, check whether Java is installed or not by checking Installed software list.
(Software Center Installed). If Java hasn’t been installed, install Java first. (Software Center All
Software Developer Tools).
When you find the application that you want to install, just select it from the list and press
the Install button that appears at the right end of the application’s row.
Before installing eclipse IDE, check whether Java is installed or not. Use the
following command in terminal to check it.
If you get the following output that means Java is not installed on your Ubuntu
22.04. You need to install Sun JDK or Open JDK using Ubuntu Software Center or
using the following commands.
And if you get the following output that means you have installed java in your OS.
If you get the following output, you need to install g++ using apt install g++.
After that, execute the following snap command to install the Eclipse IDE.
Example:
sudo snap install –classic eclipse
- Eclipse2022-09 from snapcrafters installed-
User management on any Unix can be done in three complimentary ways. You can use the
graphical tools provided by your distribution. These tools have a look and feel that depends
on the distribution. If you are a novice Linux user on your home system, then use the
graphical tool that is provided by your distribution. This will make sure that you do not
run into problems.
When a Linux system administrator creates a user, an entry in /etc/passwd for the user is
created. The system also creates a directory, labeled with the user’s username, in the /home
directory. You can create a user by useradd command. You can use option -m to create
home directory itself (user folder mayn’t be automatically created based on setting file), -
d option to have a home folder in a different place and –c option to provide full name of
the user or the short description about the user. For example,
You can delete the user with userdel. The -r option of userdel will also remove
the home directory.
For example,
root@uituserpc:~# userdel -r testuser
You can modify the user with usermod. You can use –c to add comment.
For example,
root@uituserpc:~# tail –l /etc/passwd
testuser:x:1003:1003:Testing User :/home/testuser:/bin/sh
root@uituserpc:~# usermod -c 'Test User1' testuser
root@uituserpc:~# tail -1 /etc/passwd
testuser:x:1003:1003:Test User1 :/home/testuser:/bin/sh
Under Linux (and UNIX), everything in the file system, including directories and devices,
is a file. And every file on your system has an accompanying set of permissions based on
ownership. These permissions provide data security by giving specific permission
settings to every single item denoting who may read, write, or execute the file. These
permissions are set individually for the file’s owner, for members of the group the file
belongs to, and for all others on the system. You can examine the default permissions for
a file you create by using the umask command, which lists default permissions using the
number system explained next, or by using the touch command and then the ls
command’s long-format listing like this:
uituser@ uituserpc:~$ touch myfile
uituser @ uituserpc:~$ ls -l myfile
-rw-r--r-- 1 uituser uituser myfile 0
The mnemonic forms of chmod’s options are (when used with an equal sign, =, to set
the permission exactly, a plus sign, +, to add, or a minus sign, -, to remove):
. u—Adds or removes user (owner) read, write, or execute permission.
. g—Adds or removes group read, write, or execute permission.
. o—Adds or removes read, write, or execute permission for others not in a file’s group.
. a—Adds or removes read, write, or execute permission for all users. (7 in Octal
permission notation)
. r—Adds or removes read permission. (4 in Octal permission notation)
. w—Adds or removes write permission. (2 in Octal permission notation)
. x—Adds or removes execution permission. (1 in Octal permission notation)
You can use the chgrp command to change the group to which a file belongs:
uituser @ uituserpc:~$ chgrp students myfile
You can use the chown command to change the owner of a file:
uituser @ uituserpc:~$ chown student1 myfile
You can also use the chown command to change the group of a file at the same time:
uituser @ uituserpc:~$ chown student1:students myfile
Tables
Table 1 - Typical Useful Commands .................................................................................................... 31
Figures
Figure 1 – Ubuntu Versions and Releases........................................................................................... 9
Figure 2 – Welcome Screen .................................................................................................................... 11
Figure 3 – Verify Keyboard Layout ...................................................................................................... 12
Figure 4 – Choose Installation Option.................................................................................................. 12
Figure 5 – Choose Installation Type ..................................................................................... 13
Figure 6 – Erase disk and install Ubuntu ............................................................................................. 13
Figure 7 – New Partition Table ............................................................................................................. 14
Figure 8 – Confirmation to create a Partition ..................................................................................... 14
Figure 9 – A Created Partition .............................................................................................. 14
Figure 10 – Swap Partition ...................................................................................................................... 15
Figure 11 – ROOT partition .................................................................................................................... 15
Figure 12 – Ubuntu Linux System Directories .................................................................................. 15
Figure 13 – A Created Partition Table ................................................................................................. 16
Figure 14 – Creating File System .......................................................................................................... 16
Figure 15 – Choosing the Location ....................................................................................................... 16
Figure 16 – Set up a User Account ........................................................................................................ 17
Figure 17 – Starting Installation ............................................................................................................. 17
Figure 18 – Ready to restart your computer ....................................................................................... 18
Figure 19 – Login Screen ......................................................................................................................... 18
Figure 20 – Activities ............................................................................................................................... 20
Figure 21 – The Dock .............................................................................................................................. 21
Figure 22 – Network connection: (a) disconnected, (b) wired, and (c) wireless ..................... 23
Figure 23 – Currently connection is “Wired connection” ........................................................... ..23
Figure 24 – File Properties....................................................................................................................... 26
Figure 25 – Folder Properties.................................................................................................................. 26
Figure 26 – Nautilus File Manager Displaying Home folder ......................................................... 27
Figure 27 – Software Center ................................................................................................................... 34
Figure 28 – Launching Eclipse IDE ...................................................................................................... 37
/bin: This directory contains important binary application. It would contain the
executable file for command like ls, cal, grep etc which are used in everyday Linux
environment, directly or indirectly.
/boot: This directory contains the files needed for booting up the operating system. It include
the kernel (vmlinux), ramdisk image (initrd.lz) and bootloader configuration files.
/dev: This Ubuntu Linux directory does not consume any space on disk and is used to keep
track of devices connected to the computer including the ones which are a part of the CPU
such as the disks, mouse, display, graphics card etc.
/etc: This is the place where you can find the configuration files of the base OS and other
installed applications and startup scripts. It contains all the configuration files, ranging from
the ones which control the booting of computer to the ones which can change the behavior
of installed software and services.
/home: It is the user profile folder in Linux similar to the c:/ user folder in Windows. Each
user on the system would have a separate directory within this sub-directory.
/lib: The system libraries required for the proper functioning of installed software are present
in this Linux directory. 'Library' in context of computing is define as a reusable resource that
can be used by more than one software.
/lost+found: This contains the lost and found files of your / directory.
/media:This directory is not a part of the Linux directory structure. It is the system directory
file which help to recognize all the mounted removable media such as CD, external hard
drives, USB drives, cameras etc.
/mnt: This Linux directory is used to create mount point for other systems which are
attached to the computer on boot, e.g. Windows partitions.
/opt: This directory provides a location for optional applications to
be installed.
/proc: This virtual directory does not consume any space on disk but exists only in the
system memory. This directory is freely available for browsing only to the 'root' user. root:
This is commonly known as the slash-root directory, it refers to '/' as root in Ubuntu
Linux.
/sbin: This directory is also available to root user. It contains commands to change system
wide settings.
/srv: This directory acts as a temporary location for data meant to be used by servers.
/sys: This directory contains system-specific information meant as reference for other
applications.
/tmp: As the main suggest, it acts as storage for temporary files.
/usr: This is where most of your applications and files will be stored, as anything present
here is available for all users to access. It can also be called as the program files folder for
Linux.
Introduction to Linux 43 of 45 Faculty of Computer Science
/var: This is a directory for variable files such as logs and databases. Notice the
contrast with the /tmp directory.
The root level directory is represented simply by the slash /. At the root level, all Ubuntu
systems include these directories:
Directory Content