Beginner: Linux skills 15

Source: Internet
Author: User

It may be inconvenient to use Linux at first, but it will become more and more convenient after a period of time to control some skills. The following are some of the experiences and skills accumulated by Using Linux.

1. Use the virtual console

After logging on, press the Alt F2 key and you will see the "login:" prompt. This is the second virtual console. Generally, the newly installed Linux has four virtual consoles, which can use Alt F1 ~ Alt F4. The most useful time of the virtual console is that when a program fails to lock the input, it can be converted to another virtual console to log on to the system and then kill the error process.

2. copy and paste

Character interface: whether it is Slackware or RedHat, a program named gpm is automatically run at each startup after installation. After the program runs, it can be copied and pasted with the mouse. The specific method is to hold the left mouse button and drag it to make the place to be copied reversed. At this time, the area to be reversed has been copied, right-click the copied content and paste it at the cursor position. ..

X-Window: The copy operation is the same as that on the Character interface. Press and paste the Three-Key mouse, press the left and right keys at the same time (select Emulate 3 Button in the mouse configuration when XF86 is configured ).

3. quick access to some Directories

Type cd ~ You can access your home directory.

Type cd-to enter the previous directory.

4. Use of the soft drive

For the Linux ext2 document system, run the following command: # mount-t ext2/dev/fd0/mnt

For a floppy disk in dos format, run the following command: # mount-t msdos/dev/fd0/mnt

Then you can access the content of the floppy disk in/mnt. Note that you need to unmount the document system on the floppy disk before removing the floppy disk. # umount/mnt; otherwise, information will be lost. Run the following command to create a document system on a floppy disk: # mke2fs/dev/fd0 1440

5. display the color directory list under RedHat

Open/etc/bashrc and add the following line: alias ls = "ls -- color"

The color directory list will be displayed as shown in Slackware when bash is started next time. The color meanings are as follows:

Blue --> directory

Green --> executable document

Red --> compressed document

Light blue --> link document

Gray --> other documents

6. Display document types

Using the command file can help you know whether a document is an executable document in ELF format, a shell script document, or a successful life in other formats. You need to operate the document on your own, don't wait any longer. Now, we plan for our own life, light up a bright light for our life, and win at the beginning of our life.

Example: # file startx

7. Command document path

When you type some commands such as find, shutdown, mount, and startx, do you want to know which directory these documents are stored in? Run the whereis command, for example, # whereis startx.

8. Search for documents

The find command must add some parameters to query the document, for example, # find/usr-name XF86Setup-print to search for the document XF86Setup in/usr.

9. Delete useless core documents

Sometimes a file named core is generated after the program runs. This file is usually large and useless and can be deleted to release space.

10.20.open .tar.gz

To decompress the .tar.gz document, you must first decompress it with gunzip and then decompress it with tar. This can be done once in Linux, for example: # tar zxpvf sample.tar.gz

11. display the long document name in the win95 Partition

If you find that the long document life In the win95 partition cannot be displayed, you can mount it again in vfat mode. Modify the/etc/fstab file for the mount partition at startup and change the msdos text to vfat. If vfat mount cannot be used, recompile the core and add support for vfat.

12. Norton Commander in Linux

After you type the command mc at the prompt, you will see a very strong interface with Norton commander, and the functions on the page are also very powerful, such as directly performing operations on the documents in the .tar.gz package (a bit like ZipMagic ). Copyright statement: All articles on this site are from the Internet. Comments reposted on this site do not represent the views of this site.

13. directly go to X after startup

Edit the/etc/inittab document and change id: 3: initdefautl to id: 4: initdefautl. However, there may be some problems with the search path. When you shut down, you must directly go to/sbin to perform shutdown.

14. Run X programs in the background

When you run an X program, do not forget to add an & sign next to it, for example, # netscape & otherwise, you will no longer be able to enter commands in that terminal window before launching the program.

15. Force exit X

Sometimes in X, the mouse and keyboard do not work due to program errors. In this case, don't worry, because in Linux, it is almost not as vicious as IN Win95, you only need to press Ctrl Alt BackSpace to return to the character interface.

  1. Basic Security Linux system security commands
  2. Beginner's school: full access to basic embedded Linux knowledge
  3. New Tricks: Create a lock file in the Linux operating system

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.