Skip to main content

Posts

Showing posts from September, 2015

Linux: Useful du (Disk Usage) Commands to Find Disk Usage of Files and Directories

The Linux “ du ” ( Disk Usage ) is a standard  Unix/Linux  command, used to check the information of disk usage of files and directories on a machine. The  du  command has many parameter options that can be used to get the results in many formats. The  du  command also displays the files and directory sizes in a recursively manner. Most useful command du - h -- max - depth = 1 1. To find out the disk usage summary of a  /home/tecmint  directory tree and each of its sub directories. Enter the command as: [root@tecmint]# du /home/tecmint 40 /home/tecmint/downloads 4 /home/tecmint/.mozilla/plugins 4 /home/tecmint/.mozilla/extensions 12 /home/tecmint/.mozilla 12 /home/tecmint/.ssh 689112 /home/tecmint/Ubuntu-12.10 689360 /home/tecmint The output of the above command displays the number of disk blocks in the  /home/tecmint  directory along with its sub-directories. 2. Using “ -h ” option with “ du...

Java + HTTPS: Unable to Find Valid Certification Path to Requested Target

Run  InstallCert.java , with your hostname and https port, and press “ 1 ” when ask for input. It will add your “localhost” as a trusted keystore, and generate a file named “ jssecacerts “. C : \ > java InstallCert localhost : 8443 Loading KeyStore C : \Program Files\Java\jre6\lib\security\cacerts . . . Opening connection to localhost : 8443 . . . Starting SSL handshake . . . javax . net . ssl . SSLHandshakeException : sun . security . validator . ValidatorException : PKIX path building failed : sun . security . provider . certpath . SunCertPathBuilderException : unable to find valid certification path to requested target at com . sun . net . ssl . internal . ssl . Alerts . getSSLException ( Unknown Source ) at com . sun . net . ssl . internal . ssl . SSLSocketImpl . fatal ( Unknown Source ) at com . sun . net . ssl . internal . ssl . Handshaker . fatalSE ( Unknown Source ) at com . sun . net . ssl . internal . ssl . Handshaker...