0
Basics of Linux
Gulshan Verma
Singsys Pte. Ltd.
Tux
Tux The Penguin, Mascot of Linux
 It is Unix based Operating System developed by community.
 Originated at 1991.
 It is free open source software (FOSS)...
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...
Basic Commands (cont)
$ cd /usr/bin Open folder path
$ pwd returns full path of the current
directory
$ which ls
$ whe...
Basic Commands (cont)
$ mkdir
$ rm
$ chgrp
$ chown
$ chmod
$ tar –cvfp filename.tar /folder
$ unzip filename
$ tar...
Basic Commands (cont)



















Linux TAR Command
Create linux tar gz (Gzip) archive
tar -czvf m...
File Permission
File Permission (Cont)
 Octal numbers and permissions
 You can use octal number to represent mode/permission:
r : 4
w ...
File Permission (Cont)
Creating a crontab file
You can create a crontab file by entering the following
terminal command:
$ crontab –e
To List ...
Crontab Syntax
Crontab examples
* * * * * <command> #Runs every minute 30
* * * * <command> #Runs at 30 minutes past the hour
45 6 * *...
Thank You!
info@singsys.com
Phone-65613900
Upcoming SlideShare
Loading in...5
×

Basics of-linux

363

Published on

Basics Tutorial of Linux operating system Commands, File Permission, Crontab Syntax

Published in: Technology, News & Politics
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
363
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
27
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • So, the first one is Social.Social refers to the interaction of people with other people and to their surroundings, irrespective of whether they are aware of it or not, and irrespective of whether the interaction is voluntary or involuntary.Now how these interactions happens.Earlier yellow pages, magazines and newspapers were responsible for these interactions but with the rise of technology and Social Media a whole new era of social interactions came to existence.
  • Multics – 1964Unics – 1969Minix – 1990Linux – 1991Free - Means Liberty and not related to Price or costOpen – Source code is available and any body can contribute to the development. Organization independent4 Freedoms with FOSSFreedom to run the software anywhereFreedom to study how the programs work. i.e source code will be accessibleFreedom to redistribute copiesFreedom to improve the software
  • Media that allow users to communicate with one another is Social. Businesses, brands, groups, and individuals can share information freely with their followers using the internet or with their mobile phone.
  • Transcript of "Basics of-linux"

    1. 1. Basics of Linux Gulshan Verma Singsys Pte. Ltd.
    2. 2. Tux Tux The Penguin, Mascot of Linux
    3. 3.  It is Unix based Operating System developed by community.  Originated at 1991.  It is free open source software (FOSS)  The defining component of Linux is the Linux kernel  Monolithic  Micro  The user interface, also known as the shell, is either a commandline interface (CLI)  Sh – simple shell  BASH – Bourne Again Shell  KSH – Korne Shell  CSH – C Shell  SSH – Secure Shell  Text Editor: VI, Emacs, gEdit, kWrite, Pico, Nano etc.
    4. 4. Basics Commands of Linux
    5. 5. 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
    6. 6. Basic Commands (cont) $ cd /usr/bin Open folder path $ pwd returns full path of the current directory $ which ls $ whereis ls $ locate filename $ find / | something.sh $ echo $ cat filename $ cp $ mv
    7. 7. Basic Commands (cont) $ mkdir $ rm $ chgrp $ chown $ chmod $ tar –cvfp filename.tar /folder $ unzip filename $ tar –xvfp filename.tar $ touch
    8. 8. Basic Commands (cont)                  Linux TAR Command Create linux tar gz (Gzip) archive tar -czvf myarchive.tgz mydirectory/ -c, –create create a new archive Note that .tgz is the same thing as .tar.gz Create linux simple tar archive (withouth compresion) tar -cvf myarchive.tar mydirectory/ Extracting linux tar archive: Extract linux tar gz (Gzip) archive tar -xzvf mystuff.tgz Extract linux simple tar archive tar -xvf mystuff.tar We use -x to extract the files form the tar archive -x, –extract, –get extract files from an archive Extract linux tar archive to speciefied directory tar -xvzf filename.tar.gz -C /desired/path And now let us shortly explain this command Usage: tar [OPTION]… [FILE]… Let us check the option used in this example -c, –create create a new archive -z, –gzip, –ungzip filter the archive through gzip -v, –verbose verbosely list files processed -f, –file=ARCHIVE use archive file or device ARCHIVE -C directory file
    9. 9. File Permission
    10. 10. File Permission (Cont)  Octal numbers and permissions  You can use octal number to represent mode/permission: r : 4 w : 2 x : 1  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  Group  Others = r+w+x = 0+4+2+1 = 7 = r+w+x = 0+4+2+0 = 6 = r+w+x = 0+0+0+1 = 1
    11. 11. File Permission (Cont)
    12. 12. Creating a crontab file You can create a crontab file by entering the following terminal command: $ crontab –e To List all the cron job: $ crontab -l
    13. 13. Crontab Syntax
    14. 14. 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
    15. 15. Thank You! info@singsys.com Phone-65613900
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×