Linux_Commands's profile picture. Useful Linux commands.

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.


Returns > Just some text


$echo "Just some text"


"echo" - Display a line of text.


"$df -h"For human readable space usage.


"df" - Report file system disk space usage


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


"uname" Prints system information.


$ "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"


"whoami" prints current session userid


"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 트렌드

Loading...

Something went wrong.


Something went wrong.