Unit-1: Introduction to Unix (Unix Commands (cd (change directory, $cd…
Unit-1: Introduction to Unix
a command/terminal recorder
$script myfile.txt //Logs all results to file myfile.txt
displays a list of users who are currently logged into the computer.
$who (or) $w
used to set/display the system date and time
$date --set="20170413 21:14"
print working directory
Brings the system down immediately
Powers off the system using predefined scripts to synchronize and clean up the system prior to shutting down
Reboots the system by shutting it down completely and then restarting it
Shuts down the system by powering off
Reboots the system
Shuts down the system
to rip a collection of files and directories into highly compressed archive file
$tar cvzf MyImages-14-09-12.tar.gz /home/MyImages
Architecture of Unix
The kernel is the heart of the operating system. It interacts with the hardware and most of the tasks like memory management, task scheduling and file management.
The shell is the utility that processes your requests. When you type in a command at your terminal, the shell interprets the command and calls the program that you want.
Commands & Utilities
There are various commands and utilities which you can make use of in your day to day activities. cp, mv, cat and grep, etc. are few examples of commands and utilities.
Files & Directories
All the data of Unix is organized into files. All files are then organized into directories. These directories are further organized into a tree-like structure called the filesystem.
Features of Unix
Prepared by - Srinivas Adapa