Posts tagged unix

Shell script to list out the contents of a file

This shell script will list out the contents of a file using MENU DRIVEN, considering the following:
- The user enters the file name (may enter a path)
- The script reads in the file name
- It checks if it exists and it is a file
- If it does not, it warns the user
- Otherwise it should list the contents
Read the rest of this entry »

Shell script for safely delete a file

The advantage of such a script is that the file can be recovered if the deletion was a mistake. The following bash shell script called “safdel.sh” using a turnkey menu to offer the following choices:

  • The user enters the file name to be deleted.
  • The name is checked to make sure the file exists and is an ordinary file. If not, the user is asked again for a file until a valid name is entered or the user exits. Read the rest of this entry »

PuTTY the SSH and telnet client

PuTTY is an open source and a free implementation of Telnet, SSH, rlogin, and raw TCP computing protocols for Windows and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham.

PuTTY was originally written for Microsoft Windows, but it has been ported to various other operating systems. Official ports are available for some Unix-like platforms, with work-in-progress ports to Classic Mac OS and Mac OS X, and unofficial ports have been contributed to platforms such as Symbian OS and Windows Mobile OS. Read the rest of this entry »