Linux and Unix Commands

Tips and tricks about Linux, OS X, *BSD and Unix commands. Includes commands, syntax, hacks and much more for both new users and sysadmins ( rss feed ).

I have over 1800+ pending comments and most of them are spams in WordPress based blog. How do I delete all (mass delete) the pending comments using sql statements?

{ 4 comments }

To save the disk space on my Linux based nas (network storage server), I have compressed thousands of reports[0-1000].txt files using gunzip program. However, I need to cat .gz file (or open in vim text editor) for reference purposes. I have a log files stores on my nas server in compressed format using gzip command. How do I display compressed Apache log file without using cat command? How to display the contents of gzip text files in screen without unzipping?

{ 3 comments }

I am a new Ubuntu Linux version 12.04 LTS user. How do I stop or start iptables based firewall service on Ubuntu Linux using bash command line options?

{ 4 comments }

I am a new CentOS Linux sysadmin. How can I add static route On CentOS Enterprise Linux server running on HP amd64 server?

{ 1 comment }

I am a new Linux user and built my own Steam Machine. The system is powered by Linux-based operating system called SteamOS. What is the default default login password for SteamOS? How can I login into SteamOS?

{ 0 comments }

I often need to download files using the Terminal. However, I am unable to find the wget command on OS X. How do download files from the web via the Mac OS X bash command line option?

{ 5 comments }

I know how to cange a passphrase for openssh using ssh-keygen command. How do I change a GPG encryption key’s passphrase on Linux or Unix like operating systems? How do I change the passphrase of the secret key using gpg?

{ 4 comments }