Friday, 26 August 2016

dos

OPERATING SYSTEM
DOS Operating system
Q.1 Explain DOS?
·        DOS is a CUI Operating system.
·        Dos was the first widely- installed operating system for personal computers.
·        Earlier the same name has been used for IBM operating system for a line of business computer.
·        DOS was developed by micro Soft Corporation.
·        Created by Bill Gates.
·        DOS use a prompt for input the command.
·        DOS is a line operating system
Q.2 Advantage of DOS.
·        IT will run on a much smaller system (entire os can be placed on a single modern ROM chip).
·        It gives you more direct control of the process.
·        Because of smaller size will boot much faster than any other windows version.
·        It is easier to write special purpose program for so long as they don’t required fancy graphics.
·        Allow you to make use of the old slow system you hide in the closet.
·        When you bought a new one dos is very light weight and it will direct access to most hardware.
Q. Disadvantage
·        Very few program are available you need to be write program in many case.
·        Not nearly as fancy in the graphics department.
·        Not compatible with connect most internet.
·        It is a single user operating system.
·        It is a single tasking operating system.
·        It doesn’t support graphics.
·        It doesn’t support networking.
·        We can only make 2 GB of maximums partition as it support only FAT16.
·        Even windows XP user some type of DOS to access the computer during startup.
It doesn’t have the over head of multitasking operating system.
Q. What is a DOS prompt.
·        A command prompt is used in a text based or command live interface.
·        It will work on CUI.
·        User always needs to remember command on working on it.
·        It is based on single user.
Q. Advantage of DOS prompts?
·        It will work faster than GUI.
·        You can do many things which never work on GUI operating system.
·        It will help you to hack a personal computer.
Q. What are Internal and External commands?
·        Internal command?
It doesn’t required any specific external file to execute the command because these command are automatic loaded into the memory when Operating system is loaded into the memory thus these are called memory resident command. The commands available are all combined together and are stored in command.com file which is executable command file. These internal command are further
General purpose command
File related command
Directory related command
1.    CLS
           7. COPY CON
12. MD
2.    DIR
8. TYPE
13. CD
3.    VER
9. COPY
14. RD
4.    VOL
10. REN

5.    DATE
11. DEL

6.    TIME



·     External command.
    External command is known as disk residence commands because they can be stored with DOS directory or disk, which is used for getting these commands. These commands help to perform some specific task these are stored in secondary storage device.
Some important external are as follow-:
1.  MORE
    6. FC
     11. ATTRIB
2.  MEM
7.  CHKDSK
     12. LABEL
3.  SYS
8.  SORT
     13. DOSKEY
4.  XCOPY
9.  FIND
     14.FORMAT
5.  MOVE
   10,DISK COPY

Q. Explain all internal command?
1)    CLS- this command is used to clear the screen.  C:\> cls  enter.
2)    DIR (directory) used to list file and directories present in the current disk. C:\>dir enter.
C:\>dir/p
Page wise.
C:\>dir/w
Width wise
C:\>dir/s
List all file and directories of sub directories.
C:\>dir/ah
Display directory with hidden file.
C:\>dir/as
Display directory with system file.
C:\>dir/ad
Display only directory present on current drive.
C:\>dir/l
Lower case
C:\>dir/b
Without date and time.

3)    Ver(version) show the dos version. C:\>ver enter.
4)    Vol(volume) display the disk volume label and serial number if exist. C:\>vol enter.
5)    Date display the current date C:\>date.
6)    Time used to display the current time. C:\>time.
7)    Copy con- uses to create a new text file. C:\>copy con enter to save Ctrl + Z. Ctrl + C  exit without save.
8)    Type- Show content or text of any file . C:\>dir/type gulab.txt
9)    Copy- used to copy any file to another location or to copy the file to another directories  or disk. C:\> copy < source file name> <target file name>.
10.                         Ren (rename)- used to change the name of any file or directory. C:\>ren <source file name > <target file name>.
11.                        Del (delete)- used for erasing any file from the disk. C:\>delete <file name>/
12.                        MD- make directory – used to create a new directory. C:\>md <directory name>
13.                        CD- (change directory)- used to change the directory. C:\>cd..
14.                        RD- (remove directory)- used to remove the directory. C:\>rd <dir name>.
15.                        Path- used for display or sets directories for executable file. . C:\> path.
16.                        Wild card commands – used when we are working with multiple file at a time. These command uses (?) and (*).
? represent one character
*     Represent many character
?.   ???
*.*
??.???
R*.*
???.???
R*.c*
????.???
R??m*r?e
.??
*.exc
?????.?
*.ch



