# 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…
Fix NTFS Filesystem / iSCSI LUNs on a Win PC with Active File Recovery & chkdsk
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…
Monitoring BTRFS Defragmenation – watching btrfs filesystem defrag
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…
WLAN Report Windows – Wifi Windows Report
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 renditions of PS in linux
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…
Why do my RAID drives fail often?
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…
Update update-alternatives of vim to new vim – statically compiled vim
Update Alternative We will use Update Alternatives here, which is explained best by the first 2 man pages paragraphs (http://manpages.ubuntu.com/manpages/hardy/man8/update-alternatives.8.html): """ update-alternatives creates, removes, maintains and displays information about the symbolic linksRead More…
how many files in a folder – number of files&folders du
The output is like that of du, so you get the recursive output of every subfolder. # change /home to match the folder your interested in, change it to . for currentRead More…
Linux view difference in files every N seconds – with find & diff or comm
If your copying files using cp or rsync or whatever method. Sometimes you want to see the new files or changed files in the past N seconds. You can do that likeRead More…
IFS cheatsheet – setting to default & to newline (for files & folders with spaces)
IFS Cheatsheet The IFS variable is the for loop delimiter. By default its set to space,tab,newline (first spaces are looked at as delimiters, and then tabs, and then newlines). This will causeRead More…