• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Babitha.linux
 

Babitha.linux

on

  • 491 views

 

Statistics

Views

Total Views
491
Views on SlideShare
491
Embed Views
0

Actions

Likes
0
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Babitha.linux Babitha.linux Presentation Transcript

    • linux
        bc command is used for command line calculator. It is similar to basic calculator. By using which we can do basic mathematical calculations. SYNTAX:
      • bc COMMAND:
      • The Syntax is
      • bc [options]
      • cal COMMAND:
      • cal command is used to display the calendar.
      • SYNTAX:
      • The Syntax is
      • cal [options] [month] [year]
      • cat COMMAND:
      • cat linux command concatenates files and print it on the standard output.
      • SYNTAX:
      • The Syntax is
      • cat [OPTIONS] [FILE]...
      • cd COMMAND:
      • cd command is used to change the directory.
      • SYNTAX:
      • The Syntax is
      • cd [directory | ~ | ./ | ../ | - ]
      • cp COMMAND:
      • cp command copy files from one location to another. If the destination is an existing file, then the file is overwritten; if the destination is an existing directory, the file is copied into the directory (the directory is not overwritten).
      • SYNTAX:
      • The Syntax is
      • cp [OPTIONS]... SOURCE DEST
      • date COMMAND:
      date command prints the date and time. SYNTAX: The Syntax is date [options] [+format] [date]
      • echo COMMAND:
      • echo command prints the given input string to standard output.
      • SYNTAX:
      • The Syntax is
      • echo [options..] [string]
      • grep COMMAND:
      • grep command selects and prints the lines from a file which matches a given string or pattern.
      • SYNTAX:
      • The Syntax is
      • id COMMAND:
      id command prints the effective(current) and real userid(UID)s and groupid(GID)s. SYNTAX: The Syntax is id [options]
      • last COMMAND:
      • last command is used to display the last logged in users list. Last logged in users informations are read from the file /var/log/wtmp.
      • SYNTAX:
      • The Syntax is
      • last [options]
      • lastlog COMMAND:
      • lastlog command is used to print the last login times for system accounts. Login information is read from the file /var/log/lastlog.
      • SYNTAX:
      • The Syntax is
      • lastlog [options]
      • ls COMMAND:
      ls command lists the files and directories under current working directory. SYNTAX: The Syntax is ls [OPTIONS]... [FILE]
      • man COMMAND:
      man command which is short for manual, provides in depth information about the requested command (or) allows users to search for commands related to a particular keyword. SYNTAX: The Syntax is man commandname [options]
      • mkdir COMMAND:
      mkdir command is used to create one or more directories. SYNTAX: The Syntax is mkdir [options] directories
      • mv COMMAND:
      mv command which is short for move. It is used to move/rename file from one directory to another. mv command is different from cp command as it completely removes the file from the source and moves to the directory specified, where cp command just copies the content from one file to another. SYNTAX: The Syntax is mv [-f] [-i] oldname newname
      • pwd COMMAND:
      pwd - Print Working Directory. pwd command prints the full filename of the current working directory. SYNTAX: The Syntax is pwd [options]
      • rm COMMAND:
      • rm linux command is used to remove/delete the file from the directory.
      • SYNTAX:
      • The Syntax is
      • rmdir COMMAND:
      rmdir command is used to delete/remove a directory and its subdirectories. SYNTAX: The Syntax is rmdir [options..] Directory
      • sort COMMAND:
      • sort command is used to sort the lines in a text file.
      • SYNTAX:
      • The Syntax is
      • sort [options] filename
      • Shutdown COMMAND:
      • Shutdown - Turn off the computer immediately or at a specified time.
      • SYNTAX:
      • The Syntax is
      • /sbin/shutdown [-t sec] [-arkhncfFHP] time [warning-message]
      • who COMMAND:
      who command can list the names of users currently logged in, their terminal, the time they have been logged in, and the name of the host from which they have logged in. SYNTAX: The Syntax is who [options] [file]
      • whois COMMAND:
      whois command lists the information about the domain owner of the given domain. SYNTAX: The Syntax is whois [option] query
      • mkdir [OPTION] DIRECTORY
      Options mk
      • more - Allows file contents or piped output to be sent to the screen one page at a time
      • less - Opposite of the more command
      • clear - Clears the terminal screen.
      • cmp file1 file2 - Compares two files, reporting all discrepancies. Similar to the diff command, though the output format differs.
      • wc filename --- tells you how many lines, words, and characters there are in a file
      • whoami --- returns your username. Sounds useless, but isn't. You may need to find out who it is who forgot to log out somewhere, and make sure *you* have logged out.
      • cd ../samples
      The .. says to move up to the parent directory, in this case /users/jones , and then down to the sub-directory, samples . You can also use cd .. to back up from subdirectories level by level.
          • The head Command
      To view the first ten lines in a file, use the head command. Syntax: head [ -count ] filename
      • The tail Command
      To view the last ten lines in a file, use the tail command. Syntax: tail [-count] filename