Bash – If – code block, one liner, and AND then OR && ||1liner
A normal if statement in bash looks like this if ps ax | grep "[p]rogram" &> /dev/null; then echo "program is running" else echo "program is not running" fi # COMMENT1: theRead More…
A normal if statement in bash looks like this if ps ax | grep "[p]rogram" &> /dev/null; then echo "program is running" else echo "program is not running" fi # COMMENT1: theRead More…
How to change the qualities of sickbeard / sickrage tvshows all at once via sqlite instead of going one by one thru the gui (in the gui you get there by goingRead More…
Here is how you setup uTorrent Server on a Linux box. I tested with a Debian like build (my ReadyNAS 6.x box) Download the tar gzip file containing UTServer cd /root wgetRead More…
SystemD is the newer alternative to the init.d system. Instead of service files being in /etc/init.d/, they are in /lib/systemd/system. In /etc/systemd/system/multi-user.target.wants/ there are symlinks to the /lib/systemd/system service files. Anything inRead More…
# Best Sortable Date and Time (start with the biggest go to smallest: year,month,day,hour,minute,second) date +%Y-%m-%d-%H-%M-%S # ex: 2015-09-15-13-28-50 (which means Sept 15th 2009 at 1:28:50 pm) # or this format whereRead More…
If you have an NTFS filesystem on a disk or a partition (or on an iSCSI Lun) & it is corrupt, then you might see symptoms like this: drive letter is shown,Read More…
Step1. Start the command below # COMMAND 1 Use this command if you have "watch" # ** use this as most likely you do have watch ** watch -n0.2 'ps uxeww |Read More…
While troubleshooting wireless its nice to look at all of the needed information all at once. This command can provide all that for your windows client (of course you will still needRead More…
My favorite: ########### not forest ############## ps ax # all users all process – least info ps auxe # all users all process – more info, not wrapped ps auxeww # allRead More…
Check out the links below. Its common for drives in a RAID to fail. RAID was invented to save people from losing all of their data if a drive fails. So theRead More…