What is the best way to learn how to use Ubuntu with terminal? [closed]

Solution 1:

  1. Linux in a nutshell is said to be a good book for Linux commands. You can see that book. (I admit that I did not completely read the book, but seems to me good for commands, See below comment from an actual reader)

  2. An online directory of useful Linux commands can also help you a lot

  3. I found the book Ubuntu Linux Bible extremely helpful and a friendly introduction to Ubuntu. It is by "William von Hagen".

  4. You can browse the Linux manual pages in a web-browser by installing man2html.

    sudo apt-get install man2html
    
  5. You can browse the GNU info pages by typing info following the command name in a terminal. The Graphical Way to do the same thing requires info2www package. Install it with sudo apt-get install info2www.
    (These are more helpful, and I highly recommend these to understand the Linux Commands, such as sed, grep and others)

Solution 2:

Read about bash, which is the commandline shell. If you ever used MS-DOS, it's similar. Most of the commands you use are fairly straight-forward: it starts with a command followed by a space. The command can be either an internal bash command, or an external program/command. If it's external, it needs to be where bash can find it, either in the path or specified.

After the command, there are often options, that are command-specific. After the options, there may be filenames required. Keep in mind that spaces separate items in this list, so if a filename has a space, it need to be "escaped", like this: name\ with\ spaces. Each space has a backslash in front of it to make it a character rather than a delimiter. Usually, you can also put double quotes around the name, instead.

If it's a bash command, you can find out more in a few ways:

Enter man name_of_command, where name_of_command is the program name. Use spaces to page through the text, 'b' to page backwards, and 'q' to quit.

Enter name_of_command --help to get an abbreviated list of options

You can get a lot of information by entering "man man", and also "man bash". But some simpler tutorials are helpful to get you started.

So, next time you see a command, try entering the first word after the "man" command, or enter the first word, followed by --help to get a feeling for what the parameters are.

After learning the bash command line, you will be more able to experiment with some more advanced topics. There are lots of linux tutorials on the web.