0% found this document useful (0 votes)
19 views

Linux Basic Commands

Uploaded by

Narasinga Rao
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Linux Basic Commands

Uploaded by

Narasinga Rao
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Navigation and File Management:

1. ls: List directory contents.


2. cd: Change directory.
3. pwd: Print working directory.
4. mkdir: Make directory.
5. rmdir: Remove directory.
6. rm: Remove files or directories.
7. cp: Copy files and directories.
8. mv: Move (rename) files and directories.
9. touch: Create an empty file.
10. cat: Concatenate and display files.
11. head: Display the beginning of a file.
12. tail: Display the end of a file.
13. less/more: Display file contents interactively.

File Search and Manipulation:


14. find: Search for files in a directory hierarchy.
15. grep: Search for patterns in files.
16. sed: Stream editor for filtering and transforming text.
17. awk: Pattern scanning and processing language.
18. chmod: Change file permissions.
19. chown: Change file owner.
20. chgrp: Change group ownership of a file.
21. ln: Create links between files.

System Information:
22. df: Report file system disk space usage.
23. du: Estimate file space usage.
24. free: Display amount of free and used memory in the system.
25. top: Display Linux processes.
26. ps: Report a snapshot of current processes.
27. uname: Print system information.
28. uptime: Show how long the system has been running.

Package Management:
29. apt-get: Package handling utility (Debian-based systems).
30. yum/dnf: Package manager for RPM-based Linux
distributions.
31. pacman: Package manager for Arch Linux.

User and Group Management:


32. useradd: Create a new user.
33. userdel: Delete a user account.
34. passwd: Change user password.
35. groupadd: Create a new group.
36. groupdel: Delete a group.
37. chpasswd: Update passwords in bulk.
38. su: Switch user.
39. sudo: Execute a command as another user.

Networking:
40. ifconfig: Configure network interfaces.
41. ip: Show/manipulate routing, devices, policy routing and
tunnels.
42. ping: Send ICMP ECHO_REQUEST to network hosts.
43. traceroute: Print the route packets trace to network host.
44. netstat: Print network connections, routing tables, interface
statistics, masquerade connections, and multicast memberships.

System Maintenance:
45. shutdown: Shutdown or restart the system.
46. reboot: Reboot the system.
47. service: Control system services.
48. systemctl: Control the systemd system and service manager.

Text Editing:
49. nano: Basic text editor for the command line.
50. vim: Enhanced version of the vi text editor.
51. emacs: Extensible, customizable, self-documenting text
editor.

Compression and Archiving:


52. tar: Tape archive utility.
53. gzip/gunzip: Compress or decompress files.
54. zip/unzip: Compress or decompress zip archives.
55. bzip2/bunzip2: Compress or decompress files using the
Burrows-Wheeler block-sorting text compression algorithm.

You might also like