Archive for the 'Solaris' Category

 

 

Oct 13 2009

Command History with Arrow Keys in Ksh

Published by under Aix,Linux,Misc,Solaris

Arrows aren’t used in ksh as a default. To enable command history like in Bash, add the following lines in the .profile or .kshrc file: # Switch to Emacs mode # Only Emacs mode lets you make use of arrow keys set -o emacs # Go back in command history (up arrow) alias __A=’^P’ # […]

One response so far

Dec 21 2008

Linux and Solaris Package Managers

Published by under Linux,Solaris

Here’s a package managers basic commands quick reminder/comparative for (in this order) – Linux Debian/Ubuntu, – Linux Redhat/Suse and – Solaris/OpenSolaris.   rpm and dpkg are basic package managers while yum (rpm) and apt-get/aptitude (dpkg) manage dependancies and (online) repositories.   # List ALL installed packages dpkg –list rpm -qa | grep rpm pkginfo   […]

No responses yet

Nov 07 2008

Swap File

Published by under Linux,Solaris

Need more swap but not more disk space to create a partition? Add a temporary swap file.   Solaris [root@solaris]# mkfile 1024m /export/tmpswap [root@solaris]# swap -a /export/tmpswap [root@solaris]# swap -l swapfile  dev  swaplo   blocks  free /dev/dsk/c1t0d0s1   55,65   8  4160824   4160824  /export/tmpswap  –  8  2097144  2097144   Linux [root@linux]# dd if=/dev/zero of=tmpswap bs=1024 count=10240 [root@linux]# 10240+0 […]

No responses yet