Introduction to Linux


Basic commands for your research
Useful Linux commands
Some of the general tips for Linux commands
How to use grep, find , wc, and diff commands
How to extract and archive files
How to use other's Linux...when you do not have your own Linux system.

Some of the general tips for Linux commands

When you want to start up some software in terminal, type the name of the software, such as a text editor "gedit." You can specify the file name or create it by naming in the command. In general, if you want to run a program and keep using the terminal, type "&" after the command.
$ gedit &
Wildcard, *, is a useful tool to search and cetegorize files. For example, "t*" means any file which starts with "t", and "*.pdf" will find and do with every pdf file in the directory. The following is an example using "ls" command:
$ ls *.pdf
$ test.pdf   mine.pdf   yours.pdf
The "more" and "less" commands can make us look at a bunch of lists with our pace. By using cursols, space and enter keys, the lists are scrolled in terminal. The names of command essentially do not have "meaning." Interestingly, "less" has more extended features than "more." You can use them as follows:
$ more my.txt
$ less my.txt
To exit, type "q." You will find that "less" command is more convenient. The commands can be used with other commands with pipe, |.
$ ls *.* | less
The less command can even look into archived files.

He is a tip so you don't have to type all of the file name. This is called command-line completion. For example, you want to change directories as follows:
$ cd Des
After typing "Des", you press tab key. Then,
$ cd Desktop
The other part will appear if it is the only one to be chosen.

Back to Electronics Page

Back to Hiro's Physics Main