97 users online | 97 Guests and 0 Registered

H

  • How to SSH without password
        For passwordless login, hit enter when asked for password then hit enter again for default name. mkdir .ssh #not needed in most casesssh-keygen -t rsa -b ...
  • How to backup home directory
      cd /home/ find . -depth -print0 | cpio --null --sparse -pvd /backup/home/ ...
  • How to Mount Windows shares from fstab
      This works well on Centos //192.168.1.50/temperature /var/www/html/hot  cifs password=ASF1f02@2,username=KoocooMonster   This works for Ubuntu //192.168.1.50/apps  /media/192.168.1.50 cifs workgroup=NDS2K,password=ASF1f02@2,username=KoocooMonster 0  0   ...
  • How to split large files
      To split split /media/storage1/Largefile.zip /media/APPS2/slize/export.1   To join   cat export.1* > NEWFILENAME ...
  • How to rename a file with date stamped
      Assuming that you have a directory /logs This is the actual command that runs on one of my  cron jobs.     logwatch --detail=High --range=Today >/logs/watchdog.txt  && mv /logs/watchdog.txt ...
  • How to add remote SMTP server to Postfix
      Edit 'main.cf' file, create/edit a line as follows: Centos and Ubuntu location /etc/postfix/main.cf     relayhost = smtp.west.cox.net ...
  • How to synchronize folders
      Rsync I use this alot to synchronize several machines,  A basic way  rsync  -rtvaz --delete   /var/www/Vol1 root@192.168.1.102:/var/Vol1  > /var/rsync.txt     To limit the Bandwidth   rsync -rtvaz --delete --bwlimit=1000  -e ...
  • How to backup My Documents on Windows 7 using batch script
      The following script will create a folder on the D: drive named as today's date in numeric format, this is great if you need to ...
  • Hidden folder after copying from external drive
      This problem occurs sometimes when using robocopy , sometimes I Can't even see files in external drive and they are not hidden. My solution is to run: attrib ...