Please enable JavaScript.
Coggle requires JavaScript to display documents.
Unit-1: Introduction to Unix (Unix Commands (cd (change directory, $cd…
Unit-1: Introduction to Unix
Unix Commands
PATH
man
echo
printf
script
a command/terminal recorder
$script myfile.txt //Logs all results to file myfile.txt
passwd
who
displays a list of users who are currently logged into the computer.
$who (or) $w
uname
date
used to set/display the system date and time
$date
$date --set="20170413 21:14"
stty
pwd
print working directory
$pwd
System Shutdown
halt
Brings the system down immediately
init 0
Powers off the system using predefined scripts to synchronize and clean up the system prior to shutting down
init 6
Reboots the system by shutting it down completely and then restarting it
poweroff
Shuts down the system by powering off
reboot
Reboots the system
shutdown
Shuts down the system
Unix Commands
rmdir
mkdir
cd
change directory
$cd /usr/local
ls
cp
mv
rm
cat
more
wc
lp
od
tar
to rip a collection of files and directories into highly compressed archive file
$tar cvzf MyImages-14-09-12.tar.gz /home/MyImages
gzip
Architecture of Unix
Kernel
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.
Shell
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