Shell

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.

Simple Patch Tools

Submitted by Everweb (Contact Author) (Forums) on Fri, 2010-07-30 17:07. :: Programming | Shell

Simple Patch Tools

Creating: When all you want to do is build a patch file that contains only the changes you've made today. Installing: I typically want to take a backup of the files that are going to be overwritten so that I can quickly undo the patch if necessary.

The Bash Script To Configure The Firewall Using IPTABLES

Submitted by ajaonchat (Contact Author) (Forums) on Thu, 2008-06-26 12:58. :: PCLinuxOS | Security | Shell

About the Script:

This script is about to build a firewall in Linux OS by using iptables, the user only needs to follow and answer the simple and easy steps and the script will generate the user specified iptables rule in its original form.

I HAVE TESTED THE SCRIPT ON PCLINUXOS, FEDORA-9, DREAM_LINUX, UBUNTU-8.

This is my iptables Version 1.0 (USMAN AKRAM - Lucky)

Useful Commands For The Linux Command Line

Submitted by Eldmannen (Contact Author) (Forums) on Fri, 2007-03-09 17:49. :: Linux | Shell

Useful Commands For The Linux Command Line

This short guide shows some important commands for your daily work on the Linux command line.

How can I observe a logfile continuously?

Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:44. :: Shell

With the command:

tail -f /path/to/logfile

you will see all lines added to the logfile. To stop this, press [CTRL] + c

How to save a command in the shell history without executing it

Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:42. :: Shell

Enter the command line and hit the keys:

[CTRL] + [#]

This will put a # in front of the command and execute it. The shell will take it as comment.

How can I clear the shell window?

Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:40. :: Shell

Use the commad:

clear

or the keyboard shortcut:

[CTRL] + [L]

Creating image borders with ImageMagick convert

Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:37. :: Shell

The command is:

convert -border 2x2 old.jpg new.jpg

This creates a new image (new.jpg) with a 2 pixel border from the image old.jpg.

To set the bordercolor to red, use this command:

convert -border 2x2 -bordercolor "#FF0000" old.jpg new.jpg

Get a list of the installed services

Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:32. :: Shell

To get a list of the installed services on the shell, you may use this command (on Fedora, RedHat, CentOS, SuSE, and Mandriva):

chkconfig --list

Show all processes for a specific user

Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:31. :: Shell

To view only the processes owned by a specific user, use the following command:

top -U [USERNAME]

and replace [USERNAME] with the name of the user.

Making snapshots of the process table shown by the TOP command

Submitted by till (Contact Author) (Forums) on Mon, 2006-08-07 17:29. :: Shell

To make a snapshot of the current process table, use the following command:

top -n 1 -b > /tmp/processtable.txt

You can now view the textfile with any text editor, e.g. pico or vi.

1
next page
last page
Sponsored Links: Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com

One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com

One number. one voicemail. Seize the lead with Sprint. Learn more

AT&T Synaptic Compute as a Service. Boost your power on demand.

Trial: IBM Cognos Express Reporting, Analysis & Planning

Learn benefits of Simpana software.
View the Gartner Video

Sprint 4G - The Ultimate Mobile Broadband
Click here

SAP-Business Objects Crystal Reports Server
Complete reporting without hidden costs. Free Trial