Can you type in the file name and full path of the configuration file - ProProfs Discuss
Advertisement

Can you type in the file name and full path of the configuration file where you would set the variable HISTSIZE for all users of the system?

Asked by Lathrop, Last updated: Nov 25, 2021

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Sep 08, 2016

/etc/profile-explanation: /etc/profile is the global login scripts, parsed by all users withborune-style shells including bash and sh. usually used to set the default path,values assign on variable, startup program execution.sample /etc/profile configuration# /etc/profile# system wide environment and startup programs, for login setup# functions and aliases go in /etc/bashrcpathmunge () {if ! Echo $path | /bin/egrep -q (^|:)$1($|:) ; thenif [ $2 = after ] ; thenpath=$path:$1elsepath=$1:$pathfifi}# path manipulationif [ `id -u` = 0 ]; thenpathmunge /sbinpathmunge /usr/sbinpathmunge /usr/local/sbinfipathmunge /usr/x11r6/bin after# no core files by defaultulimit -s -c 0 > /dev/null 2>&1user=`id -un`logname=$usermail=/var/spool/mail/$userhostname=`/bin/hostname`histsize=1000if [ -z $inputrc -a ! -f $home/.inputrc ]; theninputrc=/etc/inputrcfiexport path user logname mail hostname histsize inputrcfor i in /etc/profile.d/*.sh ; doif [ -r $i ]; then. $ifidoneunset iunset pathmunge
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.