<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>shell &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="https://lifelinux.com/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Wed, 30 Jan 2013 10:51:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.15</generator>
	<item>
		<title>What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</title>
		<link>https://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/</link>
					<comments>https://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/#comments</comments>
		
		<dc:creator><![CDATA[Linux Killer]]></dc:creator>
		<pubDate>Tue, 29 Jan 2013 19:52:34 +0000</pubDate>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux server]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[rsync command]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[variables]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=1446</guid>

					<description><![CDATA[<p>There are a lot of people do not know what these variables and how they can be used , this Variables exist in php.ini file , the php.ini file is contains settings PHP on server , and for each variable in the php.ini file have a special role and can be disabled and activated with ON and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/">What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>There are a lot of people do not know what these variables and how they can be used , this Variables exist in php.ini file , the php.ini file is contains settings PHP on server , and for each variable in the php.ini file have a special role and can be disabled and activated with ON and Off</p>
<p><span id="more-1446"></span></p>
<p>Disable = Off</p>
<p>Activate = On</p>
<p>So now I will explain to you the benefit of each function and put you a choice in the activation and disable</p>
<pre>expose_php</pre>
<p>Is a a property from which to see PHP version on the server so disabling means not making available to the hacker to know the version of PHP</p>
<pre>allow_url_fopen</pre>
<p>When you disable this function no one will be able to contain another link in a specific page , but some scripts like AM4SS &#8211; Vbulletin need this function for the arrival of notifications within the Admin Control Panel</p>
<pre>register_globals</pre>
<p>When you Desable this function become possible to control the content of php files difficult and does not allow the Edited only by the owner<br />
<strong>So now we come to the disabled and activation of these properties</strong></p>
<p>Enter in the shell and modify the php.ini file with the following command</p>
<pre>nano /usr/local/lib/php.ini</pre>
<p>By pressing Ctrl + W will open new box writes what you want to search for inside file</p>
<p>Looking for the variable you want edited for example</p>
<pre>allow_url_fopen</pre>
<p>You&#8217;ll find as follows :</p>
<pre>allow_url_fopen = On</pre>
<p>Mark value after the mark (=) On for activate Off  for disabled , Apply it with the rest of the properties , After completion of the amendment to click on the keys CTRL + X + Y then Enter button</p>
<p>You will see a new command line in the main interface in shell<br />
Observation : you must restart Apache after any amendment to this file for edited is defined in the php and Apache<br />
To restart apache :</p>
<pre>service httpd restart</pre>
<p>Or you can restart apache using server Control Panel WHM In a private box to restart services From there you can restart any service you want to.</p>
<g:plusone href="https://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/">What is the role of this variables in php.ini file (expose_php &#8211; allow_url_fopen &#8211; register_globals) ?</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/what-is-the-role-of-this-variables-in-php-ini-file-expose_php-allow_url_fopen-register_globals/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Clear Shell History On Centos / RedHat</title>
		<link>https://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/</link>
					<comments>https://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/#comments</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Mon, 22 Aug 2011 05:50:26 +0000</pubDate>
				<category><![CDATA[Bash Shell]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[~/.bash_history]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[command history]]></category>
		<category><![CDATA[export LESSHISTFILE="-"]]></category>
		<category><![CDATA[history -c]]></category>
		<category><![CDATA[history command]]></category>
		<category><![CDATA[history type]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unset HISTFILE]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=945</guid>

					<description><![CDATA[<p>To clear shell history, type the following command: $ history -c Or remove .bash_history file $ rm -rf ~/.bash_history Turn off shell history To turn off shell history for all users, type the following command as root # echo "unset HISTFILE" >> /etc/profile To turn off shell history for a specific user, type the following [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/">How To Clear Shell History On Centos / RedHat</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>To clear shell history, type the following command:</p>
<pre>
$ history -c
</pre>
<p>Or remove .bash_history file</p>
<pre>
$ rm -rf ~/.bash_history
</pre>
<p><span id="more-945"></span></p>
<h2>Turn off shell history</h2>
<p>To turn off shell history for all users, type the following command as root</p>
<pre>
# echo "unset HISTFILE" >> /etc/profile
</pre>
<p>To turn off shell history for a specific user, type the following command</p>
<pre>
$ echo "unset HISTFILE" >> /home/USER/.bash_profile
</pre>
<h2>Display shell history</h2>
<p>To display shell history, type the following command</p>
<pre>
$ history | more
</pre>
<p>Sample outputs</p>
<pre>
74  exit
75  cd /etc/samba/
76  ll
77  vi smb.conf
78  exit
79  cd /home/site.com/scripts/
80  dir
81  cd cassandra/
82  dir
83  cd conf/
84  duir
...
</pre>
<g:plusone href="https://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/">How To Clear Shell History On Centos / RedHat</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-clear-shell-history-on-centos-redhat/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How To Find The Linux Kernel Version ?</title>
		<link>https://lifelinux.com/how-to-find-the-linux-kernel-version/</link>
					<comments>https://lifelinux.com/how-to-find-the-linux-kernel-version/#respond</comments>
		
		<dc:creator><![CDATA[lifeLinux]]></dc:creator>
		<pubDate>Mon, 30 May 2011 02:40:58 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[/proc/version]]></category>
		<category><![CDATA[kernel linux]]></category>
		<category><![CDATA[linux kernel version]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[release numbers]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[stable releases]]></category>
		<category><![CDATA[stable version]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[uname]]></category>
		<category><![CDATA[uname command]]></category>
		<category><![CDATA[version numbers]]></category>
		<category><![CDATA[x86]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=870</guid>

					<description><![CDATA[<p>To find the linux kernel version, you should login and type the following command $ uname -r Sample output 2.6.18-194.32.1.el5 A second way is to look at the /proc/version file, type the following command $ cat /proc/version Sample output Linux version 2.6.18-194.32.1.el5 (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-find-the-linux-kernel-version/">How To Find The Linux Kernel Version ?</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>To find the linux kernel version, you should login and type the following command</p>
<pre>$ uname -r</pre>
<p><span id="more-870"></span><br />
Sample output</p>
<pre>2.6.18-194.32.1.el5</pre>
<p>A second way is to look at the /proc/version file, type the following command</p>
<pre>$ cat /proc/version</pre>
<p>Sample output</p>
<pre>Linux version <span style="color: #ff0000;">2.6.18-194.32.1.el5</span> (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 17:52:25 EST 2011</pre>
<p>A third way is to look at the contents of the dmesg command, type the following command</p>
<pre>$ dmesg | grep Linux</pre>
<p>Sample output</p>
<pre>Linux version <span style="color: #ff0000;">2.6.18-194.32.1.el5</span> (mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Wed Jan 5 17:52:25 EST 2011
SELinux:  Initializing.
SELinux:  Starting in permissive mode
Linux Plug and Play Support v0.97 (c) Adam Belay
SELinux:  Registering netfilter hooks
Linux agpgart interface v0.101 (c) Dave Jones
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks</pre>
<g:plusone href="https://lifelinux.com/how-to-find-the-linux-kernel-version/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="https://lifelinux.com/how-to-find-the-linux-kernel-version/">How To Find The Linux Kernel Version ?</a> appeared first on <a rel="nofollow" href="https://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lifelinux.com/how-to-find-the-linux-kernel-version/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
