Fundamental 5th Unit Eng
Fundamental 5th Unit Eng
Fundamental 5th Unit Eng
Unit -5 (Fundamental)
Later, computers were able to store instructions loaded into the computer's
memory using punch cards and then, after that, magnetic tapes. Computer
memory space was limited, and when the instructions to control a computer
were moved onto a disk drive, such as a floppy disk or internal HDD, it was
considered cutting-edge technology.
DOS features
Among the features and limitations of disk operating systems are the
following.
Features
Command-line interface (CLI). It does not have a GUI and doesn't accept
mouse inputs. It is a character-based interface system where all
commands are entered in text at the command-line prompt.
Date Command
It displays the current system date and prompts you to change the
date, if necessary.
Syntax : C:\>date < mm-dd-yy >
Time
It sets the computer‘s internal clock if command is issued with
parameters otherwise displays the systemtime.
Syntax : C:\>time < hours: minutes: seconds: hundredths >
CLS COMMAND
It clears the screen. The cleared screen shows only the command
prompt and the blinking cursor.
Syntax : C:\>cls
Ver
Ver command displays the MS-DOS version no.
Syntax : C:\>ver
Vol
It displays the current volume label and the serial number of the
specified drive. If drive specifier is omitted Vol takes the current
drive by default.
Syntax : C:\vol < d:>
Break
It enables the DOS to check for Ctrl + C and Ctrl – break as the
signal to terminate the current program less frequently. If you run
Break without any parameters, the current state of break checking is
displayed.
Syntax : C:\>break < on/off >
Syntax : C:\>MKDIR (or MD) < drive: > < path >
Example
C:/>MD RAKESH
Dir Command
It displays the list of the files and sub-directories that are in the
directory specified.
Syntax : C:\> dir < drive: > < path > < filename >
Copy command
It copy one or more files to the location specified and can also be
used to combine.
Syntax : C:\>copy < source > < target >
EDLIN command
It is the line-oriented text editor.
Syntax : C:\>EDLIN < filename >
Del
It deletes the files specified.
Syntax : C:\>del < drive: > < path > < filename >
Prompt
It changes the appearance of the command prompt or displays the
current prompt.
Syntax : C:\>prompt < text >
Type
It displays the contents of a text file or view the contents of any text
file without modifying it.
Syntax : C:\>type < drive: > < path > < filename >
Path
It is used to earch for the executable files in the directories specified.
Syntax : C:\> path < drive: > < path > < ………… >
Verify
It verifies that the files are written correctly to the disk.
Syntax : C:\>verify
External commands
These are the independent executable files that can be used as
separate utilities also. Information about these files is also stored in
the transient portion. When an external command is issued, the
transient portion picks up the relevant file of that command and
executes it.
Attrib
It lets you display or alter the attributes assigned to a file or
directory.
Syntax : C:\>attrib < +A/-A > < +H/-H > < +R/-R >< +S/-S >< d:
>< path > < filename >
Chkdsk
It checks a disk‘s file allocation table entries for errors and find
whether the files are o.k. or not.
Syntax : C:\>chkdsk < d:> < path> < filename>
Format
It creates a new directory and file allocation table for the disk.
Syntax : C:\>format < drive name>
Scandisk
It checks a drive for errors and corrects any problems that it finds.
Syntax : C:\> scandisk < drive name>
Tree
The structure of the specified drive from the specified directory
down, listing all the sub-directories it encounters is displayed
graphically.
Syntax : C:\>tree < drive name>
Deltree
It deletes a directory and all the files and sub-directories contained
within it.
Syntax : C:\>deltree < drive>< path>
XCopy
It is used to copy all the files in a directory, including the files in the
sub-directories of that directory.
Syntax : C:\>xcopy < source> < destination>
Print
It prints a text file.
Syntax : C:\>print < filename>
FDisk
It is the tool, DOS provides for setting up and managing hard disk
partitions.
Syntax : C:\>fdisk
Label
Doskey
It edits command lines, recalls command lines and creates macros.
Syntax : C:\>doskey
More
It displays one screen of output at a time and in end of each screen
displays the message.
Syntax : C:\>more < drive:> < path> < filename>
Backup
It lets the user to take the backup of hard disk files to floppies.
Syntax : C:\>backup < source> < destination>
Restore
It restores the files that were backed up on a floppy.
Syntax : C:\>restore < drive1> < drive2> < path> < filename>
Mem
It displays amount of used and free memory in the system.
Syntax : C:\>mem
FC
It compares two files or sets of files and displays the difference
between them.
Syntax : C:\>fc < drive>< filename1> < drive>< filename2>
What is Booting
Type of Booting
1. Cold Booting: When the computer starts for the first time or is in a shut-down
state and switch on the power button to start the system, this type of process to
start the computer is called cold booting. During cold booting, the system will
read all the instructions from the ROM (BIOS) and the Operating System will be
automatically get loaded into the system. This booting takes more time than Hot
or Warm Booting.
2. Warm Booting: Warm or Hot Booting process is when computer systems come
to no response or hang state, and then the system is allowed to restart during on
condition. It is also referred to as rebooting. There are many reasons for this
state, and the only solution is to reboot the computer. Rebooting may be
required when we install new software or hardware. The system requires a reboot
to set software or hardware configuration changes, or sometimes systems may
behave abnormally or may not respond properly. In such a case, the system has
to be a force restart. Most commonly Ctrl+Alt+Del button is used to reboot the
system. Else, in some systems, the external reset button may be available to
reboot the system.
Step 1: Once the computer system is turned on, BIOS (Basic Input /Output System)
performs a series of activities or functionality tests on programs stored in ROM, called
on POST (Power-on Self Test) that checks to see whether peripherals in the system are
in perfect order or not.
Step 2: After the BIOS is done with pre-boot activities or functionality test, it read
bootable sequence from CMOS (Common Metal Oxide Semiconductor) and looks for
master boot record in the first physical sector of the bootable disk as per boot device
sequence specified in CMOS. For example, if the boot device sequence is:
o Floppy Disk
o Hard Disk
o CDROM
Step 3: After this, the master boot record will search first in a floppy disk drive. If not
found, then the hard disk drive will search for the master boot record. But if the master
boot record is not even present on the hard disk, then the CDROM drive will search. If
the system cannot read the master boot record from any of these sources, ROM
displays "No Boot device found" and halted the system. On finding the master boot
record from a particular bootable disk drive, the operating system loader, also called
Bootstrap loader, is loaded from the boot sector of that bootable drive· into memory. A
bootstrap loader is a special program that is present in the boot sector of a bootable
drive.
Step 4: The bootstrap loader first loads the IO.SYS file. After this, MSDOS.SYS file is
loaded, which is the core file of the DOS operating system.
Step 6: The last file is to be loaded and executed is the AUTOEXEC.BAT file that
contains a sequence of DOS commands. After this, the prompt is displayed. We can see
the drive letter of bootable drive displayed on the computer system, which indicates
that the operating system has been successfully on the system from that drive.
Structure Of Linux
Operating System
An operating system is a collection of
software, each designed for a specific
function.
Linux OS has
following
components:
1) Kernel
Linux kernel is the core part of
the operating system. It
Commands are specified for each function like to delete it's x or dd.
The vi editor is case-sensitive. For example, p allows you to paste after the current line
while P allows you to paste before the current line.
vi syntax:
1. vi <fileName>
o Command Mode: In command mode, actions are taken on the file. The vi editor
starts in command mode. Here, the typed words will act as commands in vi
editor. To pass a command, you need to be in command mode.
o Insert Mode: In insert mode, entered text will be inserted into the file.
The Esc key will take you to the command mode from insert mode.
By default, the vi editor starts in command mode. To enter text, you have to be in insert
mode, just type 'i' and you'll be in insert mode. Although, after typing i nothing will
appear on the screen but you'll be in insert mode. Now you can type anything.
To exit from insert mode press Esc key, you'll be directed to command mode.
Command Action
Linux Command
The Linux command is a utility of the Linux operating system. All basic and advanced tasks can
be done by executing commands. The commands are executed on the Linux terminal. The
terminal is a command-line interface to interact with the system, which is similar to the
command prompt in the Windows OS. Commands in Linux are case-sensitive.
1. pwd Command -The pwd command is used to display the location of the
current working directory.
Syntax:
$ pwd
2. mkdir Command -The mkdir command is used to create a new directory under
any directory.
Syntax:
$ mkdir <directory name>
Syntax:
Syntax:
$ ls
Syntax :
$ cd <directory name>
Syntax:
7. cat Command -The cat command is a multi-purpose utility in the Linux system. It can
be used to create a file, display content of the file, copy the content of one file to
another file, and more.
Syntax:
Syntax:
$ rm <file name>
Syntax:
10. mv Command- The mv command is used to move a file or a directory form one
location to another location.
Syntax:
11. rename Command-The rename command is used to rename files. It is useful for
renaming a large group of files.
Syntax:
12. head Command-The head command is used to display the content of a file. It
displays the first 10 lines of a file.
Syntax:
$ head <file name>
13. tail Command-The tail command is similar to the head command. The difference
between both commands is that it displays the last ten lines of the file content. It is
useful for reading the error message.
Syntax:
1. In more command, the following keys are used to scroll the page:
2. ENTER key: To scroll down page by line.
3. Space bar: To move to the next page.
4. b key: To move to the previous page.
Syntax:
$ wc <file name>
Syntax:
18 date Command- The date command is used to display date, time, time zone, and
more.
Syntax:
$ date
19 cal Command-The cal command is used to display the current month's calendar with
the current date highlighted.
Syntax:
1. $ cal
Syntax:
1. $ time
21 exit Command-Linux exit command is used to exit from the current shell. It takes a
parameter as a number and exits the shell with a return of status number.
Syntax:
$ exit
Syntax:
$ clear