Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Linux Essential Commands
Rating: 3.9 out of 5(144 ratings)
3,638 students

Linux Essential Commands

Learn Linux commands like general purpose, process, file and directory manipulation and text processing commands.
Last updated 2/2021
English

What you'll learn

  • Linux general purpose and basic commands
  • Linux Process commands
  • Linux File and Directory Manipulation commands
  • Linux Text processing commands

Course content

4 sections10 lectures1h 23m total length
  • Linux Primary Test
  • Commands and Syntax learning5:05
  • General Purpose Commands14:05

    1> date - It displays system date and time

    $date [option] [+Format]

    FORMAT controls the output.

    $date –R Output date and time in RFC 2822 format

    $date –d Display time described by STRING

    $date –s Set time described by STRING

    $date –u Print or set Coordinated Universal Time


    Sr. No.  Format name    Description

    1            %a                  abbreviated weekday name (e.g., Sun)

    2            %A                  full weekday name (e.g., Sunday)

    3            %b                  abbreviated month name (e.g., Jan)

    4            %B                  full month name (e.g., January)

    5            %d                  day of month (e.g, 01)

    6            %H                  hour (00..23)

    7            %j                    day of year (001..366)

    8            %m                  month (01..12)

    9            %M                 minute (00..59)

    10          %u                   day of week (1..7); 1 is Monday

    11          %w                  day of week (0..6); 0 is Sunday

    12          %y                   last two digits of year (00..99)

    13          %Y                   Year

    2> cal - Displays calendar for current month.

    $cal -1 Display single month output.

    $cal -3 Display prev / current / next month output.

    $cal –s Display Sunday as the first day of the week. (This is the default.)

    $cal –m Display Monday as the first day of the week.

    $cal –j Display Julian dates (days one- based, numbered from January 1).

    $cal –y Display a calendar for the current year.

    3> clear - Clear the terminal screen

    4> tty - Print the file name of the terminal connected to standard input.

    5> script - Make typescript of terminal session

    •If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript.

    $script file1 file1 is created

    6> man - It gives manual help for any command.


  • Command Test
  • Basic Commands5:49

    1> who - This command is used to display who are the users connected to our computer currently.

    •Syntax: $who [option]

    •-a – display all the users who have been login

    •-b – display time of last system boot

    •-d – print dead processes

    •-H – print line of column heading

    •-l – print system login processes

    2> who am i -It will display details of the currently working user.

    •Syntax: $who am i

    3> login - This command is used to switch from one user to another user at any time

    •Syntax : $login

    4> passwd - Set password of current user. It ask for entering new password and then confirm password.

    •Syntax: $passwd

    5> su - This command provides super user privileges. It will ask for super user password

    •Syntax : $su

    6> pwd - It displays present working directory

    •Syntax : $pwd

  • Command Test

Requirements

  • Basic Computer Knowledge is required

Description

There are different types of Operating Systems. One of the most important Operating system is Linux Operating system. Most of the industries use Linux Operating System as it is multiuser, multithreaded Operating System. Linux has various flavors like Kali Linux, Ubuntu, etc. Linux works in two modes Graphics User Interface & Command Line Interface. Linux commands are needed many times in industry for various operations. There are thousands of commands in Linux. In this course I will cover frequently used commands. In first section I will tell you about General Purpose commands like date, time, cal, clear, tty, script, man commands. This section also cover basic commands like who, who am i, login, password, su and pwd commands. In second section I will tell you about various Process commands like ps, wait, sleep, exit. In third section I will teach you various file and directory manipulation commands. In first lecture I will cover ls, rm, mv, cp, join, split, cat, head, tail and touch commands. In second lecture I will teach diff, comm, pr, chmod, mkdir, rmdir, cd, pwd, dir and cmp commands. In fourth section I will cover various text processing commands like tr, wc, cut, paste, spell, sort, grep and more command.   

Who this course is for:

  • Students from Diploma, Bachelor in Engineering and Bachelor in Computer Science who want to learn Linux command