Archive for the 'linux hacks' Category

Shell Script Commands to Automate Server or Host Telnet Login Session

In linux,we usually come across repeated commands which we try to automate usinng shell scripts.One such major need arises,when we need to establish a telnet session to a system and perform some repeated commands in remote server or host.
So,In order to automate the telnet sessions,you just need to copy the following code in a file [...]

Formatting a Disk Partition from Linux

A partition can be formatted to different file systems. For a pen drive FAT partition is adopted universally. Linux partition is commonly ext3/ext2/ext4/reiserfs.. . Windows usually work with FAT or NTFS partitions.
For formatting a partition as FAT ( as in the case of a pen drive ), give the command
mkfs.vfat /dev/sdb1
where /dev/sdb1 corresponds to the [...]