Tony Ly wrote:

Hi!

Ca'c ba.n cho ho?i:

1/
Trong Redhat thi` ca'c bie^'n
      HISTFILESIZE=
      HISTSIZE=
ddu+o+.c dda(. ta.i /etc/profile.

Nhu+ng trong Debian (Sarge) gia? su+? add va`o /etc/profile
HISTFILESIZE=0
HISTSIZE=20

thi` sau khi reboot, le^.nh history va^~n cho ra mo^.t output da`i
tho`n.  Ca^`n add va`o dda^u dde^? pha't huy ta'c du.ng?

m k h _ s g n




Trong Sarge (default bash shell), thi` cu~ng gio^'ng nhu+ Redhat tho^i. Ba'c muo^'n bie^'t variable HISTSIZE co' ddu'ng ko thi` bo? command "echo
$HISTSIZE" tru+o+'c va` sau HISTSIZE=20 thi` se~ ro~. Thi' du.


......
......
echo $HISTSIZE
HISTSIZE=20
echo $HISTSIZE

Ba'c se~ tha^'y 2 gi'a tri. cua? HISTSIZE la` 500 (default) va` 20.  Ne^'u
ko thi` cha('c co' va^'n dde^` gi` ro^`i.  Ne^'u va^.y thi` post ca'i
profile file le^n ba` con xem.



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
VietLUG-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vietlug-users



No' dda^y:


dhcppc0:/home/deban# echo HISTSIZE HISTSIZE dhcppc0:/home/deban# echo HISTFILESIZE HISTFILESIZE dhcppc0:/home/deban# cat /etc/profile # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi


if [ "$PS1" ]; then
 if [ "$BASH" ]; then
   PS1='[EMAIL PROTECTED]:\w\$ '
 else
   if [ "`id -u`" -eq 0 ]; then
     PS1='# '
   else
     PS1='$ '
   fi
 fi
fi

export PATH

umask 022



dhcppc0:/home/deban# cat /home/deban/.bash_profile
# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# the rest of this file is commented out.

# set variable identifying the chroot you work in
#if [ -f /etc/debian_chroot ]; then
#  debian_chroot=$(cat /etc/debian_chroot)
#fi

# include .bashrc if it exists
#if [ -f ~/.bashrc ]; then
#    . ~/.bashrc
#fi

# set PATH so it includes user's private bin if it exists
#if [ -d ~/bin ] ; then
#    PATH=~/bin:"${PATH}"
#fi

# do the same with MANPATH
#if [ -d ~/man ]; then
#    MANPATH=~/man:"${MANPATH}"
#    export MANPATH
#fi
dhcppc0:/home/deban#






------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ VietLUG-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vietlug-users

Trả lời cho