![]() cd - This is the same as the DOS command: it changes the directory you are working in. In fact, on most Linux systems you can just type ' dir' and get away with it, but you will miss out on the powerful options of the ' ls' command. The ' ls' command is probably the one command you will use more than any other on Linux. For example, ' ls -l' will display the files along with details such as permissions (who can access a file), the owner of the file(s), date & time of creation, etc. well this is like 'dir' command on steroids! If you type ' ls' and press enter you will see the files in that directory, there are many useful options to change the output. ls - You must have used the 'dir' command on Windows. Do not type the quotes and remember that, unlike Windows, Linux is case sensitive, thus typing ‘Document' is different from typing 'document'. We will use this rule throughout all our tutorials to avoid confusion and mistakes. The Basic CommandsĪs a rule, note that anything typed in ' single quotes and italics' is a valid Linux command to be typed at the command line, followed by Enter. 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. We'll show you a few basic commands to move around the command line as well as their equivalents in Windows. 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. In Linux, you could achieve this with a single command! - Have we got your attention yet ?! 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. 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. 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 !). comparing the power of the Linux command line with the power of the DOS prompt is like comparing a Ferrari with a bicycle! Most readers will be familiar with DOS in Windows and opening a DOS box. We also advise you to go through this section while sitting in front of the computer. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |