<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Top_Linux_Commands_Part_1</id>
		<title>Top Linux Commands Part 1 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Top_Linux_Commands_Part_1"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Top_Linux_Commands_Part_1&amp;action=history"/>
		<updated>2026-06-04T02:57:22Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Top_Linux_Commands_Part_1&amp;diff=508&amp;oldid=prev</id>
		<title>Brian: /* 3) du - Find out how large files and directories are */</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Top_Linux_Commands_Part_1&amp;diff=508&amp;oldid=prev"/>
				<updated>2014-02-13T14:00:16Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;3) du - Find out how large files and directories are&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:00, 13 February 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The /var partition is almost file, find out what is using up the space&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The /var partition is almost file, find out what is using up the space&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/del&gt;du -ha /var --max-depth=1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;du -ha /var --max-depth=1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Our home directory is almost at quota, why?&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Our home directory is almost at quota, why?&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160;  &lt;/del&gt;du -ha /home/brian --max-depth=1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; &lt;/ins&gt;du -ha /home/brian --max-depth=1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Show only files and directories over 1GB&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; du -h --max-depth=5 /home/brian/ |egrep '[0-9]G\b'&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===4) df - Find out if a partition is getting full===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===4) df - Find out if a partition is getting full===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key briansne_wiki-wiki_:diff:version:1.11a:oldid:507:newid:508 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Top_Linux_Commands_Part_1&amp;diff=507&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Top Linux Commands - Part 1==  Thought I would make a list of the most useful Linux Commands used everyday.  This is not a comprehensive list by any means, but this should g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Top_Linux_Commands_Part_1&amp;diff=507&amp;oldid=prev"/>
				<updated>2014-02-13T04:59:40Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Top Linux Commands - Part 1==  Thought I would make a list of the most useful Linux Commands used everyday.  This is not a comprehensive list by any means, but this should g...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Top Linux Commands - Part 1==&lt;br /&gt;
&lt;br /&gt;
Thought I would make a list of the most useful Linux Commands used everyday.&lt;br /&gt;
&lt;br /&gt;
This is not a comprehensive list by any means, but this should give you a good start on some of the common Linux commands. &lt;br /&gt;
&lt;br /&gt;
===1) SSH - SSH is used to connect to remote terminals===&lt;br /&gt;
&lt;br /&gt;
Connecting to a remote server&lt;br /&gt;
&lt;br /&gt;
 ssh brian@briansnelson.com&lt;br /&gt;
or&lt;br /&gt;
 ssh -l brian briansnelson.com&lt;br /&gt;
&lt;br /&gt;
Connecting over a different port&lt;br /&gt;
&lt;br /&gt;
 ssh -p 2020 -l brian briansnelson.com&lt;br /&gt;
&lt;br /&gt;
===2) Find - As you can guess to find files on a server===&lt;br /&gt;
&lt;br /&gt;
Location all files owned by a specific user and use ls to show the location and permissions&lt;br /&gt;
&lt;br /&gt;
 find / -group &amp;lt;groupname&amp;gt; -ls&lt;br /&gt;
&lt;br /&gt;
Or Find which files have been changed in the last 5 days, (hacked sites)&lt;br /&gt;
&lt;br /&gt;
 find $PWD -mtime -5 -ls&lt;br /&gt;
&lt;br /&gt;
Or save them to a text file for later use&lt;br /&gt;
&lt;br /&gt;
 find $PWD -mtime -5 -ls &amp;gt; ~/changedin5days.txt&lt;br /&gt;
&lt;br /&gt;
===3) du - Find out how large files and directories are===&lt;br /&gt;
&lt;br /&gt;
The /var partition is almost file, find out what is using up the space&lt;br /&gt;
&lt;br /&gt;
  du -ha /var --max-depth=1&lt;br /&gt;
&lt;br /&gt;
Our home directory is almost at quota, why?&lt;br /&gt;
&lt;br /&gt;
   du -ha /home/brian --max-depth=1&lt;br /&gt;
&lt;br /&gt;
===4) df - Find out if a partition is getting full===&lt;br /&gt;
&lt;br /&gt;
This one is pretty basic, but you will find yourself using this command alot, &lt;br /&gt;
&lt;br /&gt;
 df -h &lt;br /&gt;
&lt;br /&gt;
Shows the size in human readable format&lt;br /&gt;
&lt;br /&gt;
 df -i&lt;br /&gt;
&lt;br /&gt;
Sometimes, you reach max inodes before reaching max disk space.&lt;br /&gt;
&lt;br /&gt;
 df -T&lt;br /&gt;
&lt;br /&gt;
Show the type of file system for each partition&lt;br /&gt;
&lt;br /&gt;
===5) grep - find lines within files===&lt;br /&gt;
&lt;br /&gt;
grep is a command you will use alot when trying to find hacked files or searching log files&lt;br /&gt;
&lt;br /&gt;
Trying to debug an issue with a website and only want to see your hits&lt;br /&gt;
&lt;br /&gt;
 tail -f /var/log/httpd/transfer.log | grep &amp;lt;your ipaddress&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or to check your traffic to the server &lt;br /&gt;
&lt;br /&gt;
 grep &amp;lt;your ipaddress&amp;gt; /var/log/httpd/transfer.log&lt;br /&gt;
&lt;br /&gt;
I will update and create more lists of useful Linux Commands&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>