Using autologin for ftp sessions.
A simple example of the .netrc file. Keep this file in your homedir and then chmod to 600.
machine skyware login raj password ********
macdef init
ls -lRt
macdef hello
bye
A simple example of the .netrc file. Keep this file in your homedir and then chmod to 600.
machine skyware login raj password ********
macdef init
ls -lRt
macdef hello
bye
Today I found an interesting piece of information. I was trying to debug a problem with the cups service and found that cups offers a web administration.brbrThe server is running at port 631. So point your browser to browser with <a href="http://localhost:631">link and happy digging.
I found quite a lot of good information today morning.
Some really good info on vi/vim. I liked the this one:”Also, you don’t have to use the / command as a separator. Anything typed after s will become the separator”
<a href="http://ask.slashdot.org/article.pl?sid=08/11/06/206213&from=rss" target="_blank">http://ask.slashdot.org/article.pl?sid=08/11/06/206213&from=rss
Some of the best collection of vi/vim tips: (though a lot of them do not have explanations)
<a href="http://vim.wikia.com/wiki/Best_Vim_Tips" target="_blank">http://vim.wikia.com/wiki/Best_Vim_Tips
Top 10 Best Cheat Sheets and Tutorials for Linux / UNIX Commands
Continue reading#!/usr/bin/perl
if ($#ARGV < 0 )
{
print ”$#ARGV \n”;
print ”Usage $ARGV[0] filename/dir\n”;
exit -1;
}
@files = `find ”$ARGV[0]” -iname ”*jpg” -print`;
if ($#ARGV > 3 ) { $cmd = 1;}
$count = 1;
foreach $file (@files) {
chomp ($file);
A lot of times there is a need to log all the messages and the output of the shell to the file or syslog. Sometimes I need that for some user too. script command can be used to do this but then sometimes you cannot tell the user the session is logged or you can ask the user to run this command and it should be automatically done. And sometimes there is a need put the output in the syslog so that the root user has more control and also mail for syslog is sufficient to be analyzed rather than looking for other files. Finally I found this :
Continue reading<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category
This tutorial shows how you can <a HREF="http://www.howtoforge.com/boot-linux-over-http-with-boot.kernel.org-bko">boot Linux over HTTP with boot.kernel.org (BKO). All that users need is Internet connectivity and a small program (gpxe) to boot the machine. This gpxe program provides network booting facility. BKO allows you to boot into the following distributions: Debian, Ubuntu, Damn Small Linux, Knoppix, Fedora. BKO provides gpxe images for USB sticks, CDs, and also for floppies, i.e., you can boot from a USB sticks, a CD, or a floppy.
Continue readingYou want to learn about Linux, start from learning what not to do. <a href="http://www.junauza.com/2008/11/7-deadly-linux-commands.html" target="_blank">Here is one for the starting point.
So moral of the story is if someone asks you to do something and you dont know what that command will do, then dont do it. If your inner thing does not allow you not to do it, do it with all the care you can take. May be a backup and most importantly ”DONT USE ROOT LOGIN IF U DONT HAVE REASON TO USE IT”. BTW there are couple of more articles on these kind of advices but the best way to save yourself is to educate yourself on the outcome of the command you are executing.
Continue reading