4 years ago
For eg $ man who
who # prints out all users logged into machine whoami # in case you forget who you are finger name # get some basic information about accounts with name or username id # list of current user's identifying info (uid, gid, groups, ...) env # list all your environment variables
uname -a # print kernel version cat /proc/stat # print lots of system statistics /proc/sys/ # /proc directory contain lots of kernel variables # (some can be written to change kernel configuation) procinfo # print out a bunch of system stats from /proc getconf -a # list all the system configuration variable values
lsdev # list installed hardware lspci # list all pci devices lshw # list detailed config of hardware cat /proc/cpuinfo # information about processor(s) # detailed information about cpus is in /sys/devices/system/cpu/ subdirs # for example to see information about the L1 data cache: cat /sys/devices/system/cpu/cpu0/cache/index0/size cat /sys/devices/system/cpu/cpu0/cache/index0/type cat /sys/devices/system/cpu/cpu0/cache/index0/level ... getconf # will list some cache size info too
free # information about free memory in the system cat /proc/meminfo # information about memory usage in the system cat /proc/slabinfo # information about kernel caches cat /proc/swaps # informatin about swap partitions top # real-time update of running system: memory use, processes getconf PAGESIZE # see the system page size vmstat # list virtual memory statistics
top # information about processes running on system ps -A # list all processes running on the system cat /proc/loadavg # get information about system load uptime # load info xload # realtime load info
du # prints out disk usage information df # displays disk usage summary for each partition sfdisk -l # list the partion table for disk devices cat /proc/scsi/scsi # see scsi devices known by kernel cat /proc/ide # see ide devices known by kernel iostat # see R and W accesses to different devices sudo fdisk /dev/sda # choose option p to print information about the device, q to quit # (you must be root to run fdisk. be very careful not to choose # options that change the partition tables for this device)
du # prints out disk usage information df # list space on all mounted filesytems ls -il # lists the inode numbers of files lsof # list open files cat /proc/sys/fs/ # contains files with file system stats sudo debugfs # ext2 filesystem debugger file filename # list information about the type of a particular file stat filename # list filesystem information about a particular file
netstat # print out information about nw connections, routing tables, etc. cat /proc/net/dev # network device status information ifconfig -a # display configure info for all NW interfaces on system arp -v dig # dns lookup
If you find this tutorial please let me know by voting / comments.
It's the most useful (in most cases) console commands. Really useful tutorial, thanks!
Great tutorial. Neatly put together and easy to follow. Nice! Thanks.
Very helpful collection of commands, all collected. Thanks.
thanks for importent information.
Thanks everybody for appreciation
For a new tutorial: maybe its too newbe, but I would find it interesting to know more about how to administrate files ons some-one elses account on the computer. For example: I have made an account on my laptop for my children (2 and 4 years old) and I like to remove, add or change files in their personal map (home)
Thank you, clear information :-)
Thanks Sagit! This is a very handy cheat sheet. Great work!
A very good compilation of those little but useful tools which get forgotten too easily, for they aren’t used really often.
Point taken I will give it a try !!
Thanks buddies for your encouragement. Any suggestions for new tutorial. I will love to contribute for community.
Absolutely great list of handy CLI commands!
great collection. useful grouping. easy readable format. thumbs up!
many of the commands are new to me.
appreciating your efforts sitting down and type all that stuff into
the stpd editor...
helpful especially for a newbie,
because you have all commands for system info at a glance