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

Ubuntu Commands

Community college gov property gov punya perangai u want to do that it was just trusting me with the same number as a lot more than husband and I want you

Uploaded by

siswand.1989
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Ubuntu Commands

Community college gov property gov punya perangai u want to do that it was just trusting me with the same number as a lot more than husband and I want you

Uploaded by

siswand.1989
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

File and Directory Management

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


2. cd [directory] - Changes the current directory.
3. pwd - Prints the current working directory.
4. mkdir [directory] - Creates a new directory.
5. rmdir [directory] - Removes an empty directory.
6. rm [file/directory] - Removes files or directories.
7. cp [source] [destination] - Copies files or directories.
8. mv [source] [destination] - Moves or renames files or directories.
9. find [directory] -name [filename] - Searches for files by name.

File Viewing and Editing


10. cat [file] - Displays the content of a file.
11. less [file] - Views file content one screen at a time.
12. nano [file] - Opens a file in the Nano text editor.
13. vim [file] - Opens a file in the Vim text editor.
14. touch [file] - Creates an empty file.

System Information and Monitoring


15. uname -a - Shows system information.
16. whoami - Displays the current user.
17. uptime - Shows how long the system has been running.
18. top - Displays running processes.
19. htop - Interactive process viewer (if installed).
20. df -h - Shows disk space usage.
21. free -h - Displays memory usage.
22. hostname - Prints the system’s hostname.

User and Permission Management


23. who - Shows logged-in users.
24. id [username] - Displays user ID and group info.
25. chmod [permissions] [file] - Changes file permissions.
26. chown [user]:[group] [file] - Changes file ownership.
27. sudo [command] - Executes a command with root privileges.

Package Management
28. apt update - Updates package lists.
29. apt upgrade - Upgrades installed packages.
30. apt install [package] - Installs a package.
31. apt remove [package] - Removes a package.

Networking
32. ping [host] - Sends ICMP requests to a host.
33. ifconfig - Displays network interfaces (deprecated, use ip a).
34. ip a - Shows IP address configuration.
35. wget [url] - Downloads files from the web.
36. curl [url] - Transfers data from or to a server.

Archiving and Compression


37. tar -czvf [archive.tar.gz] [files] - Creates a compressed tar archive.
38. tar -xzvf [archive.tar.gz] - Extracts a compressed tar archive.
39. zip [archive.zip] [files] - Compresses files into a zip archive.
40. unzip [archive.zip] - Extracts a zip archive.

System Management
41. reboot - Restarts the system.
42. shutdown now - Shuts down the system immediately.
43. kill [PID] - Terminates a process by its PID.
44. ps aux - Lists running processes.

You might also like