Basic Linux Commands That You Should Know !!

 Linux Basic Commands (Operating System)



Little Bit About Linux..

Linux is an open-source operating system like other operating systems such as Microsoft windows, Apple Mac OS, iOS, Google android, etc. An operating system is a software that enables the communication between computer hardware and software. It conveys input to get processed by the processor and brings output to the hardware to display it. This is the basic function of an operating system. Although it performs many other important tasks, let's not talk about that.

Linux is around us since the mid-90s. It can be used from wristwatches to supercomputers. It is everywhere in our phones, laptops, PCs, cars and even in refrigerators. It is very much famous among developers and normal computer users. It gives you a lot of option of programs having some different features so you can choose according to your need. A global development community look at different ways to enhance its security, hence it is highly secured and robust so you don't need an anti virus to scan it regularly. Companies like Google, Amazon and Facebook use linux in order to protect their servers as it is highly reliable and stable .Above all you don't have to pay for software and server licensing to install Linux, its absolutely free and you can install it on as many computers as you want .Its completely trouble free operating system and don't have an issue with viruses, malware and slowing down your computer.

Lets See  Basic Commands of Linux..

  1. pwd  :The pwd command stands for print working directory. It is one of the most basic and frequently used commands in Linux. When invoked the command prints the complete path of the current working directory.
  2. ls :ls is one of the basic commands that any Linux user should know. The ls command lists files and directories within the file system, and shows detailed information about them
  3. ps The ps command in Linux is used for getting information about running processes. Here are some useful examples of the complicated and extensive ps command. The ps command in Linux is used to display about running processes on the system., when running the ps command, the most important information the user is looking for is the process PID.
  4. mkdir : The mkdir command create new directory. The mkdir command can set the permissions for a specified directory or multiple directories. To use the mkdir command, the user must have permission to create directories in the parent directory.
  5. date date command is used to display the system date and time. date command is also used to set date and time of the system. By default the date command displays the date in the time zone on which unix/linux operating system is configured.
  6. cal cal command is a calendar command in Linux which is used to see the calendar of a specific month or a whole year. We can also display past or future year's month with cal command.
  7. clear  Clear Command line history in Linux.
  8. tty :The tty command writes to the standard output the name of the terminal that is open as standard input
  9. script :script command in Linux is used to make typescript or record all the terminal activities. After executing the script command it starts recording everything printed on the screen including the inputs and outputs until exit 
  10. man :The man command is a built-in manual for using Linux commands. It allows users to view the reference manuals of a command or utility run in the terminal
  11. who : The who command is used to get information about currently logged in user on to system
  12. wait :Wait Command in Linux. wait is a built-in command of Linux that waits for completing any running process. wait command is used with a particular process id or job id. When multiple processes are running in the shell then only the process id of the last command will be known by the current shell.
  13. sleep : sleep command is used to create a dummy job. A dummy job helps in delaying the execution. It takes time in seconds by default but a small suffix (s, m, h, d) can be added at the end to convert it into any other format. This command pauses the execution for an amount of time which is defined by NUMBER. 
  14. exit :The exit command lets you quit the shell where it's run. If your shell window has multiple tabs, then this command exits the tab where it's executed.
  15. rm : rm command in UNIX stands for remove and by default is used for removing files. It is simple but a powerful command especially when used with options such as -rf which allow it to delete non-empty directories forcefully. The rm command, By default, cannot remove Directories and only works on files.
  16. mv :mv is one of the must known commands in Linux. mv stands for move and is essentially used for moving files or directories from one location to another.
  17. cat : The cat command is a utility command in Linux. One of its most commonly known usages is to print the content of a file onto the standard output stream. Other than that, the cat command also allows us to write some texts into a file. 
  18. touch :Create an empty file
  19. join :Join command combines two files based on the matching content lines found in each file.
  20. spilt :It is generally used with log and archive files as they are very large and have a lot of lines, So in order to break them into small files for analysis split command is used.
  21. mkdir:mkdir command in Linux allows the user to create directories (also referred to as folders in some operating systems ). This command can create multiple directories at once as well as set the permissions for the directories.
  22. rmdir :The rmdir command removes each directory specified on the command line, if they are empty.
  23. cd : cd command in linux stands for change directory .
  24. diff :The diff command is most commonly used to create a patch containing the differences between one or more files that can be applied using the patch command.
  25. comm :The Linux comm command is using to compare the two sorted files line by line and those lines are common and the lines are unique will write to standard output. The comm command providing the comparison facility by column level.
  26. chmod : chmod command is utilized to change the file permissions. You can easily set these file permissions by using the numeric and symbolic modes. 
  27. cmp : The cmp command is used to compare two files in Linux. It is mostly useful for scripts as it only reports whether the files are different or not.
  28. tr : The ‘tr’ in tr command stands for translation. This nifty command is used for translating one type of characters into another. For example, if you want to convert text into all upper cases or all lower cases, tr command is what you can use.
  29. wc : wc command stands for word count it returns number of words .
  30. cut :The cut command in Linux is a command for cutting out the sections from each line of files and writing the result to standard output. It can be used to cut parts of a line by byte position, character and field.
  31. sort : SORT command sorts the contents of a text file, line by line. It supports sorting alphabetically, in reverse order, by number, by month, and can also remove duplicates.
  32. grep :To Search a File. To print any line from a file that contains a specific pattern of characters
  33. spell :The spell command is a spell-checking program which scans a text filefor misspelled words, and prints each misspelled word on its own line. This page covers the GNU /Linux version of spell.
.
.
.
Keep Growing !!!....


Post a Comment

0 Comments