Unix is an operating system which means the suites of programs that makes the computer works. It handles all the activities from multiple users at same time. It was first developed in the 1960s at AT&T Bell Labs by Ken Thompson and Dennis Ritchie. Unix OS also have a graphical user interface (GUI) likes Microsoft Windows that helps user in easy to use environment. Some operations aren’t covered in GUI so the knowledge of UNIX is required.
Unix is an operating system which consists of a set of programs that build interaction between the computer and the user. The system software that handles software resources, computer’s internals, and provides common services for computer programs is called the operation system or kernel. Users interacts with the kernel through a window known as the shell. It a command line interpreter. It translates the user’s commands into a language that is understood by the kernel. Multiple user can use a Unix computer at same time, so called a multiuser system.
There are various Unix variants that are available in the market. Here are the Some of Unix variants such as Solaris Unix, AIX, HP Unix, CentOS and BSD. Linux is most in demand of Unix which is freely available.
One example that the shell and the kernel work together, suppose a user types rm fileName (which is command of removing the file fileName). The shell searches for the location for the file containing the program rm, and then requests the kernel, through system calls, to execute the program rm on fileName. When the process rm fileName has finished running, the shell then returns the UNIX prompt % to the user, indicating that it is waiting for further commands.
If you want to see the list of files on your UNIX or Linux system, use the “ls” command.It shows the files /directories in your current directory.
quickAssignmentHelp@VirtualBox:~$ ls Desktop Downloads Music Videos Documents Pictures examples.txt quickAssignmentHelp@VirtualBox:~$
You can use “ls -R” to shows all the files not only in directories but also subdirectoriesListing Hidden Files:
Hidden items in UNIX/Linux begin with – “.” Symbol at the start, of the file or directory. Any Directory/file starting with a '.' will not be seen unless you request for it. To view hidden files, use the command.
quickAssignmentHelp@VirtualBox:~$ ls -aCreating & Viewing Files:
The 'cat' command is used to display text files. It can also be used for copying, combining and creating new text files.
To create a new file, use the command
quickAssignmentHelp@VirtualBox:~$ cat > fileName quickAssignmentHelp@VirtualBox:~$ this is new file add content here //Press 'ctrl + d' to return to command prompt. quickAssignmentHelp@VirtualBox:~$ cat fileName
The syntax to combine 2 files is -
quickAssignmentHelp@VirtualBox:~$ cat file1 file2 > combinedfilenameDeleting Files:
The 'rm' command removes files from the system without confirmation. To remove a file use syntax -
quickAssignmentHelp@VirtualBox:~$ rm fileName
History command shows all the list of commands that you have used before to current terminal session. This can help you refer to the old commands you have entered and re-used them in your operations again.
quickAssignmentHelp@VirtualBox:~$ historyThe 'man' command:
Man stands for manual which is a reference guide for a Linux operating system commands. It is similar to HELP file found in different software. The terminal would open the manual page for that command.
To get help on any command that you do not understand, you can type
quickAssignmentHelp@VirtualBox:~$ manThe 'clear' command:
This command clears all the mess up on the terminal and gives you a clean window to work on, just like when you launch the terminal.
NEW YEAR OFFER 50% OFF !!! Order Now
NEW YEAR OFFER 50% OFF !!
Lets take Best opinion from our Expert Tutors Today! Order Now