You are currently browsing the post archives for February 2010.

Using screen in Linux to save your bacon

Posted on February 28, 2010 at 11:08 pm in

Tonight I’m being plagued by dropped ssh connections. 2 minutes of work, them bam everything goes away. I’ve seen screen used in the past, but never had to use its power until tonight. Ask any seasoned sysadmin and they’ll tell you that screen has saved their bacon many times, and it did for me tonight.…

Using screen in Linux to save your bacon - continue reading

Comment on Using screen in Linux to save your bacon


SYSSTAT: SAR/IOSTAT

Posted on February 25, 2010 at 1:30 pm in

The pidstat command is used to monitor processes and threads currently being managed by the Linux kernel. It can also monitor the children of those processes and threads.
With its -d option, pidstat can report I/O statistics, providing that you have a recent Linux kernel (2.6.20+) with the option CONFIG_TASK_IO_ACCOUNTING compiled in. So imagine that your…

SYSSTAT: SAR/IOSTAT - continue reading

Comment on SYSSTAT: SAR/IOSTAT

Tags:

Quick SCP

Posted on February 25, 2010 at 11:39 am in

Logged into source host
scp -r -p * root@remotehost:/home/user/public_html
This will copy *all* files to the directory /home/user/public_html in the remote server remotehost. The -p preserves the modification and access times, as well as the permissions of the source-file in the destination-file. The -r copies the contents of the source-file (directory in this case) recursively.

Quick SCP - continue reading

Comment on Quick SCP

Tags:

SCP / SSH recipes

Posted on February 3, 2010 at 8:15 am in

scp [[user@]from-host:]source-file [[user@]to-host:][destination-file]
Description of options

from-host
Is the name or IP of the host where the source file is, this can be omitted if the from-host is the host where you are actually issuing the command
user
Is the user which have the right to access the file and directory that is supposed to be…

SCP / SSH recipes - continue reading

Comment on SCP / SSH recipes


Top