Linux
Linux
Linux is the best-known and most-used open source operating system. As an operating system, Linux is
software that sits underneath all of the other software on a computer, receiving requests from those programs
and relaying these requests to the computer’s hardware.
Reffer the below mentioned website
https://opensource.com/resources/linux
Nahida Nazir
2
GENOME
• GNOME is a free and open source software that runs on Linux and most BSD derivatives. It
is the default desktop environments on many Linux distributions such as Fedora, Debian,
Red Hat Enterprise Linux, CentOS, Oracle Linux, Solaris and Kali Linux.
Nahida Nazir
3
• It was developed as part of the GNU Project by The GNOME Project. This project has a
large number of contributors. The main contributor among them is Red Hat. The main
objective of developing the GNU project was to develop frameworks that support the
software development. These frameworks help to program the end user applications.
• The official user interface of GNOME desktop environment is the GNOME shell. It has
features such as activities button, application menu, a clock and an integrated system status
menu.
Nahida Nazir
4
KDE
• KDE is a desktop environment that allows carrying out daily tasks without relying on the
Command Line Interface. Two common products of KDE are Plasma Desktop and KDE
frameworks. They are designed to run on Microsoft Windows, Android, Unix Desktops, etc.
It provides tools and documents for the developers to write applications.
Nahida Nazir
5
• KDE is a central development hub for many applications such as Krita and Calligra Suite.
KDE Plasma provides a unified environment for running and managing applications on
desktops, netbooks, smartphones, and tablets. KDE applications such as KTorrent and KDE
Partition Manager are built on top of KDE frameworks. KDE applications are portable
between operating systems
Nahida Nazir
GNOME VS KDE
COMMAND LINE STRUCTURE
A command is a program that tells the Unix system to do something
syntax command [options] [arguments]
Commands are case sensitive.
DATE and date are not same .
CHECKING DESKTOP
CHECKING VERSION AND RELEASE
DATE
CAL COMMAND
This command presents the quick view of a calander
Type cal for current calendar
for previous calendar like 2008 type cal 2008
DATE COMMAND
Displays the system date and time
For current date type date
for 2 years ago here is the format
ECHO COMMAND
It is used to display the character / string or other values that are
passed to it
PRINTING CHARACTERS BY
DIFFERENT WAYS
MKDIR
To create directories (also referred to as folders in some operating
systems)
mkdir mydir creates a directory of my dir
mkdir mydir1 mydir2 mydir3 creates multiple directories
RMDIR – REMOVE EMPTY DIRECTORY
pwd command
Displays the path name of the working directory. The pwd command writes to standard output
the full path name of your current directory (from the root directory). All directories are
separated by a / (slash). The root directory is represented by the first /, and the last directory
named is your current directory
Nahida Nazir
50
• -L
• Displays the value of the PWD environment variable if the PWD environment variable
contains an absolute path name of the current directory that does not contain the file names .
(dot) or .. (dot-dot). Otherwise, the -L flag behaves the same as the -P flag.
Nahida Nazir
-P
51
• -P
• Displays the absolute path name of the current directory. The absolute path name displayed
with the -P flag does not contain file names that, in the context of the path name, refer to
files of type symbolic link.
Nahida Nazir
52
ABSOLUTE PATH
• An absolute path is defined as specifying the location of a file or directory from the root
directory(/). In other words,we can say that an absolute path is a complete path from start of
actual file system from / directory.
Nahida Nazir
53
RELATIVE PATH
• Relative path is defined as the path related to the present working directly(pwd). It starts at
your current directory and never starts with a / .
• .(a single dot) - this represents the current directory.
• ..(two dots) - this represents the parent directory.
• Now, what this actually means is that if we are currently in directory /home/kt/abc and now
you can use .. as an argument to cd to move to the parent directory /home/kt as :
Nahida Nazir
54
• $pwd
• /home/kt/abc
• $cd .. ***moves one level up***
• $pwd
• /home/kt
Nahida Nazir
55
• NOTE:Now / when used with .. has a different meaning ;instead of moving down a level,it
moves one level up:
•
• $pwd
• /home/kt/abc ***moves two level up***
• $cd ../..
• $pwd
• /home
Nahida Nazir
56
• cat command
Cat(concatenate) command is very frequently used in Linux. It reads data from the file and
gives their content as output. It helps us to create, view, concatenate files. So let us see some
frequently used cat commands
Syntax cat filename {to display the content of a file}
Nahida Nazir
57
CONCATENATION
Nahida Nazir
58
Nahida Nazir
59
Nahida Nazir
60
Nahida Nazir
61
• cat –n g2.txt
Nahida Nazir