Gulshan Verma
Singsys Pte. Ltd.
Tux
Tux The Penguin, Mascot of Linux
Basics Commands of
Linux
Basic Commands
$ ls List with filename only
$ ls l List with all details
$ ls a List with hidden files
$ ls -la List with hidden files and
details
mkdir
rm
chgrp
chown
chmod
tar cvfp filename.tar /folder
unzip filename
tar xvfp filename.tar
touch
File Permission
0+r+w+x = 0+4+2+1 = 7
Only Read and write permission on a file in octal is
0+r+w+x = 0+4+2+0 = 6
Only read and execute permission on a file in octal is
0+r+w+x = 0+4+0+1 = 5
User = r+w+x = 0+4+2+1 = 7
Group = r+w+x = 0+4+2+0 = 6
Others
= r+w+x = 0+0+0+1 = 1
Crontab Syntax
Crontab examples
* * * * * <command> #Runs every minute 30
* * * * <command> #Runs at 30 minutes past the hour
45 6 * * * <command> #Runs at 6:45 am every day
45 18 * * * <command> #Runs at 6:45 pm every day
00 1 * * 0 <command> #Runs at 1:00 am every Sunday
00 1 * * 7 <command> #Runs at 1:00 am every Sunday
00 1 * * Sun <command> #Runs at 1:00 am every
Sunday
30 8 1 * * <command> #Runs at 8:30 am on the first day
of every month
00 0-23/2 02 07 * <command> #Runs every other hour
on the 2nd of July
Thank You!
info@singsys.com
Phone-65613900