line numbers

Q. I am a brand new user of a Linux iptables and I can’t find how to instruct my iptables to delete or unblock an IP address listed in iptables firewall. I’m using Debian Linux version. Can you help please?

{ 2 comments }

How do I display vi / vim text editor line numbers while writing a shell script or c program? How can I turn on or off this feature?

{ 17 comments }

Shell Script To Number Lines Of Files

by Vivek Gite on April 18, 2008 · 10 comments

How do I number each line to a text file? How do I write a shell script to display text file with line numbers added?

{ 10 comments }

Q. How do I print line numbers on printer for my c / java code written using vi / vim text editor under Linux / UNIX operating system?

{ 4 comments }

Q. I’ve just installed CentOS Linux server and started to use vi text editor to make changes to config files. How do I perform search and replace operation using vi / vim text editor? A. vi (vim) is not difficult to learn, the vi editor is well known and used for both writing code and [...]

{ 14 comments }

Q. How do I display / list all rules in the selected chain? How do I find out which rules are active? What is blocked and opened with my firewall? A. To List all rules in the selected chain use the -L option. If no chain is selected, all chains are listed. As every other [...]

{ 0 comments }

Linux and UNIX view command-line history

by Vivek Gite on August 6, 2006 · 11 comments

Q. How do I view command line history? I am using Cent OS Linux system.

{ 11 comments }