<?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>Computing fun with Nix,Bsd,Windows Security Tips and Hacking Tricks &#187; linux tips</title>
	<atom:link href="http://it-hacked.com/tag/linux-tips/feed" rel="self" type="application/rss+xml" />
	<link>http://it-hacked.com</link>
	<description>IT tips and tricks in Linux, Windows and Hacking</description>
	<lastBuildDate>Wed, 30 Sep 2009 09:29:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>About Vim as the Best Text Editor Tool in Any Linux or Nix* Environment</title>
		<link>http://it-hacked.com/about-vim-as-the-best-text-editor-tool-in-any-linux-or-nix-environment</link>
		<comments>http://it-hacked.com/about-vim-as-the-best-text-editor-tool-in-any-linux-or-nix-environment#comments</comments>
		<pubDate>Tue, 16 Jun 2009 16:50:11 +0000</pubDate>
		<dc:creator>it-hacked.com</dc:creator>
				<category><![CDATA[Linux-*Nix]]></category>
		<category><![CDATA[editor tool]]></category>
		<category><![CDATA[linux tips]]></category>

		<guid isPermaLink="false">http://it-hacked.com/?p=47</guid>
		<description><![CDATA[Let&#8217;s talk a bit about Vim or Vi.  As a hacker, I think it&#8217;s important to know and learn Vim as a geek editor tool in the world.  For me, it&#8217;s the best text editor in Linux because of rich of features, flexibility and fast.  You can open codes in PHP or [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s talk a bit about Vim or Vi.  As a hacker, I think it&#8217;s important to know and learn Vim as a geek editor tool in the world.  For me, it&#8217;s the best text editor in Linux because of rich of features, flexibility and fast.  You can open codes in PHP or Perl or C or C++ or Java or Python or Ruby in very nice layout of colors !!<span id="more-47"></span></p>
<p>One of the best thing of Vi is, it&#8217;s always installed as default in any Linux Operating System Distribution.  So you will never miss it.  If you are Java or PHP developer, I am sure you will miss Eclipse, but when you developing it online, Vim is the fastest.  You can the automatic function completion too, as well as the list of functions.  Hehe, so do not think that Vim is totally shit.</p>
<p>The features I used the most (I might update this post to list all the features I ever used, because it&#8217;s too many and I always forget everything, lol) :</p>
<ul>
<li>Automatic Word Completion</li>
<li>Splitting windows Horizontally or Vertically (This is the best thing I like)</li>
<li>Automatic Function Completion + its definition and arguments description (This is the second best I like)</li>
<li>Buffers management about all opened files</li>
<li>Jump to the file and the code which as the function() using the combination of ctags (ctags is at tool to mapping all of your codes functions and classes)</li>
<li>Have a lot of shortcut to do a lot of stuff almost everything which this the main reason that make you faster editing files rather than using menus and mouse (I even cannot remember it all the shortcut, it&#8217;s the way too many out there&#8230;)</li>
</ul>
<p>In the next post, I will surely talk about all of the useful command and shortcut</p>
]]></content:encoded>
			<wfw:commentRss>http://it-hacked.com/about-vim-as-the-best-text-editor-tool-in-any-linux-or-nix-environment/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>7 Useful Linux Operating System Commands</title>
		<link>http://it-hacked.com/learn-useful-linux-operating-system-commands</link>
		<comments>http://it-hacked.com/learn-useful-linux-operating-system-commands#comments</comments>
		<pubDate>Sun, 07 Jun 2009 10:38:49 +0000</pubDate>
		<dc:creator>it-hacked.com</dc:creator>
				<category><![CDATA[Linux-*Nix]]></category>
		<category><![CDATA[linux tips]]></category>

		<guid isPermaLink="false">http://it-hacked.com/?p=23</guid>
		<description><![CDATA[When you know what Linux or Nix or Unix commands that I used everyday&#8230; Now, It&#8217;s the time that you should know these very useful administration commands&#8230;Enjoy it&#8230; !!
1. jobs
2. bg
3. fg
4. nice
5. renice
6. at
7. top
Anything missing, please add more  
1. jobs
Command Description
Lists the jobs that you are running in the background and in [...]]]></description>
			<content:encoded><![CDATA[<p>When you know what <a href="http://it-hacked.com/i-am-using-this-linux-or-nix-or-bsd-commands-everyday">Linux or Nix or Unix commands that I used everyday&#8230;</a> Now, It&#8217;s the time that you should know these very useful administration commands&#8230;Enjoy it&#8230; !!</p>
<p><a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#jobs">1. jobs</a><br />
<a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#bg">2. bg</a><br />
<a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#fg">3. fg</a><br />
<a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#nice">4. nice</a><br />
<a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#renice">5. renice</a><br />
<a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#at">6. at</a><br />
<a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#top">7. top</a></p>
<p>Anything missing, please add more <img src='http://it-hacked.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> <a href="http://it-hacked.com/learn-useful-linux-operating-system-commands#top"><span id="more-23"></span></a></p>
<p><strong><a name="jobs">1. jobs</a><br />
Command Description</strong><br />
Lists the jobs that you are running in the background and in the foreground.</p>
<p><strong>Syntax</strong><br />
jobs [-p | -l] [-n] [-p] [-x] [job id]<br />
If the prompt is returned with nothing and no information printed, that means no jobs are present</p>
<p><strong>Useful options</strong><br />
jobs -p : list only the PID of process group leader<br />
jobs -l : list only jobs that have change status since last notified by their status<br />
jobs -r : resrict output to running jobs<br />
jobs -s : restrict output to stopped jobs</p>
<p><strong><a name="bg">2. bg</a><br />
Command Description</strong><br />
place a job in a background.  Normally user can run a job in a background, by adding ampersand (&amp;) at the end of the command, example &#8220;sleep 10 &amp;&#8221;.  bg is a shell command and it&#8217;s used to move a job from foreground to the background, as if it had been started with ampersand (&amp;).  If JOB is not present, the shell&#8217;s notion of the current job is used.</p>
<p><strong>Examples</strong><br />
a. Type &#8220;sleep 100&#8243; &#8211;&gt; Start a dummy job in foreground. (sleep = waits an &#8220;x&#8221; amount of second).  Press Ctrl+z to stop the current job.<br />
b. Type &#8220;bg&#8221; &#8211;&gt; Move the last stopped job to background<br />
c. Type &#8220;sleep 150&#8243; &#8211;&gt; Dummy job 1.  Press Ctrl+z to stop the current job<br />
d. Type &#8220;sleep 140&#8243; &#8211;&gt; Dummy job 2.  Press Ctrl+z to stop the current job<br />
e. Type &#8220;sleep 130&#8243; &#8211;&gt; Dummy job 3.  Press Ctrl+z to stop the current job<br />
f. Type &#8220;jobs&#8221; &#8211;&gt; List all active jobs.<br />
g. Type &#8220;bg 2&#8243; &#8211;&gt; Move the second active job to background</p>
<p><strong><a name="fg">3. fg</a><br />
Command Description</strong><br />
Continues a stopped job by running it in the foreground</p>
<p><strong>Example</strong><br />
If you are opening a file using vi, you can try Ctrl+z to let it run in the background, it will quit the vi and back to shell.  Then try type &#8220;jobs&#8221;, from there you can see what is the processes running in the background, which is those programs that you press Ctrl+z.</p>
<p><strong>Follow all the steps below in order:</strong><br />
a. vi newfile<br />
b. Press &#8220;Ctrl+z&#8221;<br />
c. vi newfile2<br />
d. Press &#8220;Ctrl+z&#8221;<br />
e. type &#8220;jobs&#8221;<br />
f. fg 2 &#8211;&gt; You are opening the &#8220;vi newfile2&#8243;.  You can determine the job id by running bg command.<br />
g. Press &#8220;Ctrl+z&#8221;<br />
h. fg &#8211;&gt; You are opening back to the &#8220;vi newfile&#8221; because it&#8217;s the first job were it was left off.</p>
<p><strong><a name="nice">4. nice</a><br />
Command Description</strong><br />
Run a command with modified priority.  It is used to run the given command with its scheduling priority adjusted.  Priority range goes from -20 (highest priority) to 19 (lowest priority)</p>
<p><strong>Examples:</strong><br />
a. $ nice &#8211;&gt; Prints the current priority value<br />
b. $ nice ls &#8211;&gt; Increment the priority value of the ls command by 10 (Default value) and run.<br />
c. $ nice -n 5 ls &#8211;&gt; Increment the priority value of the ls command by 5 and run.<br />
d. # nice -n -2 ls &#8211;&gt; Decrement the priority value of the ls command by -2 and run. (Only root can decrement, note that the shell is &#8220;#&#8221; which usually is a superuser or root)</p>
<p>Note that incrementing the priority value will reduce the priority level and vice versa.  Priority range is -20(high) to 19 (low).</p>
<p><strong><a name="renice">5. renice</a><br />
Command Description</strong><br />
renice is used to alters the scheduling priority of one or more running processes, priority ranges goes from -20 (highest priority) to 19 (lowest priority).</p>
<p><strong>Examples</strong><br />
a. $ renice +1 123 &#8211;&gt; Increment the priority value of a process, which has process ID number 123.<br />
b. # renice -1 123 &#8211;&gt; Decrement the priority value of a process, which has process ID number 123.  (Only root user can decrement).<br />
c. $ renice +1 -p 123 -p 456 &#8211;&gt; Increment the priority value of a process 123 and process ID 456.<br />
d. $ renice +1 -u admin &#8211;&gt; Increment the priority value of all processes which is owned by a user called &#8220;admin&#8221;.<br />
e. $ renice +1 -g student &#8211;&gt; Increment the priority value of all processes, which is owned by a group called &#8220;student&#8221;</p>
<p>Note that incrementing the priority value will reduce the priority level and vice versa.  Priority range is -20 (highest) to 19 (lowest).</p>
<p><strong><a name="at">6. at</a><br />
Command Description</strong><br />
Schedules a command to be ran at a particular time, such as a print job late at night.</p>
<p><strong>Syntax</strong><br />
at &#8211;&gt; Executes commands at a specified time<br />
atq &#8211;&gt; Lists the user&#8217;s pending jobs, unless the user is the superuser.  In that case, everbody&#8217;s jobs are listed.  The format of the output lines (one for each job); job number, date, hour, job class.<br />
atrm &#8211;&gt; Deletes jobs, identified by their job number.<br />
batch &#8211;&gt; Executes commands when system load levels permit. In another words, when the load average drops below 1.5, or the value specified in the invocation of atrun.</p>
<p><strong>Examples</strong><br />
a. $ at -m 01:35 &lt; atjob &#8211;&gt; Run the commands listed in the &#8216;atjob&#8217; file at 1:35AM, in addition all output that is generated from job mail to the user running the task. When this command has been successfully enter you should receive a prompt similar to the below example.<br />
commands will be executed using /bin/sh<br />
job 1072250520.a at Sun May 24 00:22:00 2009<br />
b. $ at -l &#8211;&gt; This command will list each of the scheduled jobs as seen below.<br />
1072250520.a Sun May 24 00:22:00 2009<br />
c. $ at -r 1072250520.a\ &#8211;&gt; Deletes the job just created.<br />
or<br />
d. $ atrm 23 = Deletes job 23.</p>
<p>If you wish to create a job that is repeated you could modify the file that executes the commands with another command that recreates the job or better yet use the crontab command.  Note that Performing just the at command at the prompt will give you an error &#8220;Garbled Time&#8221;, this is a standard error message if no switch or time setting is given.</p>
<p><strong><a name="top">7. top</a><br />
Command Description</strong><br />
Provide information (frequently refreshed, or you can type Enter or Space to refresh it) about the most CPU-intensive, Memory or anything about processes currently running<br />
<strong>Description of the fields</strong><br />
<strong>a: PID</strong> — Process Id<br />
The task’s unique process ID, which periodically wraps, though never restarting at zero.<br />
<strong>b: PPID </strong>— Parent Process Pid<br />
The process ID of a task’s parent.<br />
<strong>c: RUSER</strong> — Real User Name<br />
The real user name of the task’s owner.<br />
<strong>d: UID</strong> — User Id<br />
The effective user ID of the task’s owner.<br />
<strong>e: USER</strong> — User Name<br />
The effective user name of the task’s owner.<br />
<strong>f: GROUP</strong> — Group Name<br />
The effective group name of the task’s owner.<br />
<strong>g: TTY</strong> — Controlling Tty<br />
The name of the controlling terminal. This is usually the device (serial port, pty, etc.) from which the process was started, and which it uses for input or output. However, a task need not be associated with a terminal, in which case you’ll see ‘?’ displayed.<br />
<strong>h: PR</strong> — Priority<br />
The priority of the task.<br />
<strong>i: NI</strong> — Nice value<br />
The nice value of the task. A negative nice value means higher priority, whereas a positive nice value means lower priority. Zero in this field simply means priority will not be adjusted in determining a task’s dispatchability./dd&gt;<br />
<strong>j: P</strong> — Last used CPU (SMP)<br />
A number representing the last used processor. In a true SMP environment this will likely change frequently since the kernel intentionally uses weak affinity. Also, the very act of running top may break this weak affinity and cause more processes to change CPUs more often (because of the extra demand for cpu time).<br />
<strong>k: %CPU</strong> — CPU usage<br />
The task’s share of the elapsed CPU time since the last screen update, expressed as a percentage of total CPU time. In a true SMP environment, if ‘Irix mode’ is Off, top will operate in ‘Solaris mode’ where a task’s cpu usage will be divided by the total number of CPUs. You toggle ‘Irix/Solaris’ modes with the ‘I’ interactive command.<br />
<strong>l: TIME</strong> — CPU Time<br />
Total CPU time the task has used since it started. When ‘Cumulative mode’ is On, each process is listed with the cpu time that it and its dead children has used. You toggle ‘Cumulative mode’ with ‘S’, which is a command-line option and an interactive command. See the ‘S’ interactive command for additional information regarding this mode.<br />
<strong>m: TIME+</strong> — CPU Time, hundredths<br />
The same as ‘TIME’, but reflecting more granularity through hundredths of a second.<br />
<strong>n: %MEM</strong> — Memory usage (RES)<br />
A task’s currently used share of available physical memory.<br />
<strong>o: VIRT</strong> — Virtual Image (kb)<br />
The total amount of virtual memory used by the task. It includes all code, data and shared libraries plus pages that have been swapped out.<br />
<strong>VIRT = SWAP + RES.</strong><br />
<strong>p: SWAP</strong> — Swapped size (kb)<br />
The swapped out portion of a task’s total virtual memory image.<br />
<strong>q: RES</strong> — Resident size (kb)<br />
The non-swapped physical memory a task has used.<br />
<strong>RES = CODE + DATA.</strong><br />
<strong>r: CODE</strong> — Code size (kb)<br />
The amount of physical memory devoted to executable code, also known as the ‘text resident set’ size or TRS.<br />
<strong>s: DATA</strong> — Data+Stack size (kb)<br />
The amount of physical memory devoted to other than executable code, also known as the ‘data resident set’ size or DRS.<br />
<strong>t: SHR</strong> — Shared Mem size (kb)<br />
The amount of shared memory used by a task. It simply reflects memory that could be potentially shared with other processes.<br />
<strong>u: nFLT</strong> — Page Fault count<br />
The number of major page faults that have occurred for a task. A page fault occurs when a process attempts to read from or write to a virtual page that is not currently present in its address space. A major page fault is when disk access is involved in making that page available.<br />
<strong>v: nDRT </strong>— Dirty Pages count<br />
The number of pages that have been modified since they were last written to disk. Dirty pages must be written to disk before the corresponding physical memory location can be used for some other virtual page.<br />
<strong>w: S</strong> — Process Status<br />
The status of the task which can be one of:<br />
<strong>&#8216;D&#8217;</strong> = uninterruptible sleep<br />
<strong>&#8216;R&#8217;</strong> = running<br />
<strong>&#8216;S&#8217;</strong> = sleeping<br />
<strong>&#8216;T&#8217; </strong>= traced or stopped<br />
<strong>&#8216;Z&#8217; </strong>= zombieTasks shown as running should be more properly thought of as ‘ready to run’ — their task_struct is simply represented on the Linux run-queue. Even without a true SMP machine, you may see numerous tasks in this state depending on top’s delay interval and nice value.<br />
<strong>x: Command</strong> — Command line or Program name<br />
Display the command line used to start a task or the name of the associated program. You toggle between command line and name with ‘c’, which is both a command-line option and an interactive command.When you’ve chosen to display command lines, processes without a command line (like kernel threads) will be shown with only the program name in parentheses, as in this example:( mdrecoveryd )</p>
<p>Either form of display is subject to potential truncation if it’s too long to fit in this field’s current width. That width depends upon other fields selected, their order and the current screen width. Note that The &#8216;Command&#8217; field/column is unique, in that it is not fixed-width. When displayed, this column will be allocated all remaining screen width (up to the maximum 512 characters) to provide for the potential growth of program names into command lines.</p>
<p><strong>y: WCHAN</strong> — Sleeping in Function<br />
Depending on the availability of the kernel link map (’System.map’), this field will show the name or the address of the kernel function in which the task is currently sleeping. Running tasks will display a dash (’-&#8217;) in this column.Note: By displaying this field, top’s own working set will be<br />
increased by over 700Kb. Your only means of reducing that overhead<br />
will be to stop and restart top.<br />
<strong>z: Flags</strong> — Task Flags<br />
This column represents the task’s current scheduling flags which are expressed in hexadecimal notation and with zeros suppressed. These flags are officially documented in . Less formal documentation can also be found on the ‘Fields select’ and ‘Order fields’ screens.</p>
<p><strong>Interactive commands</strong><br />
While top is running you may issue some options that will interact immediately with top these options are:<br />
<strong>h</strong> &#8211;&gt; Help, displays a summary of command that will modify the behavior of top<br />
<strong>k</strong> &#8211;&gt; Kills a process, you will be able to kill only your own processes, unless you are running top as root<br />
<strong>n</strong> &#8211;&gt; Once this command is entered top will ask you how many lines you want on your screen, if you enter 0 top will display as much as it can<br />
<strong>q</strong> &#8211;&gt; Exits top<br />
<strong>r</strong> &#8211;&gt; Change the priority of a process, as well as with k you will only be able to act on your own processes unless you are root<br />
<strong>W</strong> &#8211;&gt; Writes the current configuration to your personal configuration file, which is $HOME/.toprc<br />
<strong>&gt;</strong> &#8211;&gt; Re-order the processes to the right column<br />
<strong>&lt;</strong> &#8211;&gt; Re-order the processes to the left column</p>
]]></content:encoded>
			<wfw:commentRss>http://it-hacked.com/learn-useful-linux-operating-system-commands/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I am Using This Linux or *Nix or BSD Commands Everyday</title>
		<link>http://it-hacked.com/i-am-using-this-linux-or-nix-or-bsd-commands-everyday</link>
		<comments>http://it-hacked.com/i-am-using-this-linux-or-nix-or-bsd-commands-everyday#comments</comments>
		<pubDate>Sat, 06 Jun 2009 14:13:48 +0000</pubDate>
		<dc:creator>it-hacked.com</dc:creator>
				<category><![CDATA[Linux-*Nix]]></category>
		<category><![CDATA[linux tips]]></category>

		<guid isPermaLink="false">http://it-hacked.com/?p=18</guid>
		<description><![CDATA[ls -alfi [directory/file] : See the list of file in a directory or too see the atribute of a file
cat [file name] : See the content of a file
uname -ar : See the kernel version
cat /etc/issue : See the distribution of the system
netstat -tnap : See the connection in and out or listen
rm -rf [file/directory] [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ls -alfi [directory/file] : </strong>See the list of file in a directory or too see the atribute of a file<br />
<strong>cat [file name] :</strong> See the content of a file<br />
<strong>uname -ar : </strong>See the kernel version<br />
<strong>cat /etc/issue</strong> : See the distribution of the system<br />
<strong>netstat -tnap</strong> : See the connection in and out or listen<span id="more-18"></span><br />
<strong>rm -rf [file/directory]</strong> : Delete files or director<br />
<strong>cp [source] [destination] </strong>: Copy file of source to destination<br />
<strong>cp -r [source] [destination]</strong> : Copy directory of source to destination<br />
<strong>mv</strong> : Change the name of a file or move file<br />
<strong>echo &#8220;hello world&#8221;</strong> : To print a word hello world<br />
<strong>w</strong> : To display what users currently logged in<br />
<strong>whoami </strong>: To display what user we are logged in<br />
<strong>id </strong>: To display the id number, username and groups of what we are logged in<br />
<strong>mkdir [directory name]</strong> : To create a new directory<br />
<strong>touch [file name]</strong> : To create a blank file<br />
<strong>pwd</strong> : To display what directory we are on<br />
<strong>chown [new user:new group] [file name/directory]</strong> : To change the user owner and group owner of a file or directory<br />
<strong>chmod</strong> : To change attribute of a file<br />
<strong>last</strong> : To display list of users whom ever logged in to the machine<br />
<strong>useradd</strong> : To add a new user (must be a root)<br />
<strong>userdel</strong> : To delete an user (must be a root)<br />
<strong>usermod</strong> : To modify the user information<br />
<strong>passwd</strong> : To change a password of yourself<br />
<strong>passwd [user name]</strong> : To change a password of the username given (must be a root)<br />
<strong>su</strong> : To switch to a super user, which is root<br />
<strong>su [username]</strong> : To switch user to a given username<br />
<strong>tar -zxvf [filename]</strong> : To extract here of a tgz or tar.tgz file extention<br />
<strong>tar -czf [new-file.tgz] [file/dir]</strong> : To compress or pack a file or directory into a new-file.tgz<br />
<strong>wget [link] </strong>: To download data or file or HTML codes from a website link<br />
<strong>lwp-download [link]</strong> : The same as wget, to download data or file or HTML from a website link<br />
<strong>curl [link]</strong> : The same as wget or lwp-download<br />
<strong>fetch [link]</strong> : The same as wget or lwp-download or curl, but this is for BSD system<br />
<strong>grep [phrase] [file]</strong> : To search a phrase of word in a file<br />
<strong>more [file]</strong> : To see a file content page by page<br />
<strong>tail [file] </strong>: To see a file content from the last 20 lines (you can make it more 20 lines if you want)<br />
<strong>less [file]</strong> : To see a file content page by page and you can go up and down</p>
<p>Next is you should now <a href='http://it-hacked.com/learn-useful-linux-operating-system-commands#jobs'>7 administration useful Linux commands, like &#8220;jobs&#8221;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://it-hacked.com/i-am-using-this-linux-or-nix-or-bsd-commands-everyday/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up Your Linux ext3 Filesystem by Tweaking /etc/fstab File</title>
		<link>http://it-hacked.com/speed-up-your-linux-ext3-filesystem-by-tweaking-etcfstab-file</link>
		<comments>http://it-hacked.com/speed-up-your-linux-ext3-filesystem-by-tweaking-etcfstab-file#comments</comments>
		<pubDate>Thu, 04 Jun 2009 15:05:05 +0000</pubDate>
		<dc:creator>it-hacked.com</dc:creator>
				<category><![CDATA[Linux-*Nix]]></category>
		<category><![CDATA[linux tips]]></category>

		<guid isPermaLink="false">http://it-hacked.com/?p=13</guid>
		<description><![CDATA[Every time a file is read from your Linux ext3 partition it writes back a attribute to the file detailing the last access time. There are very few programs that actually use this to operate and it slows everything down.  Disabling &#8220;atime&#8221; and &#8220;diratime&#8221; on your Linux ext3 file systems can improve disk performance up [...]]]></description>
			<content:encoded><![CDATA[<p>Every time a file is read from your Linux ext3 partition it writes back a attribute to the file detailing the last access time. There are very few programs that actually use this to operate and it slows everything down.  Disabling &#8220;atime&#8221; and &#8220;diratime&#8221; on your Linux ext3 file systems can improve disk performance up to 40%!! Recommended to check this out&#8230;<span id="more-13"></span></p>
<p>Last time I talked about <a href="http://it-hacked.com/speeding-and-tweaking-your-linux-system-and-boot">speeding up your Linux by tweaking your boot loader GRUB, BIOS, running services and servers or daemons and etc.</a> Now it&#8217;s about Filesystem&#8230;</p>
<ol>
<li>Start a terminal.</li>
<li> Switch to root using the &#8220;su -&#8221; command.</li>
<li> Backup your fstab using the command: &#8220;cp /etc/fstab /etc/fstab.old&#8221;</li>
<li>Open your /etc/fstab in the editor of your choice (nano, kate or gedit recommended, but I prefer vim, it&#8217;s the BEST recommendation from me!!). This can be done by issuing the command &#8220;nano /etc/fstab&#8221;, &#8220;kate /etc/fstab&#8221;, or &#8220;gedit /etc/fstab&#8221;, but do not forget also &#8220;vim /etc/fstab&#8221; <img src='http://it-hacked.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li> Locate the partitions that contain your / and /home file systems, as well as any other file system you want to optimize. Examples include /dev/hda2 and /dev/hda3, or /dev/sda2 and /dev/sda3.</li>
<li> In the fourth section (just before the two numbers at the end of the line) you will see the options section of the fstab, e.g. &#8220;iocharset=utf8,nosuid&#8221; and etc..</li>
<li>Enter &#8220;,noatime,nodiratime&#8221; after the existing options for each partition you wish to optimize.<br />
Save the fstab file.</li>
<li>Reboot.</li>
</ol>
<p>Enjoy your newly optimized Linux ext3 file system. And if you don’t believe it is 40% check out the website kerneltrap.org.</p>
<p>P.S.: Please notice that If you are using programs such as tmpwatch, mutt, or mail-notify this configuration change could cause those programs that make specific use of atime not to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://it-hacked.com/speed-up-your-linux-ext3-filesystem-by-tweaking-etcfstab-file/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Speeding and Tweaking your Linux System and Boot Process</title>
		<link>http://it-hacked.com/speeding-and-tweaking-your-linux-system-and-boot</link>
		<comments>http://it-hacked.com/speeding-and-tweaking-your-linux-system-and-boot#comments</comments>
		<pubDate>Wed, 03 Jun 2009 15:55:22 +0000</pubDate>
		<dc:creator>it-hacked.com</dc:creator>
				<category><![CDATA[Linux-*Nix]]></category>
		<category><![CDATA[linux tips]]></category>

		<guid isPermaLink="false">http://it-hacked.com/?p=6</guid>
		<description><![CDATA[Every little bit of speed helps every little single seconds to improve your Linux speed and tweaking the boot speed. You can add the following to your GRUB menu (usually on the second line). The way that you can edit the boot parameters in the GRUB boot menu varies by distribution. The GRUB menu will [...]]]></description>
			<content:encoded><![CDATA[<p>Every little bit of speed helps every little single seconds to improve your Linux speed and tweaking the boot speed. You can add the following to your GRUB menu (usually on the second line). The way that you can edit the boot parameters in the GRUB boot menu varies by distribution. The GRUB menu will usually tell you what to press to edit the boot parameter when you boot. Don’t worry about messing up on the GRUB menu when you booting, it is not permanent.</p>
<ul>
<li>If you do not use any USB devices add &#8220;no usb&#8221; in the GRUB menu</li>
<li>If you are running a server and don&#8217;t need a GUI add &#8220;3&#8243;.  After that you can install Webmin to manage from a web browser</li>
<li>Rather than webmin, I prefer using ssh <img src='http://it-hacked.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Just need to install ssh server, and you can access it remotely</li>
</ul>
<p>Some BIOS hacks are important to speed up the boot process. Enter your BIOS <span id="more-6"></span>and do the following:</p>
<ul>
<li>Disable booting from CD-ROM and floppy (if you still have one). You can always use the hotkey like &#8220;del&#8221; or &#8220;F12&#8243; or &#8220;Esc&#8221; depends on your motherboard to access the boot menu when you turn the PC on</li>
<li>Look for a setting called Quick Boot, or Quick Power On Self Test. Enable this if you have this option.</li>
</ul>
<p>Inside the Linux system.  Disable unneeded services. This depends on a lot of things. Are you running a server? Are you running a laptop? Look through your services with the chkconfig –list command to see what is enabled.  Note that different distributions might not using this, this chkconfig command is a common way any Red Hat based Distributions. See here on how to use chkconfig to disable services. Here are some suggestions:</p>
<ul>
<li>If you don&#8217;t print disable CUPS</li>
<li>Bluetooth, you know if you need it</li>
<li>If you don&#8217;t know what NFS stands for, disable it. <img src='http://it-hacked.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
<li>SSH, do you SSH into your box? If not disable it.  (Hey I used it always for the server, but what it needs for on a laptop?) You know when you want it.</li>
<li>iptables, it&#8217;s a common Linux Firewall. Most broadband modems or routers have firewalls built in. Disable it unless you didn&#8217;t secure your wireless.  But I don&#8217;t know if you need double firewall, one in the router, one in your system</li>
<li>I remember I have to do &#8220;sudo apt-get remove tracker&#8221; in Ubuntu 7.10 because it always slowing my machine at around 5:00 PM !!  Even now in Jaunty 9.04 Ubuntu!!</li>
<li>In ubuntu, you can go to System -&gt; Preferences &#8211;&gt; Sessions.  Disable shitty services there</li>
<li>Check using top command or htop command to see what programs and services make you slow</li>
<li>Well, you know the idea, remove useless softwares, useless server stuff like NFS, SSHD, CUPS, etc !!</li>
</ul>
<p>Did you know that on most distributions you can use the Alt+F1 to F7 to switch to virtual consoles? You can disable this by editing /etc/inittab. Be careful editing this file back it up if you are unsure. Look for lines like this:<br />
1:2345:respawn:/sbin/mingetty tty1<br />
2:2345:respawn:/sbin/mingetty tty2<br />
3:2345:respawn:/sbin/mingetty tty3<br />
4:2345:respawn:/sbin/mingetty tty4<br />
5:2345:respawn:/sbin/mingetty tty5<br />
6:2345:respawn:/sbin/mingetty tty6</p>
<p>Erase them all!! Hehe, JUST JOKING, lol. Comment 3-6 with a # sign at the beginning of each line.  For example</p>
<p>#3:2345:respawn:/sbin/mingetty tty3<br />
#4:2345:respawn:/sbin/mingetty tty4<br />
#5:2345:respawn:/sbin/mingetty tty5<br />
#6:2345:respawn:/sbin/mingetty tty6</p>
<p>Again, on another distribution it might be not in /etc/inittab</p>
<p>Recompile your kernel it&#8217;s the best way to tweak up your system. This is a whole other topic, that I have to talk about it next time !!</p>
]]></content:encoded>
			<wfw:commentRss>http://it-hacked.com/speeding-and-tweaking-your-linux-system-and-boot/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
