Hozzászólások
Hali!
Hogyan lehet bash-ban a HISTSIZE-ot alapbeálliításként 500-ról pl 1000-re árírni? (tehát hogy default-ban ennyi legyen, újraindításnál is és minden felhasználónak - system-wide?)
Üdv:
Ádám
- A hozzászóláshoz be kell jelentkezni
[quote:d4bba7dd6d="reviczky"]
Hogyan lehet bash-ban a HISTSIZE-ot alapbeálliításként 500-ról pl 1000-re árírni? (tehát hogy default-ban ennyi legyen, újraindításnál is és minden felhasználónak - system-wide?)
/etc/profile ?
- A hozzászóláshoz be kell jelentkezni
man bash:
When bash is invoked as an interactive login shell, or as
a non-interactive shell with the --login option, it first
reads and executes commands from the file /etc/profile, if
that file exists. After reading that file, it looks for
~/.bash_profile, ~/.bash_login, and ~/.profile, in that
order, and reads and executes commands from the first one
that exists and is readable. The --noprofile option may
be used when the shell is started to inhibit this behav
ior.
When a login shell exits, bash reads and executes commands
from the file ~/.bash_logout, if it exists.
When an interactive shell that is not a login shell is
started, bash reads and executes commands from ~/.bashrc,
if that file exists. This may be inhibited by using the
--norc option. The --rcfile file option will force bash
to read and execute commands from file instead of
~/.bashrc.
- A hozzászóláshoz be kell jelentkezni
ok, köszi!
gondoltam erre is, csak azt hittem hogy valami "HISTSIZE=500" -at kell keresnem, de ilyen bejegyzés nem volt.
- A hozzászóláshoz be kell jelentkezni
[quote:dd9e0717ce="reviczky"]gondoltam erre is, csak azt hittem hogy valami "HISTSIZE=500" -at kell keresnem, de ilyen bejegyzés nem volt.
Nem fognak minden beepitett defaultot beleirni egy alap /etc/profile-ba, az piiiiiicit iszonyat nagy lenne es halal felesleges :)
=> a man a baratod! Ha pedig Emacs user vagy, es ferfi, akkor M-x woman (es akkor a baratnod lesz, hehehe >;)
- A hozzászóláshoz be kell jelentkezni