Dec 252010
 
Keep only the newest files in a directory

Managing back-ups or log files often involves deleting older versions of your archives, so that at any given time you are only storing a particular number of copies. Many scripts rely on the creation date of the files, deleting those files that are older than some set time–a day, a week, a month–but this is Read more…

Creating an SSH alias

 Posted by at 7:38 pm  No Responses »
Oct 202010
 

Are you tied of typing the entire hostname each time you SSH into a machine? $ ssh -l user01 machine1.example.com You can add an alias to your ~/.ssh/config file, setting both the username and hostname. Host mymachine HostName machine1.example.com User user01 Now, all you have to type is: $ ssh mymachine Related articles: How much Read more…

© 2010 Geektastical Suffusion theme by Sayontan Sinha