
LinuxCommands
@Linux_Commands
Useful Linux commands.
Bạn có thể thích
"sudo" - allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file.
Result: Linux MachineName 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ "free -b" Display amount of free and used memory in bytes.
$ "free -k" Display amount of free and used memory in kilobytes.
$ "free -m" Display amount of free and used memory in megabytes.
$ "free -g" Display amount of free and used memory in gigabytes.
"free" - Display amount of free and used memory in the system.
"locate" - find files by name. Usage $ locate "fileName"
"touch" - creates new file if it doesn't exist or changes the timestamp of already existing file. $touch fileName
"cat" - combines and prints files to standard output. $ cat file //Prints the content of a file $ cat file1 file2 > file3 //Combines files
Probably one of most useful commands. $find -name '*.[ch]' | xargs grep -E 'search_term' Search 'search_term' in this directory recursively.
United States Xu hướng
- 1. Deport Harry Sisson 8,955 posts
- 2. #PokemonZA 1,693 posts
- 3. DuPont 1,812 posts
- 4. Gabe Vincent 4,020 posts
- 5. #EliraGotCake2025 7,681 posts
- 6. Angel Reese 52.9K posts
- 7. #PokemonLegendZA 1,539 posts
- 8. Deloitte 6,802 posts
- 9. tzuyu 249K posts
- 10. Mavs 5,709 posts
- 11. #Blackhawks 2,179 posts
- 12. Lakers 18.2K posts
- 13. Blues 20.5K posts
- 14. Tusky 2,414 posts
- 15. Everest 3,356 posts
- 16. #TusksUp 1,683 posts
- 17. Birdman 5,420 posts
- 18. Mad Max 3,826 posts
- 19. Britney 22.1K posts
- 20. jihyo 195K posts
Bạn có thể thích
Something went wrong.
Something went wrong.