Blogspot - linuxcommando.blogspot.com - Linux Commando

Latest News:

X11 Forwarding over SSH: run remote graphical app and display locally 21 May 2013 | 04:53 am

In the modern networked environment, we often wish to run an application on a remote host while we are comfortably logged in on our local computer. Assuming both machines are Linux-based, and the app...

Forcing pseudo terminal on ssh command execution 2 May 2013 | 11:32 pm

You already know how to execute a command on a remote computer via ssh. The syntax is like this: This will work if the command is simply piping output, for example, ls. If the command is "screen-ba...

One-liner to shutdown remote host 23 Apr 2013 | 05:11 am

To shutdown the local machine immediately, you execute this command as root or under sudo: If it is a remote server that you want to shutdown, it could be slightly more involved. You need to have ro...

One-liner to copy text to a remote host 19 Apr 2013 | 11:23 pm

Occasionally, I want to copy a short line of text to a remote computer. For instance, I have an URL for some real cool web site which, for whatever reason, I want to send to a remote host. I can alway...

Identify available printer names 17 Mar 2013 | 03:45 am

Some machines have access to more than one printer. Unless the default printer is the one you want, you need to know the name of the printer to use in the printer-related command. For instance, if you...

Deciphering mysql error codes 9 Mar 2013 | 03:45 am

I was tasked to upgrade the mysql server running on the Centos server. Of course, the first thing I should do was to backup my database. I run the mysqldump command below to write out the sql stateme...

Auto fill in ssh client parameters 3 Mar 2013 | 12:23 am

I often ssh to different servers, both at work and at home. Often, the Linux account name is different according to which server I'm logging in. Also, some servers are set up to allow ssh login throug...

Splitting up is easy for a PDF file 24 Feb 2013 | 07:18 am

Occasionally, I needed to extract some pages from a multi-page pdf document. Suppose you have a 6-page pdf document named myoldfile.pdf. You want to extract into a new pdf file mynewfile.pdf containin...

Convert units of measurement 22 Jul 2012 | 09:10 am

How do you convert from 1 measurement unit to another unit? Say from kilometers to miles. I can always look it up on that fridge magnet. This one local realtor likes to send me freebies like the frid...

How to insert a file at a specific line and column 12 Apr 2010 | 09:42 am

My objective is to insert the complete contents of a text file at a specific row and column of another text file. If we are merely concerned with inserting after a specific line, it can be readily ac...

Recently parsed news:

Recent searches: