os file1
os file1
GENERATIONS OF WINDOWS:
WINDOWS 1: 1985
WINDOWS 3.1: 1992
WINDOWS 95: 1995
WINDOWS XP: 2001
WINDOWS VISTA: 2006
WINDOWS 7: 2009
WINDOWS 8: 2012
WINDOWS 10: 2015
WINDOWS 11: 2021
It was 1983 when work on “Interface Manager” was started by Microsoft but it was in November
1995, when the first Windows 1.0 was introduced. Later on, with developments in technology, the
requirement of the people and increased demand for Graphical User Interface, Microsoft kept
releasing revised versions of Operating Systems .
In 1995, perhaps the most widely used version yet, Windows 95 was born. At this point, it ran ona
16-bit DOS-based kernel and 32-bit userspace to enhance the user experience.
Windows hasn’t changed a whole lot in terms of core architecture since this version despite vast
amounts of features that have been added to address modern computing.
Versions of Windows
Various versions released over time to meet different needs:
3. BASIC COMMANDS
cd – Change or show current directory.
dir – List files and folders in the current directory.
echo. > file.txt – Create a new file.
del file.txt – Delete a file.
copy file1.txt file2.txt – Copy files.
move file.txt newname.txt – Rename or move a file.
type file.txt – Display file contents.
cls – Clear the command prompt screen.
Linux is an open-source, Unix-like operating system based on the Linux kernel, first released by
Linus Torvalds in 1991. It is widely used across servers, desktops, mobile devices, embedded
systems, and supercomputers due to its stability, security, and flexibility.
Linux is named after Linus Torvalds (pronounced "LYNNus", hence "LYNN- ucks").
He wrote the first Linux kernel in 1991.
At the time, he was a Computer Science undergraduate student at the University of Helsinki,
Finland, and wanted a hobby project which he intended to release as a free OS
Linus retains control of the Linux kernel to this day, through a small company, though he also has
(had?) a day job in Silicon Valley.
He had some technical differences with Minix and with its creator (Professor Andrew
Tannenbaum, Computer Science, at a university in the Nederland), and so Linus wanted to do it his
way.
History:
Linux is a modem, free operating system based on UNIX standards.
First developed as a small but self-contained kernel in 1991 by Linus Torvalds, with the major
design goal of UNIX compatibility.
Its history has been one of collaboration by many users from all around the world, corresponding
almost exclusively over the Internet.
It has been designed to run efficiently and reliably on common PC hardware, but also runs on a
variety of other platforms.
The core Linux operating system kernel is entirely original, but it can run much existing free
UNIX software, resulting in an entire UNIX-compatible operating
3. BASIC COMMANDS
pwd – Print current directory path.
ls – List contents of a directory.
cd – Change directory.
touch file.txt – Create a new empty file.
rm file.txt – Remove a file.
cp file1.txt file2.txt – Copy files.
mv file.txt newname.txt – Move or rename files.
cat file.txt – Show contents of a file.
clear – Clear the terminal screen.
create a hidden
• folder just add (.) in starting.
3. dir :-
• dir command in Linux is used to list the contents of a directory.
4. cd :-
• This command is used to change directory.
5. rm :-
• The rm command is used to delete (remove) files or directories.
This command can also be used to create a file with text in it.
8. touch :-
• This command is used to create new file
• If the file already exists this command will update the timestamp of
the file
• touch command can also be used to create a hidden file just start
the name with (.).
10. cat :-
• This command is used to insert text in any file and then print the
content of file.
• cat command can also be used to show contents of multiple files.
• If we use (-n) option with command then we can get number of lines
in a file
11. ls :-
• This command is used to list directory contents.
• -a option is used to view all hidden files that one starting with .
12. sort :-
• It is used to sort lines of a file numerically, alphabetically
or in reverse order.
14. cp :-
This command is used to copy file.
• This command can also be used to create a new file and copy the data
to that file
15. head :-
• This command can be used to print the starting 10 lines(default) of a
file.
16. tail :-
• This command can be used to print last 10 lines (default) of a file.
20. top :-
• The top command is used to monitor system performance in real-time
• It shows CPU usage, memory usage running processes.
21. chown :-
• Chown command in Linux is used to change the ownership of files
and directories.
22. history :- the history command in linux is used to view a list of previously
executed comman
23. man :-
• This command is used to get manual of any command q
24. whereis :-
• it is used to locate the binary, source and manual page
files for a command.
25. Ps :-
27. kill :-
• The kill command is used to terminate a running process using its
Process ID.
28. clear :-
• This command is used to clear the terminal screen
29. which
It Shows the exact path to the executable used in your shell.
30. whereis
It is used to locate the binary , source and manual page files for a
command.
31. sudo :-
• sudo command is used to install a package.
• create new user using
32. chmod:-
It is used to change permissions of a file.
There are three types of access : owner , group , others
There are three types of permissions also: read (r=4) , write (w=2) , execute
(x=1).
User (u)
33. tar:-
• It is uses to create an archive file with .tar , .tar.gz , .tgz extensions.
34. zip:-
It is used to compress files and directories into .zip format.
zip -r : recursively zips a directory.
unzip files:-
35. sed:- It is used to edit or replace , insert or delete text in files.
38. Id:-
It is ude to show user id group_id.
BASIC VI COMMANDS
To Start vi
Command Description
vi filename Create or edit file starting at
line 1
vi -r filename Recover file after system
crash
To Exit vi
Command Description
:x Save and quit
:wq Save and quit
:q Quit without saving (if no
changes)
:q! Force quit without saving
Screen Manipulation
Command Description
^f Move forward one screen
^b Move backward one screen
^d Move down (forward) half
screen
^u Move up (backward) half
screen
^l Redraw the screen
^r Redraw screen, removing
deleted lines
Adding, Changing, Deleting Text
Command Description
u Undo last change (toggle)
AIM : Write a Shell Script to Perform Arithematic Operations Using Switch Case
Statement
Output:
AIM : Write a Shell Script To Implement Fibonacci Series
Output:
AIM : Write a Shell Script To Print Factorial of a Number
Output: