LINUX COMMANDS <ul><li>bc COMMAND:
bc command is used for command line calculator. It is similar to basic calculator. By using which we can do basic mathemat...
SYNTAX:
The Syntax is
bc [options]
cal COMMAND:
cal command is used to display the calendar.
SYNTAX:
The Syntax is
cal [options] [month] [year] </li></ul>
Upcoming SlideShare
Loading in...5
×

Prabu linux

743

Published on

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

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

No notes for slide

Prabu linux

  1. 1. LINUX COMMANDS <ul><li>bc COMMAND:
  2. 2. bc command is used for command line calculator. It is similar to basic calculator. By using which we can do basic mathematical calculations.
  3. 3. SYNTAX:
  4. 4. The Syntax is
  5. 5. bc [options]
  6. 6. cal COMMAND:
  7. 7. cal command is used to display the calendar.
  8. 8. SYNTAX:
  9. 9. The Syntax is
  10. 10. cal [options] [month] [year] </li></ul>
  11. 11. <ul><li>cat COMMAND:
  12. 12. cat linux command concatenates files and print it on the standard output.
  13. 13. SYNTAX:
  14. 14. The Syntax is
  15. 15. cat [OPTIONS] [FILE]...
  16. 16. cd COMMAND:
  17. 17. cd command is used to change the directory.
  18. 18. SYNTAX:
  19. 19. The Syntax is
  20. 20. cd [directory | ~ | ./ | ../ | - ]
  21. 21. cp COMMAND:
  22. 22. 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).
  23. 23. SYNTAX:
  24. 24. The Syntax is
  25. 25. cp [OPTIONS]... SOURCE DEST </li></ul>
  26. 26. <ul><li>date COMMAND: </li></ul>date command prints the date and time. SYNTAX: The Syntax is date [options] [+format] [date] <ul><li>echo COMMAND:
  27. 27. echo command prints the given input string to standard output.
  28. 28. SYNTAX:
  29. 29. The Syntax is
  30. 30. echo [options..] [string]
  31. 31. grep COMMAND:
  32. 32. grep command selects and prints the lines from a file which matches a given string or pattern.
  33. 33. SYNTAX:
  34. 34. The Syntax is
  35. 35. grep [options] pattern [file] </li></ul>
  36. 36. <ul><li>id COMMAND: </li></ul>id command prints the effective(current) and real userid(UID)s and groupid(GID)s. SYNTAX: The Syntax is id [options] <ul><li>last COMMAND:
  37. 37. 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.
  38. 38. SYNTAX:
  39. 39. The Syntax is
  40. 40. last [options]
  41. 41. lastlog COMMAND:
  42. 42. lastlog command is used to print the last login times for system accounts. Login information is read from the file /var/log/lastlog.
  43. 43. SYNTAX:
  44. 44. The Syntax is
  45. 45. lastlog [options] </li></ul>
  46. 46. <ul><li>ls COMMAND: </li></ul>ls command lists the files and directories under current working directory. SYNTAX: The Syntax is ls [OPTIONS]... [FILE] <ul><li>man COMMAND: </li></ul>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] <ul><li>mkdir COMMAND: </li></ul>mkdir command is used to create one or more directories. SYNTAX: The Syntax is mkdir [options] directories
  47. 47. <ul><li>mv COMMAND: </li></ul>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 <ul><li>pwd COMMAND: </li></ul>pwd - Print Working Directory. pwd command prints the full filename of the current working directory. SYNTAX: The Syntax is pwd [options] <ul><li>rm COMMAND:
  48. 48. rm linux command is used to remove/delete the file from the directory.
  49. 49. SYNTAX:
  50. 50. The Syntax is
  51. 51. rm [options..] [file | directory] </li></ul>
  52. 52. <ul><li>rmdir COMMAND: </li></ul>rmdir command is used to delete/remove a directory and its subdirectories. SYNTAX: The Syntax is rmdir [options..] Directory <ul><li>sort COMMAND:
  53. 53. sort command is used to sort the lines in a text file.
  54. 54. SYNTAX:
  55. 55. The Syntax is
  56. 56. sort [options] filename
  57. 57. Shutdown COMMAND:
  58. 58. Shutdown - Turn off the computer immediately or at a specified time.
  59. 59. SYNTAX:
  60. 60. The Syntax is
  61. 61. /sbin/shutdown [-t sec] [-arkhncfFHP] time [warning-message] </li></ul>
  62. 62. <ul><li>who COMMAND: </li></ul>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] <ul><li>whois COMMAND: </li></ul>whois command lists the information about the domain owner of the given domain. SYNTAX: The Syntax is whois [option] query <ul><li>mkdir [OPTION] DIRECTORY </li></ul>Options mk
  63. 63. <ul><li>more - Allows file contents or piped output to be sent to the screen one page at a time
  64. 64. less - Opposite of the more command
  65. 65. clear - Clears the terminal screen.
  66. 66. cmp file1 file2 - Compares two files, reporting all discrepancies. Similar to the diff command, though the output format differs.
  67. 67. wc filename --- tells you how many lines, words, and characters there are in a file
  68. 68. 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. </li></ul>
  69. 69. <ul><li>cd ../samples </li></ul>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. <ul><ul><ul><li>The head Command </li></ul></ul></ul>To view the first ten lines in a file, use the head command. Syntax: head [ -count ] filename <ul><li>The tail Command </li></ul>To view the last ten lines in a file, use the tail command. Syntax: tail [-count] filename
  1. A particular slide catching your eye?

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

×