<?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>Ahmet Sayar &#187; linux</title>
	<atom:link href="http://www.ahmetsayar.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ahmetsayar.com</link>
	<description>Personal Web Page</description>
	<lastBuildDate>Thu, 29 Apr 2010 20:40:35 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux Commands In A Nut Shell For Advanced Users</title>
		<link>http://www.ahmetsayar.com/linux-commands-in-a-nut-shell-for-advanced-users/</link>
		<comments>http://www.ahmetsayar.com/linux-commands-in-a-nut-shell-for-advanced-users/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 21:10:29 +0000</pubDate>
		<dc:creator>ahmet</dc:creator>
				<category><![CDATA[academic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux commands]]></category>

		<guid isPermaLink="false">http://www.ahmetsayar.com/?p=21</guid>
		<description><![CDATA[[To give read and write permissions on a file biglist to all]
&#62;chmod a+rw fname
[killing a process]
&#62; kill prcNumber
[if the process refuses to be killed]
&#62; kill -9 prcnUmber
[To check your current quota and how much of it you have used]
&#62; quota -v
[To find out how much space is left on the fileserver]
&#62;df .
[Zipping a file]
&#62;gzip filename
[Displaying [...]]]></description>
			<content:encoded><![CDATA[<p>[To give read and write permissions on a file biglist to all]<br />
&gt;chmod a+rw fname</p>
<p>[killing a process]<br />
&gt; kill prcNumber<br />
[if the process refuses to be killed]<br />
&gt; kill -9 prcnUmber</p>
<p>[To check your current quota and how much of it you have used]<br />
&gt; quota -v</p>
<p>[To find out how much space is left on the fileserver]<br />
&gt;df .</p>
<p>[Zipping a file]<br />
&gt;gzip filename</p>
<p>[Displaying zipped file]<br />
&gt;zcat filename.gz</p>
<p>[Unzippiing a file]<br />
&gt;gunzip flename.gz</p>
<p>[To see the differences in two files]<br />
&gt;diff file1 file2</p>
<p>[To learn ip address of linux machine]<br />
&gt;nslookup gf12.ucs.indiana.edu</p>
<p>[Finding a file based on the name]<br />
&gt;find . -name “*.txt”</p>
<p>[Finding the files based on size]<br />
&gt;find . -size +1M</p>
<p>[Recall last command starting with xxx]<br />
&gt;!xxx</p>
<p>[You can increase the size of the history buffer by typing]<br />
set history=100</p>
<p>[Listing the environment variables]<br />
&gt;printenv</p>
<p>[Changing the password]<br />
&gt;passwd</p>
<p>IF PICO is not running in a system, use NONO !!!!!</p>
<p>[searching a text overall directory tree]<br />
find . -exec grep -l -i &#8216;the term u search&#8217; {} \;</p>
<p>[Active process searching]<br />
&gt;ps -ef | grep asayar</p>
<p>[System information]<br />
&gt;df</p>
<p>[scp -Secure Copy]<br />
&gt;scp servo@gf7.ucs.indiana.edu:/home/servo/wfs/run-wfs.sh .</p>
<p>[For cpu info]<br />
&gt;cat /proc/cpuinfo</p>
<p>[setting display]<br />
&gt;setenv DISPLAY ip=0.0</p>
<p>[list the running processes for asayar]<br />
&gt;ps -u asayar<br />
&gt;ps -fu asayar</p>
<p>[searching command]<br />
&gt;whereis [command_name]<br />
&gt;which [command_name]</p>
<p>[save the current directory]<br />
&gt;pshd .</p>
<p>[get the last saved directory]<br />
&gt;popd</p>
<p>[creating alies]<br />
&gt; alies dir=’ls’</p>
<p>[secure ftp connection]<br />
&gt;sftp asayar@xxx.xx.xx.edu</p>
<p>[secure shell connection]<br />
&gt;ssh asayar@xxx.xx.xx.edu</p>
<p>[info about disk]<br />
&gt;df: disk free<br />
&gt;du: disk usage<br />
&gt;du -s display total disk size</p>
<p>[getting info about Operating system]<br />
&gt;uname -a</p>
<p>[getting info about Memory]<br />
&gt;top</p>
<p>[info about active process of a user]<br />
&gt;ps -u user_name</p>
<p>[shows the active path]<br />
&gt;pwd</p>
<p>[display some parts of the file_name]<br />
&gt;head file_name<br />
&gt;head -20 file_name     first 20 lines<br />
&gt;tail file_name<br />
&gt;tail -30 file_name      last 30 lines</p>
<p>[create and empty file]<br />
&gt;touch</p>
<p>[word count of a file]<br />
&gt;wc file_name<br />
#of_lines #of_words  #of_characters</p>
<p>[how many users on the system]<br />
&gt;who</p>
<p>[zip and unzip commands]<br />
&gt;compress myout<br />
&gt;uncompress myout.z<br />
&gt;gzip myout<br />
&gt;gunzip myout.z<br />
&gt;gtar xvf xxx.tar.gz   :extracting tar file<br />
&gt;jar cvf myWar.war<br />
&gt;jar xvf myWar.war<br />
&gt;tar cvf concheck.tar *</p>
<p>&gt; cd /   : takes you to root</p>
<p>&gt;history   : all the commands</p>
<p>&gt;man &#8216;command_name&#8217;</p>
<p>&gt;echo s*   :all the files whose names start with s</p>
<p>&gt;setenv DISPLAY ip:0.0</p>
<p>&gt; find &#8216;path&#8217; -name &#8216;file_name&#8217;</p>
<p>kill -9 pronumber</p>
<p>ps -fu asayar<br />
ps -u asayar</p>
<p>ls &gt; myout.txt<br />
ls &gt;&gt; myout.txt</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ahmetsayar.com/linux-commands-in-a-nut-shell-for-advanced-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
