what is Linux

what is Linux

Linux is an open-source lightweight operating system that is based on the Unix operating system. It provides a powerful and flexible environment for multi-users and multi-task. Linux is highly secure, customizable and can be used on various devices such as servers, desktops, and embedded systems.It provides a simplified update for all installed software.

Advantage of linux

  1. Open Source: Linux is an open-source operating system, which means its source code is freely available to the public. anyone can use this code.

  2. Cost-effective: Its free to all, which makes it a cost-effective option for all individuals, organizations, and businesses.

  3. Customization and Flexibility: It provides high levels of customization and flexibility.

  4. Stability and Reliability: Linux is known for its stability and reliability, ability to handle high workloads and run continuously without crashing or requiring frequent reboots.

  5. Security: Linux provides strong security. The open-source nature of Linux allows security vulnerabilities to be identified and patched quickly by the community, reducing the risk of widespread attacks.

  6. Community and Support: The Linux community is extensive and active. If you encounter any issues or have questions, you can find support through online forums, documentation, and dedicated communities.

Linux basic commands

  1. ls: Lists files and directories in the current directory.

  2. cd: For Changes directory.

  3. pwd: Prints the current working directory.

  4. mkdir: Creates a new directory(Folder).

  5. rm/rmdir : Removes/Delete files and directories.

  6. rmdir -p: Remove both parent and chield directory.

  7. rm -rf: Remove even non-empty file and directories.

  8. cp: Copies files and directories.

  9. mv: Moves or renames files and directories.

  10. cat: The 'cat' command is the most universal and powerful tool. It is considered to be one of the most frequently used commands. It can be used to display the content of a file, copy content from one file to another, concatenate the contents of multiple files, display the line number, display $ at the end of the line, etc.

  11. tac: This command is used to see the output from bottom to top.

  12. echo: For Prints text to the terminal.

  13. grep: Searches for a specific pattern in files.

  14. man: Displays the manual pages for commands, providing detailed information and options.

  15. touch: use to create, change and modify timestamps of a file, We can create multiple empty files using this command.

  16. vi: it's a programmer text editor, it can be used to edit all kinds of plain text, it is specially useful for editing. Programmers are mainly used for Linux programs.

  17. uname: It shows the name of kernel(OS).

  18. uname -r: It shows the version of kernel.

  19. clear: Used for clear screen.

  20. whoami: It show list currently login user name.

  21. date: It show date and time.

  22. sort: To sort any file alphabetically.

  23. tree: It is same as ls command but it shows in tree format.

  24. useradd: For Create user account.

  25. userdel: For elete user account.

  26. head: Head command is used for to display top line of the file.

  27. tail: Tail command is used for to display bottom line of the file.

  28. history: It shows list of previously used commands.