Unix Tutorials and HowTos

Question and answer for users of Unix-like operating systems. Topic includes – Unix commands, servers, security, networking, shell programming, troubleshooting and much more ( rss feed ).

I would like to read data from the user using Python. How do I read data using raw_input()?

{ 3 comments }

How do I monitor my nginx server status and connections requests per seconds under Linux or Unix like operating systems?

{ 2 comments }

I am a new vi (vim) text editor user. How do I quit the vi editor and save my changes under Linux or Unix like operating systems?

{ 0 comments }

How do I use the cat command to display the line numbers for a file called myapp.c under Linux or Unix like operating systems?

{ 0 comments }

I am a new vi / vim text editor user. How can I quit the vi / vim text editor without saving my changes to a file under Linux / Unix like operating systems?

{ 0 comments }

I have a bash variable as follows:

output="$(awk -F',' '/Name/ {print $9}' input.file)"

How do trim leading and trailing whitespace from bash variable called $output? How do I trim trailing whitespace from $output?

{ 7 comments }

I have Squid caching proxy server deployed on Rackspace based server in UK. This server has four IP address. I would like to change outgoing IP addresses from default 1.2.3.1 to 1.2.3.4. How do I change proxy server outgoing IP address under Linux or Unix operating systems?

{ 1 comment }