Professional Documents
Culture Documents
Pharmacy department
COMPUTER SCIENCE
Title of Report :-
Linux
Students Names :
علي مكي عبد الحسن
محمد شاكر عبد الواحد
ظاهر حبيب عزيز
مصطفى حميد عطيه
يوسف جودت كاظم
Supervised by:
نؤاس المنصوري: أ
Introduction
Linux (also called GNU/Linux) is a free and open-source operating system.
Because of its development within the framework of the GNU Project, Linux
enjoys a high degree of freedom to modify, run, distribute and develop its parts.
Solaris FreeBSD. Linux is considered free software because being a free system
does not necessarily mean that it is a free system. Freedom has nothing to do with
the price. As the party that wants to provide the program is responsible for
providing the source code for the program and at the same time is free to sell and
determine the price of the version that it built.
Linux has a future because the idea behind Open-Source software is rather simple:
when programmers can read, distribute and change code, the code will mature.
People can adapt it, fix it, debug it, and they can do it at a speed that dwarfs the
performance of software developers at conventional companies. This software will
be more flexible and of a better quality than software that has been developed
using the conventional channels, because more people have tested it in more
different conditions than the closed software developer ever can. The Open-Source
initiative started to make this clear to the commercial world, and very slowly,
commercial vendors are starting to see the point. While lots of academics and
technical people have already been convinced for 20 years now that this is the way
to go, commercial vendors needed applications like the Internet to make them
realize they can profit from Open Source. Now Linux has grown past the stage
where it was almost exclusively an academic system, useful only to a handful of
people with a technical background.
1
Fig1. Linux in
Bird’s eye view
2
Community (and business) driven.
3
Because Linux has been developed and tested by thousands of people, both errors
and people to fix them are usually found rather quickly. It sometimes happens that
there are only a couple of hours between discovery and fixing of a bug.
1. The Shell:
○ Built-in commands
○ Environment variables
2. The “prompt”
4
( In Linux “ ~ ” is a shorthand for your home directory. )
3. Commands:
5
Commands: Selected text processing utilities:
awk Pattern scanning and processing language
cat Display file(s)
cut Extract selected fields of each line of a file
diff Compare two files
grep Search text for a pattern
head Display the first part of files
less Display files on a page-by-page basis
1. Type
o date –-help
o man date
o info date
2. BASH built-ins
o A little different from other commands
o Just type the command ‘help’
6
o Or ‘man bash’ Yes, you can always Google it.On using ‘man’ with
‘less’
3. The man command outputs to a pager called less, which supports
many ways of scrolling through text:
o Space, f # page forward
o b # page backward
o < # go to first line of file
o > # go to last line of file
o / # search forward (n to repeat)
o ? # search backward (N to repeat)
o h # display help
o q # quit help
7
Navigating the File System:
○ ls list files
○ cd change directory
We use pathnames to refer to files and directories in the Linux file system.
Examples:
The ls Command:
8
○ ls –l Simple long listing
Symbolic links:
Sometimes it is helpful to be able to access a file from multiple locations within the
hierarchyOn a Windows system, we might create a “shortcut.” On a Linux system,
we can create a symbolic link:
The find command has a rather unfriendly syntax, but can be exceedingly
To see all the processes owned by you and other members of the class, try:
9
Editors:
Many Linux tools, such as grep and sed, use strings that describe
sequences of characters. These strings are called regular
expressions. Here are some examples:
^foo # line begins with “foo”
bar$ # line ends with “bar”
[0-9]\{3\} # 3-digit number
.*a.*e.*i.*o.*u.* # words with vowels in order*
File Editors:
emacs: Swiss-army knife, has modes for all major languages, and can be
customized. Formerly steep learning curve has been reduced with
introduction of menu and tool bars. Can be used under Xwindows or not.
vim: A better version of ‘vi’ (an early full-screen editor). Very fast,
efficient. Steep learning curve. Popular among systems programmers.
Terminal or X-Windows.
10
Reference
[1] Linux Online (2008). "Linux Logos and Mascots". Archived from the
original
[4] Linus Benedict Torvalds (October 5, 1991). "Free minix-like kernel sources
for 386-AT". Newsgroup: comp.os.minix
[5] James, Daniel (February 2004). "Using Linux For Recording & Mastering".
Sound On Sound. SOS Publications Group. Archived
[6] Blanchette, Megan (July 7, 2015). "4 ways the Raspberry Pi is being used in
education". O'Reilly Radar. Archived
11