Please help us improve HowtoForge and take our survey:
Shell
The Bash Script To Configure The Firewall Using IPTABLESSubmitted 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) read more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionUseful Commands For The Linux Command LineUseful 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?With the command: tail -f /path/to/logfile you will see all lines added to the logfile. To stop this, press [CTRL] + cread more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionHow to save a command in the shell history without executing itEnter 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. read more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionHow can I clear the shell window?Use the commad: clear or the keyboard shortcut: [CTRL] + [L] read more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionCreating image borders with ImageMagick convertThe 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 read more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionGet a list of the installed servicesTo get a list of the installed services on the shell, you may use this command (on Fedora, RedHat, CentOS, SuSE, and Mandriva): chkconfig --list read more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionShow all processes for a specific userTo 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. read more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionMaking snapshots of the process table shown by the TOP commandTo 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. read more... | login or register to post comments |
email this page | view as pdf | printer-friendly versionHow do I search for a term in a file?With the grep command. If you want to find out if the term user is in /etc/httpd/conf/httpd.conf, you would run grep -i user /etc/httpd/conf/httpd.conf (-i makes the search case-insensitive). Normally grep does not tell you the line number where it finds the term. If you want to find out the line number, run grep -n -i user /etc/httpd/conf/httpd.conf read more... | login or register to post comments |
email this page | view as pdf | printer-friendly version"Facebook" is a registered trademark of Facebook, Inc. All rights reserved. |







Recent comments
5 hours 2 min ago
21 hours 56 min ago
21 hours 59 min ago
1 day 17 hours ago
2 days 13 hours ago
2 days 15 hours ago
2 days 19 hours ago
4 days 12 hours ago
4 days 13 hours ago
4 days 13 hours ago