Q. Explain all external  command?
1.     more- using type command we can see the content of any file but if length of file is greater than 25 lines then remaining lines will scroll up. To overcome through this problem we use more command we can pause the display after each 25 lines.
Example c:\>type yusuf.txt more .. (-)
2.     mem- display free and used amount of memory in pc. Example c:\> mem (+).
3.     sys- used to copy system file to any disk. This can copy three main system file i.e command.com io.sys msdos.sys.  Example c:\>sys A:. (+).
4.     xcopy- used to copy directory in place of file from one location to another. Faster than copy command. Example c:\>xcopy <source directory> <target directory>. (-).
5.     move- used for moving one or multiple file from one location to another location or form one disk to another. Syntax  c:\>move<file name><path name>. (+).
6.     fc (file compare) used for comparing two files and display between two files. Syntax c:\> fc<first set of line><second set of line>.(-)
7.     chkdsk (check disk) used to check the status of disk and show the satatus. c:\>chkdsk (-).
8.     Scandisk – same as chkdsk but it also detect the errors and fix them. Syntax c:\> scandisk. (+)
9.      sort- used to sort the file . syntax c:\>sort<file name>. (-)  .
10.                        find- used to search a file for a text string. Syntax c:\>find”office” yusuf.txt.(-).
11.                        Diskcopy – used to copy the content of floppy to other . syntax c:\>diskcopy A: B:.(-).
12.                        Attrib- used to set the selected type of file. Like a- for achieve. H- for hidden etc. syntax c:\>attrib [+/- r] [+/-a] [+/- h] [+/-s]<file name>. (-).
13.                        Label- used to change the volume label of disk. c:\>label. (-).
14.                        Doskey- after run doskey dos will remember your inserted command. With up down arrow key. Syntax c:\> doskey.
15.                        Format- used to format the disk and create new commands and sectors in a disk. Syntax c:\>format A:. (-).
16.                        Tree- used to display the directory and subdirectory in a branch/tree format. Syntax c:\> tree.  c:\> tree AA. (-).

17.                        Deltree- used to delete the directory and all sub directory.  Syntax c:\>deltree  AA.(+)

unix

OPERATING SYSTEM
UNIX Operating system
Q.1 Explain UNIX?
·        UNIX is a CUI Operating system.
·        Unix is a multiuser, multitasking operating system..
·        Developed at Bell labs in the early1970s.
·        It was designed to be small, flexible, system used exclusively by programmer.
·        UNIX was the one of the first operating system written in High Level Language namely C. This meant that it could be installed on compiler existed.
·        Because of its low cost it is too popular in school and University.
·        By the end of 1970s, dozens of different versions of UNIX were running at various sites.
·        After its breakup in 1982, AT &T began to market UNIX in earnest.
·        Because of its portability, flexibility and power UNIX has become a leading operating system for workstation.
·        Popular versions of UNIX are {UNIX 03, UNIX 95, and UNIX 93}.
Q.2 Explain advantage of UNIX operating system?
·        Full multitasking with portable memory.
·        Multiple users can run multiple programs each at the same time without interfacing with each other or crashing the system.
·        Very effective virtual memory.
·        All users must enter his/her own user name and password for login.
·        All files are owned by particular accounts.
·        File owner can decide to whom other can read write file or not.
·        Full command based.
·        Fast and powerful.
·        This was the first operating system created on High level programming language.
Q.3 Why UNIX better than other?
·        Excellent use and control of system resources than other.
·        Very high reliability (long time run without reboot).
·        Tools for customizing the system are either native or bundled with the operating system or are easily available free.
·        For better stability than any other operating system, save (maybe) for mainframe system.
·        Varity of free software are available for UNIX operating system.
·        UNIX system can operate continuously for hundreds of days without being rebooted. There have been many cases of UNIX servers that have run for years continuously. And in Windows NT recommended reboot NT server every month.
·        Power full command line interface (the shell).
Q4. File security in UNIX?
·        File security within UNIX is based on 9 permission bits, set user and group ID bits, and the Sticky bit for a total 12 bits. These permissions apply almost equally to all file system objects such as files, directories and devices.
·        Only the owner user of file can decide who can read/write file.
·        UNIX assigns file permission to three broad categories-:
ü The user that owns the file.
ü The group that owns the file.
ü Every one other own this file
·        Each permission categories assign the three permission.
ü (r)ead
ü (w)rite.
ü E(x)ecute.
Q5. UNIX VS WINDOWS?
 UNIX                                                                                                   WINDOWS
·        UNIX IS free.                                                                           * Windows is costly.
·        UNIX security is better.                                                        * Windows is not secure as UNIX.
·        UNIX has better control on Multiuser                               * Windows is not better as UNIX.
and multitasking.
Q6. UNIX VS DOS?
·        UNIX is multiuser .-                                                   * DOS is single user.
·        Unix support multiprocessing. .-                            *Dos is single process.
·        Unix has its own shell. .-                                          *Dos has its own command prompt.
·        UNIX has user name / password. .-                       *Only some version of dos support
For login and user/ group permission. .-                 file protection.                                   
·        UNIX has shell script. .-                                            *Dos has Batch file.
·        Unix is widely run on all processor. .-                     * dos work on Intel processor 8088,
                                                                                          8086, 286, 386, 486 Pentium.
Q7. UNIX VS LINUX?
·        UNIX is CUI.                                                              * LINUX is GUI.
·        UNIX is mother of LINUX                                       * LINUX IS based on UNIX.
·        UNIX is faster than LINUX                                     * LINUX is not faster as compare to UNIX.                                                                    
Q8. User management in UNIX?

·