Download Files from a Directory with wget

To download all files in the directory using WGET in Linux, the following command can be used wget -H -r –level=1 -k -p http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/ -r, –recursive Specify recursive download. -l, –level=NUMBER Maximum recursion depth (inf or 0 for infinite). -k, –convert-links Make links in downloaded HTML point to local files. -p, –page-requisites Get all images, … Read more

How to Comment Lines in vi

How to comment all lines in VI editor ? This can be done with a using a command like ‘search and replace’ 1.Open the file in ‘vi’ editor.2.Press Escape and type :1,$s/^/##/g3.Press Enter 1,$s/^/##/g can be broken down as1: To start from 1st line $s :To end at the last line/^ : Search for the … Read more

scp — Secure Remote File Copy

Planet.Foss.in is the collaborative blog of Indian FOSS Members.
URL: http://planet.foss.in/ (Thanks Edgar)

One Day One Command
===================

scp — Secure remote file Copy Program.

Summary:

scp copies files between computers on a network. It uses ssh for data
transfer, & uses the same authentication & provides the same security
as ssh. The SSH Daemon must be running in the remote computer to do
the scp.

Read more

ssh — OpenSSH SSH Client

IEEE-SJCE chapter and Mysore LUG are jointly organized the TuxEdo’05
Event in SJCE, Mysore. URL: http://www.ieee.sjce.net/tuxedo.htm

One Day One Command
===================

ssh — OpenSSH SSH Client

Summary:

ssh (SSH client) is a program for logging into a remote machine and
for executing commands on a remote machine. It is intended to replace
rlogin, rsh and telnet, and provide secure encrypted communications
between two untrusted hosts over an insecure network. The SSH Daemon
must be running in the Remote computer to successfully connect to it.

Read more

netstat — Network Connections and Statistics

Linux/MIPS is a port of Linux Kernel to the MIPS architecture.
It is available under GPL with Toolchains and Emulators for no.
of processors and boards. URL: http://www.linux-mips.org/

One Day One Command
===================

netstat — Display the Network subsystem informations.

Summary:

Netstat prints information about the Linux networking subsystem, like
network connections, routing tables, interface statistics, masquerade
connections, and multicast memberships. It is very useful monitoring
tool.

Read more

ipcalc — IP Address Calculation Tool

TUX Magazine is the nice magazine for the new GNU/Linux users. It is
available in printed form and also for free download.
URL: http://www.tuxmagazine.com/

One Day One Command
===================

ipcalc — Simple IP address manipulation tool.

Summary:

ipcalc provides a simple way to calculate IP information for a host.
The various options specify what information ipcalc should display on
standard out.

Read more

umask — Default file-creation permission mask.

Professor Donald E. Knuth, Author of the Holy “The Art of Computer
Programming” books and Creator of the Powerful Document Preparation
Tool, LaTeX. URL: http://www-cs-faculty.stanford.edu/~knuth/

One Day One Command
===================

umask — Default file-creation permission mask.

Summary:

umask is used to set the default permission for files, which is
created by the user. To get the actual default permissions, the
mask should be XOR-ed with 0666 for files and 0777 for folders.

For example, if umask is 0002, then (0002 ^ 0666) = 0664 is the
default permission for files.     

Read more

lsattr — List special file attributes on a Ext2 FS

Open Office (OO) is a multi-platform and multilingual office suite and
an FOSS project. Compatible with all other major office suites. It is
free to download, use, modify and distribute.
URL: http://www.OpenOffice.org/

One Day One Command
===================

lsattr — List special file attributes on a Ext2 FS

Summary:

Apart from normal access permission (RWX) attributes, Ext2 File System
(FS) is providing few extra bit to set some special attribute to each
file in the FS.

‘lsattr’ command is used to display the file’s special attributes on a
Ext2 or Ext3 FS.
   

Read more

chattr — Change File Attributes on a Ext2 File System.

Linux.Org is designed to act as a central source of Linux information,
as a voice for the promotion and advocacy of the Linux based OS and
information about the contributors. URL: http://www.linux.org/

One Day One Command
===================

chattr — Change File Attributes on a Ext2 File System.

Summary:

Ext2 File System(FS) is providing few extra bit to set some special
attribute to each file in the FS. ‘chattr’ command is used to changes
the file’s special attributes on a Ext2 FS.

Read more

lsof — List Open Files

Edsger Wybe Dijkstra (EWD) was one of the most influential members of
computing science’s founding generation and he honored by ACM Turing
Award. URL: http://www.cs.utexas.edu/users/EWD/

One Day One Command
===================

lsof — LiSt Open Files.

Summary:

lsof lists all open files belonging to all active processes. An open
file may be a regular file, a Dir, a special file, an executing text
reference, a library, a stream or a network file (Internet socket, NFS
file or UNIX domain socket).          

Read more