LinuxCommands
@Linux_Commands
Useful Linux commands.
คุณอาจชื่นชอบ
"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 เทรนด์
- 1. Knicks 76.3K posts
- 2. Mariah 27.3K posts
- 3. NBA Cup 60.3K posts
- 4. Clarkson 8,493 posts
- 5. Wemby 27.1K posts
- 6. Tyler Kolek 7,175 posts
- 7. #NewYorkForever 4,725 posts
- 8. Brunson 23.5K posts
- 9. Josh Hart 5,497 posts
- 10. Thug 22K posts
- 11. Mitch 15.9K posts
- 12. Buck Rogers 2,241 posts
- 13. #LMD7 49.7K posts
- 14. Gil Gerard 2,180 posts
- 15. Mike Brown 4,788 posts
- 16. Thea 13.6K posts
- 17. #WWENXT 19.4K posts
- 18. Dylan Harper 2,098 posts
- 19. Blake 22.9K posts
- 20. Thibs 1,037 posts
Something went wrong.
Something went wrong.