Computer Operating SystemA Computer Operating system is a set of programs which performs a set of tasks that include:
- Peripheral control
- Job loading
- Job execution
- Time sharing
- Batch processing
- Time sharing
- File management
Examples of Operating SystemsThere exist many computer operating systems today. In this article, we look at two computer operating systems and the important commands to use in its applications.
- Disk Operating Systems (DOS)
1. Disk Operating SystemAs a command-based Operating system of the 80s to late 90s, Disk operating system (D.O.S) runs from the hard disk drive. Unlike most predecessor operating systems regarded as user friendly, easier to use because of graphical user interface (GUI), DOS is a command-based and you need to know the commands to operate.
|DirectoryLists all files in the current directory
|Displays one page at a time
|Displays or changes system time
|Displays or changes system date
|Change DirectoryTo go into a directory, you press CD (space)To get out of a directory you press CD (space)
|Used to display the directory structure graphicallyType Tree/F to see the true structure and all files inside the structure
|Used to rename a fileType Ren space old file name. ext space new filename.exe
|Used to display the Ms Dos version
|Displays change or delete the volume label in your disk.Type label space a:
|Shows the content of a text fileText file - (files saved in ASCII code, can be read by use of type command) e.g Doc, Bat, Txt and PrnBinary file- ( is a file saved in machine code using the type command. Displays control characters.
|Used to scan and correct disk errorsType scandisk (space) a:
|Used to display one screen at a timeType space Readme.txt: more
|Used to denote any one character?
|Used to denote a combination of characters *e.g., any name with an extension *.*
2. LinuxLinux is an operating system based on Linux kernel. Common Linux distributions include Ubuntu, Fedora and Debian Linux.
Commercial and popular uptakeLinux operating systems is a popular OS used in computing including embedded systems and supercomputers.Linux operating system is greatly used in Smartphone mobile devices and wearable consumer market. Through immergence of Valve, Linux operating system is used in Linux gaming
Hardware supportThe Linux kernel is a port OS kernel that available from a wide range of devices. It can run on different types of computer architecture. Also available are other special distributions and kernel for less mainstream architectures including ELKS and fork. They can run on systems in the absence of a memory management unit
How to add users in LinuxThe major tool used to add new users on Linux system is useradd command. It enables one to create another user account and be able to configure the users $HOME directory structure.By combining both the system default settings and command line parameters, the useradd creates a new user account. To view the system default values on Linux distribution, one needs to use the command useradd and chose option DTo be able to set up useradd command, the default settings /etc/default/useradd file is used. For additional security settings, additional definitions are in /etc/login.defs file. If you need to change the default security behavior, you can do so by editing the files.Here is a list of some default values that are used by useradd command when you do not explicitly specify them on the command line at the time of creating a new user on the Linux system.
- A new user will be assigned to a group ID 100.
- The directory /home/username $HOME is created for a new user.
- There will not be an expiry date set
- The default shell for the new account will be the bash shell
- The Linux system will create in the mail directory a user account to receive mail.
Creating a $HOME DirectoryUsing the useradd command, an administrator can create a $HOME default directory configuration and the directory for the new user’s $HOME is created using the configuration as a template. This makes it easier to add system default files automatically to every new user’s $HOME directory.The default startup files for the login shell environment are zsh, bash,fsh e.t.c. New user created results in the system to automatically copy default files into their $HOME directory.You view this by creating another new user account within the systems default settings, and checking the new user’s $HOME directory files. By default, the useradd program doesn't create a $HOME directory in most Linux distributions. The -m command line option instructs the system to do so and can be edited in the /etc/login.defs file.Use the useradd command-line to modify a default value or behavior at the time of creating a new user.
|Specifies a name different from login name credential for the HOME directory.
|Creates the user’s HOME directory.
|Disables the creation of a user's HOME directory
|Not to duplicate or create a group with the same name as the user
|It’s for encrypted password of a new account.
|Helps one create a group with the same name as the user.
|For Login shell of the new account.
|Helps in creating a system account.
The writer is a Business Management and Information Technology student from the prestigious Kabarak University.
Quote:"If future generations are to remember us more with gratitude than sorrow, we must achieve more than just the miracles of technology. We must also leave them a glimpse of the world as it was created, not just as it looked when we got through with it". -Lyndon B. Johnson, Former President of the United States of America