Posts

Showing posts from September, 2016

screen

export PS1="screen$WINDOW \h \u \w \$ " Screen  is a full-screen software program that can be used to multiplexes a physical console between several processes (typically interactive shells). It offers a user to open several separate terminal instances inside a one single terminal window manager. On my Ubuntu 10.04 Server Edition,  Screen  has been installed by default. But, in Linux Mint does not have screen installed by default, I need to install it first using  apt-get command  before using it. Please follow your distribution installation procedure to install screen. # apt-get install screen (On Debian based Systems) # yum install screen (On RedHat based Systems) Actually, Screen is a very good command in Linux which is hidden inside hundreds of Linux commands. Let’s start to see the function of Screen. Just type screen at the command prompt. Then the screen will show with interface exactly as the command prompt. pungki@mint ~ $ screen Show screen parame

dstat

Image
What is dstat Dstats is a versatile resource statistic tool. This tool combines the ability of iostat, vmstat, netstat, and ifstat. Dstat allow us to monitor the server resources  in real-time . When you need to gather those information real-time, dstat will fit your need. Features But dstat is not only combination of iostat, vmstat, netstat and ifstat. Here’s a list of what dstat can do. Combines vmstat, iostat, ifstat, netstat information and more Shows stats in exactly the same timeframe Enable/order counters as they make most sense during analysis/troubleshooting Modular design Written in python so easily extendable for the task at hand Easy to extend, add your own counters (please contribute those) Includes many external plugins to show how easy it is to add counters Can summarize grouped block/network devices and give total numbers Can show interrupts per device Very accurate timeframes, no timeshifts when system is stressed Shows exact units and limits conver

rsync

To sync the contents of  dir1  to  dir2  on the same system, type: rsync -r dir1/ dir2 The  -r  option means recursive, which is necessary for directory syncing. We could also use the  -a  flag instead: rsync -a dir1/ dir2