Unix Week1 PDF
Unix Week1 PDF
Day 1
Text Books for Unix Commands
UNIX : Concepts and Applications | 4th Edition
by Sumitabha Das | 1 July 2017 | McGraw Hill Education
https://www.geeksforgeeks.org/linux-commands/
https://www.geeksforgeeks.org/introduction-linux-shell-shell-scripting/
https://www.geeksforgeeks.org/sed-command-in-linux-unix-with-examples/
https://www.geeksforgeeks.org/awk-command-unixlinux-examples/
Tentative Evaluation Details
Syntax: sudo -h | -K | -k | -V
sudo -v [-ABknS] [-g group] [-h host] [-p prompt] [-u user]
Output:
Update and Upgrade
banner: banner prints out the first 10 characters of text in large letters
Syntax: banner text
Output:
sudo apt-get install sudo apt install
sysvbanner
clear
clear: It clears your screen if this is possible,
including its scrollback buffer (if the extended
“E3” capability is defined). clear looks in the
environment for the terminal type given by the
environment variable TERM, and then in the
terminfo database to determine how to clear
the screen.
Syntax: cal [-31jy] [-A number] [-B number] [-d yyyy-mm] [[month] year]
Output:
cal jan 2021, cal 7 2019
Output:
man
man : man is the system's manual pager. Each page argument given to man is normally the
name of a program, utility or function. The manual page associated with each of these
arguments is then found and displayed.
Syntax: man [man options] [[section] page ...] ...
man cal
who
who : Print information about users who are currently logged in.
Output:
whoami
whoami : Print the user name associated with the current effective user ID.
Syntax: whoami [OPTION]
Output:
pwd, ls
pwd: print name of current/working directory
Syntax: pwd [OPTION]...
ls: List information about the FILEs (the current directory by default).
Syntax: ls [OPTION] [FILE]
Output:
cd, cd .., mkdir
cd: change directory
Syntax: cd [-L|[-P
[-e]] [-@]] [dir]
Output:
man ls
ls -l
ls > list
man ls
ls -Z
ls -a
cat
cat: Concatenate FILE(s) to standard output.
Syntax: cat [OPTION] [FILE]
Output:
echo $x, echo $PATH
mkdir chapter1, mkdir chapter2,
cd chapter1, ls chap*, ls -l chap*
rm, rmdir
rm: This manual page documents the GNU version of rm.
Output:
history > history1.txt
Output: store all the previous command in .txt
man bc
help, exit, sudo poweroff
help, exit,
sudo poweroff