<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-548267812746583115</id><updated>2012-02-12T17:52:13.554-08:00</updated><category term='music download'/><title type='text'>Rainy Sunday Night</title><subtitle type='html'>Why Rainy Sunday Night??'cause Taken from my personal events. The Genesis-funny, silly, and slightly romantic in sunday night. exact date of 19 October 2008. Light rain flows slowly, at that night.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://metz-go.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/548267812746583115/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://metz-go.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Metz</name><uri>http://www.blogger.com/profile/17592872535812117688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TeW-FTgS0Mg/SViQ9kC2P3I/AAAAAAAAAAM/ZTQC2Dtnr68/S220/n1512200613_30125054_9647.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-548267812746583115.post-7778263959139668465</id><published>2008-12-31T00:29:00.000-08:00</published><updated>2008-12-31T00:37:35.961-08:00</updated><title type='text'>Command Line in Linux</title><content type='html'>Introduction &lt;p align="left"&gt;You could actually skip this whole section for those who are  already familiar with the topic, but we highly recommend you read it because  this is the heart of Linux. We also advise you to go through this section while  sitting in front of the computer.&lt;/p&gt; &lt;p align="left"&gt;Most readers will be familiar with DOS in Windows and opening a  DOS box. Well, let's put it this way.. comparing the power of the Linux command  line with the power of the DOS prompt is like comparing a Ferrari with a  bicycle!&lt;/p&gt; &lt;p align="left"&gt;People may tell you that the Linux command line is difficult and  full of commands to remember, but it's the same thing in DOS and just remember -  you can get by in Linux without ever opening a command line (just like you can  do all your work in Windows without ever opening a DOS box !). However, the  Linux command line is actually very easy, logical and once you have even the  slightest ability and fluency with it, you'll be amazed as to how much faster  you can do complicated tasks than you would be able to with the fancy  point-and-click graphics and mouse interface.&lt;/p&gt; &lt;p align="left"&gt;To give you an example, imagine the number of steps it would take  you in Windows to find a file that has the word "hello" at the end of a line,  open that file, remove the first ten lines, sort all the other lines  alphabetically and then print it. In Linux, you could achieve this with a single  command! - Have we got your attention yet ?!&lt;/p&gt; &lt;p align="left"&gt;Though you might wonder what you could achieve by doing this - the  point is that you can do incredibly complicated things by putting together small  commands, exactly like using small building blocks to make a big structure.&lt;/p&gt; &lt;p&gt;We'll show you a few basic commands to move around the command line as well  as their equivalents in Windows. We will first show you the commands in their  basic form and then show you how you can see all the options to make them work  in different ways.&lt;/p&gt; &lt;p style="font-weight: bold; color: rgb(0, 255, 255);"&gt;The Basic Commands &lt;/p&gt; &lt;p&gt;As a rule, note that anything typed&lt;span&gt; in green &lt;/span&gt;'&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;single quotes and italics&lt;/span&gt;' is  a valid Linux command to be typed at the command line, followed by Enter. &lt;/p&gt; &lt;p&gt;We will use this rule throughout all our tutorials to avoid confusion and  mistakes. Do not type the quotes and remember that, unlike Windows, Linux is  case sensitive, thus typing ‘Document' is different from typing 'document'.&lt;/p&gt; &lt;p&gt;•  &lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt;ls &lt;/strong&gt;&lt;/span&gt;- You must have  used the 'dir' command on Windows... well this is like 'dir' command on  steroids! If you type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;ls&lt;/span&gt;' and press enter you will  see the files in that directory, there are many useful options to change the  output. For example, '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;ls  -l&lt;/span&gt;' will display the files along with details such as permissions (who  can access a file), the owner of the file(s), date &amp;amp; time of creation,  etc.&lt;span&gt; The &lt;/span&gt;'&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;ls&lt;/span&gt;' command is probably the  one command you will use more than any other on Linux. In fact, on most Linux  systems you can just type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;dir&lt;/span&gt;' and get away with it, but  you will miss out on the powerful options of the '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;ls&lt;/span&gt;' command. &lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_TeW-FTgS0Mg/SVsuDwMgYSI/AAAAAAAAABQ/sdxYEh6o5r4/s1600-h/linux-introduction-cmd-line-1.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 195px;" src="http://1.bp.blogspot.com/_TeW-FTgS0Mg/SVsuDwMgYSI/AAAAAAAAABQ/sdxYEh6o5r4/s400/linux-introduction-cmd-line-1.gif" alt="" id="BLOGGER_PHOTO_ID_5285869229661249826" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p align="center"&gt; &lt;/p&gt; &lt;p&gt;•  &lt;strong&gt;&lt;span style="color: rgb(204, 255, 0);"&gt;cd&lt;/span&gt; - &lt;/strong&gt;This is the same  as the DOS command: it changes the directory you are working in. Suppose you are  in the '/var/cache' directory and want to go to its subfolder 'samba' , you can  type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;cd samba&lt;/span&gt;' just as  you would if it were a DOS system.&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_TeW-FTgS0Mg/SVsuOw6rDyI/AAAAAAAAABY/0BvdF_yXIEs/s1600-h/linux-introduction-cmd-line-2.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 195px;" src="http://4.bp.blogspot.com/_TeW-FTgS0Mg/SVsuOw6rDyI/AAAAAAAAABY/0BvdF_yXIEs/s400/linux-introduction-cmd-line-2.gif" alt="" id="BLOGGER_PHOTO_ID_5285869418833448738" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Imagine you were at the '/var/cache' directory and you wanted to change to  the '/etc/init.d' directory in one step, you could just type '&lt;span style="color: rgb(0, 255, 0);"&gt;&lt;em&gt;cd /etc/init.d&lt;/em&gt;&lt;/span&gt;' as shown above. On the  other hand, if you just type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;cd&lt;/span&gt;' and press enter, it will  automatically take you back to your personal home directory (this is very useful  as all your files are usually stored there).&lt;/p&gt; &lt;p&gt;We also should point out that while Windows and DOS use the well known  back-slash ' &lt;span style="color: rgb(0, 255, 0);"&gt;\&lt;/span&gt; ' in the full path address,  Linux differentiates by using the forward-slash ' &lt;span style="color: rgb(0, 255, 0);"&gt;/&lt;/span&gt; '. This explains why we use the command '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;cd /etc/init.d&lt;/span&gt;' and not '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;cd \etc\init.d&lt;/span&gt;' as most  Windows users would expect.&lt;/p&gt; &lt;p&gt;•  &lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt;pwd &lt;/strong&gt;&lt;/span&gt;- This will show  you the directory you are currently in, should you forget. It's almost like  asking the operating system 'Where am I right now ?'. It will show you the  '&lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt;p&lt;/strong&gt;&lt;/span&gt;resent &lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt;w&lt;/strong&gt;&lt;/span&gt;orking &lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt;d&lt;/strong&gt;&lt;/span&gt;irectory'.&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsuUaUXvLI/AAAAAAAAABg/32DaBlWOXEs/s1600-h/linux-introduction-cmd-line-3.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 195px;" src="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsuUaUXvLI/AAAAAAAAABg/32DaBlWOXEs/s400/linux-introduction-cmd-line-3.gif" alt="" id="BLOGGER_PHOTO_ID_5285869515846433970" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p align="center"&gt; &lt;/p&gt; &lt;p&gt;•  &lt;strong&gt;&lt;span style="color: rgb(204, 255, 0);"&gt;cp&lt;/span&gt; - &lt;/strong&gt;This is the  equivalent of the Windows 'copy' command. You use it to copy a file from one  place to another. So if you want to copy a file called 'document' to another  file called 'document1' , you would need to type '&lt;em&gt;&lt;span style="color: rgb(0, 255, 0);"&gt;cp document document1&lt;/span&gt;&lt;/em&gt;'. In other words, first  the source, then the destination. &lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsuZn06ViI/AAAAAAAAABo/gac7T0KSE6s/s1600-h/linux-introduction-cmd-line-4.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 195px;" src="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsuZn06ViI/AAAAAAAAABo/gac7T0KSE6s/s400/linux-introduction-cmd-line-4.gif" alt="" id="BLOGGER_PHOTO_ID_5285869605371926050" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;The 'cp' command will also allow you to provide the path to copy it to. For  example, if you wanted to copy 'document' to the home directory of  &lt;em&gt;user1&lt;/em&gt;, you would then type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;cp document /home/user1/&lt;/span&gt;'. If  you want to copy something to your home directory, you don't need to type the  full path (example /home/yourusername), you can use the shortcut '~' (tilda), so  to copy 'document' to your home directory, you can simply type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;copy document ~&lt;/span&gt;' .&lt;/p&gt; &lt;p&gt; &lt;/p&gt; &lt;p&gt;•  &lt;strong&gt;&lt;span style="color: rgb(204, 255, 0);"&gt;rm&lt;/span&gt; - &lt;/strong&gt;This is the same  as the &lt;span&gt;'del' or 'delete' &lt;/span&gt;command in Windows. It will delete the  files you input. So if you need to delete a file named 'document', you type  '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;rm document&lt;/span&gt;&lt;em&gt;'&lt;/em&gt;.  The system will ask if you are sure, so you get a second chance! If you typed  &lt;span&gt;'&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;rm –f&lt;/span&gt;'  &lt;/span&gt;then you will force (-f) the system to execute the command without  requiring confirmation, this is useful when you have to delete a large number of  files. &lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsuf_TdYyI/AAAAAAAAABw/cJ1JNocirH0/s1600-h/linux-introduction-cmd-line-5.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsuf_TdYyI/AAAAAAAAABw/cJ1JNocirH0/s400/linux-introduction-cmd-line-5.gif" alt="" id="BLOGGER_PHOTO_ID_5285869714753282850" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;In all Linux commands you can use the '*' wildcard that you use in Windows,  so to delete all files ending with .txt in Windows you would type 'del  *.txt&lt;span&gt;' &lt;/span&gt;whereas in Linux you would type '&lt;em&gt;&lt;span style="color: rgb(0, 255, 0);"&gt;rm -f *.txt&lt;/span&gt;&lt;/em&gt;'&lt;em&gt;. &lt;/em&gt;Remember, we used the  '-f' because we don't want to be asked to confirm the deletion of each file.  &lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsusKBtUpI/AAAAAAAAAB4/56DO3DcSePo/s1600-h/linux-introduction-cmd-line-6.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsusKBtUpI/AAAAAAAAAB4/56DO3DcSePo/s400/linux-introduction-cmd-line-6.gif" alt="" id="BLOGGER_PHOTO_ID_5285869923790049938" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p align="left"&gt;To delete a folder, you have to give rm the '-r' (recursive)  option; as you might have already guessed, you can combine options like this:  '&lt;em&gt;&lt;span style="color: rgb(0, 255, 0);"&gt;rm -rf mydirectory&lt;/span&gt;'. &lt;/em&gt;This will  delete the directory 'mydirectory' (and any subdirectories within it) and will  not ask you twice. Combining options like this works for all Linux commands.  &lt;/p&gt; &lt;p align="left"&gt; &lt;/p&gt; &lt;p&gt;•  &lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt;mkdir / rmdir &lt;/strong&gt;&lt;/span&gt;- These  two commands are the equivalent of Windows' 'md' and 'rd', which allow you to  create (md) or remove (rd) a directory. So if you type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;mkdir firewall&lt;/span&gt;', a directory  will be created named 'firewall'. On the other hand, type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;rmdir firewall&lt;/span&gt;' and the newly  created directory will be deleted. We should also note that the '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;rmdir&lt;/span&gt;' command will only  remove an empty directory, so you might be better off using '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;rm -rf&lt;/span&gt;' as described above.  &lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsux5utwzI/AAAAAAAAACA/UPmlRhjCq88/s1600-h/linux-introduction-cmd-line-7.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsux5utwzI/AAAAAAAAACA/UPmlRhjCq88/s400/linux-introduction-cmd-line-7.gif" alt="" id="BLOGGER_PHOTO_ID_5285870022494634802" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p align="center"&gt; &lt;/p&gt; &lt;p&gt;•  &lt;strong&gt;&lt;span style="color: rgb(204, 255, 0);"&gt;mv&lt;/span&gt; - &lt;/strong&gt;This is the same  as the 'move' command on Windows. It works like the 'cp' or copy command, except  that after the file is copied, the original source file is deleted. By the way,  there is no rename command on Linux because technically moving and renaming a  file is the same thing! &lt;/p&gt; &lt;p&gt;In this example, we recreated the&lt;span&gt; 'firewall'&lt;/span&gt; directory we  deleted previously and then tried renaming it to 'firewall-cx'. Lastly, the new  directory was moved to the '/var' directory:&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_TeW-FTgS0Mg/SVsu2WIhJQI/AAAAAAAAACI/P-II6YOzy84/s1600-h/linux-introduction-cmd-line-8.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://4.bp.blogspot.com/_TeW-FTgS0Mg/SVsu2WIhJQI/AAAAAAAAACI/P-II6YOzy84/s400/linux-introduction-cmd-line-8.gif" alt="" id="BLOGGER_PHOTO_ID_5285870098838529282" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;That should be enough to let you move around the command line or the 'shell',  as it's known in the Linux community. You'll be pleased to know that there are  many ways to open a shell window from the ‘X' graphical desktop, which can be  called an xterm, or a terminal window. &lt;/p&gt; &lt;p&gt;•  &lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt;cat&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;  /&lt;/span&gt;&lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt; more  &lt;/strong&gt;&lt;/span&gt;&lt;span&gt;/&lt;/span&gt;&lt;span style="color: rgb(204, 255, 0);"&gt;&lt;strong&gt; less  &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;- &lt;/strong&gt;These commands are used to view files  containing text or code. Each command will allow you to perform a special  function that is not available with the others so, depending on your work, some  might be used more frequently than others. &lt;/p&gt; &lt;p&gt;The '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;cat&lt;/span&gt;' command  will show you the contents of any file you select. This command is usually used  in conjunction with other advanced commands such as '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;grep&lt;/span&gt;' to look for a specific  string inside a large file which we'll be looking at later on. &lt;/p&gt; &lt;p&gt;When issued, the 'cat' command will run through the file without pausing  until it reaches the end, just like a file scanner that examines the contents of  a file while at the same time showing the output on your screen:&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsvDgiPqZI/AAAAAAAAACQ/PfKVbSJkpTc/s1600-h/linux-introduction-cmd-line-8.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsvDgiPqZI/AAAAAAAAACQ/PfKVbSJkpTc/s400/linux-introduction-cmd-line-8.gif" alt="" id="BLOGGER_PHOTO_ID_5285870324969089426" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;In this example, we have a whopper 215kb text file containing the system's  messages. We issued the '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;cat  messages&lt;/span&gt;' command and the file's content is immediately listed on our  screen, only this went on for a minute until the 'cat' command reached the end  of the file and then exited. &lt;/p&gt; &lt;p&gt;Not much use for this example, but keep in mind that we usually pipe the  output to other commands in order to give us some usable results :)&lt;/p&gt; &lt;p&gt;'&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;more&lt;/span&gt;' is used in a  similar way, but will pause the screen when it has filled with text, in which  case we need to hit the space bar or enter key to continue scrolling per page or  line. The 'up' or 'down' arrow keys are of no use for this command and will not  allow you to scroll through the file - it's pretty much a one way scrolling  direction (from the beginning to the end) with the choice of scrolling per page  (space bar) or line (enter key).&lt;/p&gt; &lt;p&gt;The '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;less&lt;/span&gt;' command is  an enhanced version of '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;more&lt;/span&gt;', and certainly more  useful. With the less command, you are able to scroll up or down a file's  content. To scroll down per page, you can make use of the space bar, or &lt;span style="color: rgb(0, 255, 204);"&gt;CTRL-D&lt;/span&gt;. To scroll upwards towards the beginning of  the file, use &lt;span style="color: rgb(0, 255, 204);"&gt;CTRL-U&lt;/span&gt;. &lt;/p&gt; &lt;p&gt;It is not possible for us to cover all the commands and their options because  there are thousands! However, we will teach you the secret to using Linux --  that is, how to find the right tool (command) for a job, and how to find help on  how to use it.&lt;/p&gt; &lt;p style="font-weight: bold; color: rgb(153, 153, 255);"&gt;Can I Have Some Help Please? &lt;/p&gt; &lt;p&gt;To find help on a command, you type the command name followed by '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;--help&lt;/span&gt;'&lt;em&gt;. &lt;/em&gt;For example,  to get help on the '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;mkdir&lt;/span&gt;' command, you will type  '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;mkdir --help&lt;/span&gt;'&lt;em&gt;.  &lt;/em&gt;But there is a much more powerful way... &lt;/p&gt; &lt;p&gt;For those who read our previous section, remember we told you that Linux  stores all files according to their function? Well Linux stores the manuals  (help files) for every program installed, and the best part is that you can look  up the 'man pages' (manuals) very easily. All the manuals are in the same format  and show you every possible option for a command.&lt;/p&gt; &lt;p&gt;To open the manual of a particular command, type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;man&lt;/span&gt;' followed by the command  name, so to open the manual for '&lt;span&gt;mkdir&lt;/span&gt;' type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;man mkdir&lt;/span&gt;':&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsvJ46qiYI/AAAAAAAAACY/AUL5mBrYOfU/s1600-h/linux-introduction-cmd-line-9.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 197px;" src="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsvJ46qiYI/AAAAAAAAACY/AUL5mBrYOfU/s400/linux-introduction-cmd-line-9.gif" alt="" id="BLOGGER_PHOTO_ID_5285870434593180034" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Interestingly, try getting help on the 'man' command itself by typing '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;man man&lt;/span&gt;'&lt;em&gt;. &lt;/em&gt;This is the  most authoritative and comprehensive source of help for anything you have in  Linux, and the best part is that every program will come with its manual! Isn't  this so much better than trying to find a help file or readme.txt file :) ?&lt;/p&gt; &lt;p&gt;Here's another incredibly useful command -- if you know the task you want to  perform, but don't know the command or program to use, use the '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;apropos&lt;/span&gt;' command. This command  will list all the programs on the system that are related to the task you want  to perform. For example, say you want to send email but don't know the email  program, you can type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;apropos  email&lt;/span&gt;' and receive a list of all the commands and programs on the system  that will handle email! There is no equivalent of this on Windows.&lt;/p&gt; &lt;p style="font-weight: bold; color: rgb(255, 255, 0);"&gt;Where Is That File? &lt;/p&gt; &lt;p&gt;Another basic function of any operating system is knowing how to find or  search for a missing or forgotten file, and if you have already asked yourself  this question, you'll be pleased to find out the answer :) &lt;/p&gt; &lt;p&gt;The simplest way to find any file in Linux is to type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;locate&lt;/span&gt;' followed by the  filename. So if you want to find a file called '&lt;span&gt;document&lt;/span&gt;' , you  type '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;locate document&lt;/span&gt;'.  The locate command works using a database that is usually built when you are not  using your Linux system, indexing all your files and directories to help you  locate them. &lt;/p&gt; &lt;p&gt;You can use the more powerful '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;find&lt;/span&gt;' command, but I would  suggest you look at its '&lt;span&gt;man&lt;/span&gt;' page first by typing '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;man find&lt;/span&gt;'. The '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;find&lt;/span&gt;' command differs from the  '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;locate&lt;/span&gt;' command in that  it does not use a database, but actually looks for the file(s) requested by  scanning the whole directory or file system depending on where you execute the  command.&lt;/p&gt; &lt;p&gt;Logically, the '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;locate&lt;/span&gt;' command is much faster  when looking for a file that has already been indexed in its database, but will  fail to discover any new files that have just been installed since they haven't  been indexed! This is where the '&lt;span style="color: rgb(0, 255, 0); font-style: italic;"&gt;find&lt;/span&gt;' command comes to the  rescue! &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/548267812746583115-7778263959139668465?l=metz-go.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://metz-go.blogspot.com/feeds/7778263959139668465/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://metz-go.blogspot.com/2008/12/command-line-in-linux.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/548267812746583115/posts/default/7778263959139668465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/548267812746583115/posts/default/7778263959139668465'/><link rel='alternate' type='text/html' href='http://metz-go.blogspot.com/2008/12/command-line-in-linux.html' title='Command Line in Linux'/><author><name>Metz</name><uri>http://www.blogger.com/profile/17592872535812117688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TeW-FTgS0Mg/SViQ9kC2P3I/AAAAAAAAAAM/ZTQC2Dtnr68/S220/n1512200613_30125054_9647.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_TeW-FTgS0Mg/SVsuDwMgYSI/AAAAAAAAABQ/sdxYEh6o5r4/s72-c/linux-introduction-cmd-line-1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-548267812746583115.post-7398935788884032330</id><published>2008-12-31T00:12:00.000-08:00</published><updated>2008-12-31T00:18:08.871-08:00</updated><title type='text'>IP-Subnetting The Basic Concepts</title><content type='html'>Introduction &lt;p align="left"&gt;Introduction ? We already did that in the previous page :)&lt;/p&gt; &lt;p align="left"&gt;Let's get stuck right into this cool topic ! &lt;/p&gt; &lt;p align="left"&gt;&lt;span style="color:#ffff00;"&gt;&lt;b&gt;What is Subnetting ?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p align="left"&gt;When we &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#66ff99;"&gt;Subnet a network,  we basically split it into smaller networks&lt;/span&gt;&lt;/span&gt;. For example, when a  set of IP Addresses is given to a company, e.g 254 they might want to "break"  (the correct term is "partition") that one network into smaller ones, one for  each department. This way, their Technical department and Management department  can each have a small network of their own. By subnetting the network we can  partition it to as many smaller networks as we need and this also helps reduce  traffic and hides the complexity of the network.&lt;/p&gt; &lt;p align="left"&gt;By default, all type of Classes (&lt;span style="color:#ffffff;"&gt;&lt;span style="color:#00ff00;"&gt;A&lt;/span&gt;&lt;/span&gt;, &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#ff9900;"&gt;B&lt;/span&gt;&lt;/span&gt; and &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#66ffff;"&gt;C&lt;/span&gt;&lt;/span&gt;) have a subnet mask, we call it the "&lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;Default Subnet mask&lt;/span&gt;&lt;/span&gt;". You need  to have one because: &lt;/p&gt; &lt;p align="left"&gt;1) All computers need the subnet mask field filled when  configuring IP&lt;/p&gt; &lt;p align="left"&gt;2) You need to set some logical boundaries in your network &lt;/p&gt; &lt;p align="left"&gt;3) You should at least enter the default subnet mask for the Class  you're using &lt;/p&gt; &lt;p align="left"&gt;In the previous pages I spoke about IP Classes, Network IDs and  Host IDs, the fact is that the &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;Subnet  mask&lt;/span&gt;&lt;/span&gt; is what determines the &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#66ffff;"&gt;Network ID&lt;/span&gt;&lt;/span&gt; and &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#66ffff;"&gt;&lt;span style="color:#ffcc33;"&gt;Host ID&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; portion of an IP  Address.&lt;/p&gt; &lt;p align="left"&gt;The table below shows clearly the subnetmask that applies for each  network Class.&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsqHytJwyI/AAAAAAAAAA4/x3m5yd0hdIE/s1600-h/ip-subnetting-basic-concepts-1.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px; height: 120px;" src="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsqHytJwyI/AAAAAAAAAA4/x3m5yd0hdIE/s320/ip-subnetting-basic-concepts-1.gif" alt="" id="BLOGGER_PHOTO_ID_5285864901008016162" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p align="left"&gt;When dealing with &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;subnet  masks&lt;/span&gt;&lt;/span&gt; in the real world, we are free in most cases to use any type  of &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;subnet mask&lt;/span&gt;&lt;/span&gt; in order to  meet our needs. If for example we require one network which can contain up to  &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#6699ff;"&gt;254&lt;/span&gt;&lt;/span&gt; computers, then a  &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#6699ff;"&gt;Class C network&lt;/span&gt;&lt;/span&gt; with its  &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;default subnet mask&lt;/span&gt;&lt;/span&gt; will  do fine, but if we need more, then we might consider a &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#ff9900;"&gt;Class B network&lt;/span&gt;&lt;/span&gt; with its &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;default subnet mask&lt;/span&gt;&lt;/span&gt;. &lt;/p&gt; &lt;p align="left"&gt;Note that the default subnet masks have been set by the IEEE  committee, the same guys that set and approve the different standards and  protocols. &lt;/p&gt; &lt;p align="left"&gt;We will have a closer look at this later on and see how we can  achieve a Class C network with more than 254 hosts.&lt;/p&gt; &lt;p align="left"&gt;&lt;span style="color:#9999ff;"&gt;&lt;b&gt;Understanding the concept&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p align="left"&gt;Let's stop here for one moment and have a look at what I mean by  partitioning one network into smaller ones by using different &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;subnet masks&lt;/span&gt;&lt;/span&gt;. &lt;/p&gt; &lt;p align="left"&gt;The picture below shows our example network (&lt;span style="color:#ffffff;"&gt;&lt;span style="color:#33ccff;"&gt;192.168.0.0&lt;/span&gt;&lt;/span&gt;). All computers here  have been configured with the default &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#0099ff;"&gt;Class C&lt;/span&gt; &lt;span style="color:#99ff00;"&gt;subnet mask&lt;/span&gt;&lt;/span&gt;  (&lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;255.255.255.0&lt;/span&gt;&lt;/span&gt;):&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsqUTEo50I/AAAAAAAAABA/9WVNoZo4ja8/s1600-h/ip-subnetting-basic-concepts-2.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 364px; height: 260px;" src="http://3.bp.blogspot.com/_TeW-FTgS0Mg/SVsqUTEo50I/AAAAAAAAABA/9WVNoZo4ja8/s320/ip-subnetting-basic-concepts-2.gif" alt="" id="BLOGGER_PHOTO_ID_5285865115854890818" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p align="left"&gt;Because of the subnet mask we used, all these computers are part  of the one network marked in blue. This also means that any one of these hosts  (computers, router and server) can communicate with each other. &lt;/p&gt; &lt;p align="left"&gt;If we now wanted to partition this network into smaller segments,  then we would need to change the &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;subnet  mask&lt;/span&gt;&lt;/span&gt; appropriately so we can get the desired result. Let's say we  needed to change the subnet mask from &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;255.255.255.0&lt;/span&gt;&lt;/span&gt; to &lt;span style="color:#ffffff;"&gt;&lt;span style="color:#99ff00;"&gt;255.255.255.224&lt;/span&gt;&lt;/span&gt; on each configured host. &lt;/p&gt; &lt;p align="left"&gt;The picture below shows us how the computers will see the network  once the subnet mask has changed:&lt;/p&gt; &lt;p align="center"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsqeRSPstI/AAAAAAAAABI/7EGj0ojW1IQ/s1600-h/ip-subnetting-basic-concepts-3.gif"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 322px;" src="http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsqeRSPstI/AAAAAAAAABI/7EGj0ojW1IQ/s400/ip-subnetting-basic-concepts-3.gif" alt="" id="BLOGGER_PHOTO_ID_5285865287173780178" border="0" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p align="left"&gt;In reality, we have just created 8 networks from the one large  (blue) network we had, but I am keeping things simple for now and showing only 2  of these smaller networks because I want you to understand the concept of  subnetting and see how important the subnet mask is.&lt;/p&gt; &lt;p align="left"&gt;In the next pages which are to follow I will analyse in great  depth the way subnetting works and how to calculate it. It is very important  that you understand the concepts introduced in this section, so make sure you  do, before continuing !&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/548267812746583115-7398935788884032330?l=metz-go.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://metz-go.blogspot.com/feeds/7398935788884032330/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://metz-go.blogspot.com/2008/12/ip-subnetting-basic-concepts.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/548267812746583115/posts/default/7398935788884032330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/548267812746583115/posts/default/7398935788884032330'/><link rel='alternate' type='text/html' href='http://metz-go.blogspot.com/2008/12/ip-subnetting-basic-concepts.html' title='IP-Subnetting The Basic Concepts'/><author><name>Metz</name><uri>http://www.blogger.com/profile/17592872535812117688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TeW-FTgS0Mg/SViQ9kC2P3I/AAAAAAAAAAM/ZTQC2Dtnr68/S220/n1512200613_30125054_9647.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_TeW-FTgS0Mg/SVsqHytJwyI/AAAAAAAAAA4/x3m5yd0hdIE/s72-c/ip-subnetting-basic-concepts-1.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-548267812746583115.post-828618997482496778</id><published>2008-12-30T23:41:00.000-08:00</published><updated>2008-12-30T23:47:12.563-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='music download'/><title type='text'>Download Music and Video Files With Free Music Zilla</title><content type='html'>&lt;div style="text-align: justify;"&gt;&lt;img src="file:///C:/DOCUME%7E1/yanuar/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="" /&gt;&lt;img src="file:///C:/DOCUME%7E1/yanuar/LOCALS%7E1/Temp/moz-screenshot-1.jpg" alt="" /&gt;Don’t you miss the days of Napster and Kazaa when any music soundtrack was just  a click away? But thanks to the bullyish ways of RIAA who haven’t recognized the  changing trends in music sales, we were penalized heavily for even trying to  download single tracks for our personal use (until iTunes knocked some sense  into them). Before I get into describing this process to download music online  that I stumbled on recently, I wish to make clear that I am in no way endorsing  piracy but am only pointing you to resources that are already available out  there.Online music has changed from being resident on servers or personal  computers waiting to be downloaded or shared to being available in streaming  format on various websites. You can listen all you want but you cannot download  them to listen offline; just like radio but without the irritating RJ chatter.  But there is a way you can download these streaming songs to your PC and all you  need is a freely-available software and a conversion tool.  &lt;/div&gt;&lt;p&gt;&lt;span id="more-2424"&gt;&lt;/span&gt;&lt;/p&gt; &lt;h2&gt;Download and Convert Online Music Files&lt;/h2&gt; &lt;p style="text-align: justify;"&gt;&lt;img alt="Free Music Zilla" src="http://www.freemusiczilla.com/img2/logo.gif" width="208" align="left" height="54" /&gt;1.  Download and install &lt;a title="Free Music Zilla" href="http://www.freemusiczilla.com/"&gt;Free Music Zilla&lt;/a&gt; on your computer.  This software will let you download songs from streaming sites like IMEEM™,  Last.fm™, Pandora™, Myspace, eSnips™, Mog™, iJigg™, Radio.blog.club™ and almost  all social music services.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/548267812746583115-828618997482496778?l=metz-go.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://metz-go.blogspot.com/feeds/828618997482496778/comments/default' title='Poskan Komentar'/><link rel='replies' type='text/html' href='http://metz-go.blogspot.com/2008/12/download-music-and-video-files-with.html#comment-form' title='0 Komentar'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/548267812746583115/posts/default/828618997482496778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/548267812746583115/posts/default/828618997482496778'/><link rel='alternate' type='text/html' href='http://metz-go.blogspot.com/2008/12/download-music-and-video-files-with.html' title='Download Music and Video Files With Free Music Zilla'/><author><name>Metz</name><uri>http://www.blogger.com/profile/17592872535812117688</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_TeW-FTgS0Mg/SViQ9kC2P3I/AAAAAAAAAAM/ZTQC2Dtnr68/S220/n1512200613_30125054_9647.jpg'/></author><thr:total>0</thr:total></entry></feed>
