10 Super Powerful Linux Commands

Here we bring to you a list of 10 such commands that work like energy drinks for you Linux machines!

  1. Runing the last command as Root
    sudo !!
    
  2. To find your external IP address
    curl ifconfig.me
    
  3. Run your previous command with replacing "foo" with "bar"
    ^foo^bar
    # or!!:gs/foo/bar
    
  4. Auto-empty any file without removing it
    > file.txt
    
  5. Execute command without saving it in the history
    command
    
  6. Slick way to copy or backup a file before you edit it
    cp filename{,.bak}
    
  7. Traceroute is a nice command but how about a single network diagnostic tool that can combine traceroute with ping? mtr is your command
    mtr efytimes.com
    
  8. To clear your terminal's screen: hotkey ctrl-l
  9. List of commands you use most often
    history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
    
  10. Saving the file you edited in vim/vi without the required permissions
    :w !sudo tee %
    

Comments

Popular posts from this blog

Reduce TIME_WAIT Socket Connections