Cool linux commands

Here is a list of linux commands and files that have information that I found interesting or useful.

  • w – this command shows you information about who is logged in
  • dig domain.com – this gathers information about a domain name
  • nslookup domain.com – Query DNS servers for information about domain names
  • whois domain.com – Ancient command to find out more information about DNS
  • cat file.txt – You can use this to join  split avi files together ($ cat avimovie_part* > newavimovie_whole.avi ) or just to view the contents of a file
  • du  * – find the disk usage of a file or a directory ( I recommend using the -ch switch for outputting a total and making that total human readable)
  • df – Disk freespace, pretty much self explaining but I use it with the -h switch to convert the bytes to megabytes or gigabytes
  • tail file.txt  – This shows you the last bit that was appended to a file. I use this with the -f switch to “follow” a file as it’s updated live
  • finger username – find information about users
  • sudo command – gain root privileges for the commends you’re using

Feel free to comment and add the commands that you find interesting.

  • decoy

    These are obviously larger topics that probably aren’t suited for a summary post like this, but definitely needs some sed, awk, grep, find, cut, sort, etc.

    =]