LINUX COMMANDS

LINUX COMMANDS

Here is a list of some commonly used Linux commands:

  1. ls - list the files and directories in the current directory
  2. cd - change the current directory
  3. pwd - print the current working directory
  4. mkdir - make a new directory
  5. rmdir - remove an empty directory
  6. cp - copy a file or directory
  7. mv - move or rename a file or directory
  8. rm - remove a file
  9. touch - create a new empty file
  10. chmod - change the permissions of a file or directory
  11. sudo - execute a command as the superuser
  12. man - display the manual for a command
  13. cat - concatenate and display the contents of a file
  14. grep - search for a pattern in a file or stream of data
  15. find - search for files and directories
  16. head - display the beginning of a file
  17. tail - display the end of a file
  18. sort - sort the lines of a file
  19. uniq - remove duplicate lines from a file
  20. wc - count the number of lines, words, and bytes in a file
  21. tar - create and extract archive files
  22. gzip - compress or decompress files
  23. gunzip - decompress files that have been compressed with gzip
  24. bzip2 - compress or decompress files
  25. bunzip2 - decompress files that have been compressed with bzip2
  26. zip - compress or decompress files
  27. unzip - decompress files that have been compressed with zip
  28. ssh - connect to a remote machine over a secure shell
  29. scp - copy files between two computers over a secure shell
  30. rsync - synchronize files between two computers
  31. ping - send a test message to a remote computer to see if it is reachable
  32. traceroute - trace the path that a packet takes to a remote computer
  33. netstat - display information about network connections
  34. dig - perform DNS lookups
  35. host - perform DNS lookups
  36. nslookup - perform DNS lookups
  37. whois - look up information about a domain name
  38. top - display information about processes running on the system
  39. ps - display information about processes
  40. kill - terminate a process
  41. df - display information about available disk space
  42. du - display information about the space used by directories
  43. free - display information about free and used memory
  44. uptime - display the system uptime and load averages
  45. uname - display information about the system
  46. lsb_release - display information about the Linux distribution
  47. dmesg - display the kernel message log
  48. journalctl - display the system journal
  49. last - display information about recent system logins
  50. who - display information about users currently logged in to the system
  51. w - display information about users currently logged in to the system and their processes
  52. reboot - reboot the system
  53. shutdown - shut down the system
  54. init - control the system initialization process
  55. systemctl - control the system and services
  56. mount - mount a file system
  57. umount - unmount a file system
  58. fdisk - partition a disk
  59. parted - partition a disk
  60. gparted - partition a disk (graphical user interface)
  61. chown - change the owner of a file or directory
  62. chgrp - change the group ownership of a file or directory
  63. passwd - change the password for a user
  64. su - switch to a different user
  65. adduser - add a new user to the system
  66. userdel - delete a user from the system
  67. groupadd - add a new group to the system
  68. groupdel - delete a group from the system
  69. visudo - edit the sudoers file (configuration for who can use the sudo command)
  70. apt-get - package manager for Debian-based systems (e.g., Ubuntu)
  71. yum - package manager for Red Hat-based systems (e.g., CentOS)
  72. dnf - package manager for Fedora
  73. pacman - package manager for Arch Linux
  74. emerge - package manager for Gentoo Linux
  75. zypper - package manager for openSUSE
  76. rpm - install, query, verify, and delete software packages
  77. make - build software from source code
  78. gcc - GNU C compiler
  79. g++ - GNU C++ compiler
  80. gdb - GNU debugger

this is just a small selection of the many commands available in Linux. You can learn more about these and other commands by consulting the manual pages (using the man command) or by doing online research.

要查看或添加评论,请登录

Muhammad iqbal的更多文章

  • AI: Karachi - AI Meetup DeepLearning.AI

    AI: Karachi - AI Meetup DeepLearning.AI

    Pie & AI is a series of DeepLearning.AI #Meetups independently hosted by community groups.

  • How to add comments in python

    How to add comments in python

    In Python, comments are used to provide explanations and notes about the code. Comments are ignored by the interpreter…

  • help() function in Python is used to display the documentation

    help() function in Python is used to display the documentation

    The help() function in Python is used to display the documentation or information about a specific module, function…

  • Python version check

    Python version check

    To check which version of Python is currently installed on your system, you can use the following command in the…

  • Introduction to Python

    Introduction to Python

    Python is a high-level, interpreted programming language that is widely used for web development, scientific computing,…

  • how to create a dictionary in python ?

    how to create a dictionary in python ?

    In Python, a dictionary is a collection of key-value pairs. You can create a dictionary using the dict function, or by…

  • what is the difference between a list and a tuple in python ?

    what is the difference between a list and a tuple in python ?

    In Python, a list is an ordered collection of objects that can be of any data type, including other lists. Lists are…

  • define a decorator in python ?

    define a decorator in python ?

    In Python, a decorator is a design pattern that allows you to extend or modify the functionality of a class or function…

  • life cycle of containerised applications

    life cycle of containerised applications

    The life cycle of a containerised application generally consists of the following steps: Development: In this phase…

  • props in React

    props in React

    Here are some key points about props in React: Props (short for "properties") are a way to pass data from a parent…

社区洞察

其他会员也浏览了