Skills accumulated in Linux over the past five years (4) -- Software

Source: Internet
Author: User
This article describes some Linux software skills. Author: JHGao & lt; gaopenghigh@gmail.com & gt

This article describes some Linux software skills.
Author: JH Gao
It has been five years since I first came into contact with Linux. like everyone else, I have to deal with it. Once in a while, I will record the method. now I will briefly summarize it.
Therefore, the command function can be used by man. I only list what I think is commonly used.

1. Techniques for Nautilus
Open a location: Ctrl + L
Open the parent directory: Ctrl + Up

2. in ubuntu's default PDF reader evince, 'J' and 'k' can scroll up and down

3. reduce the image size to 20% of the original size:

convert -resize 20%x20% IMGNAME NEWIMGNAME


4. mplayer character playback:
Mplayer-vo aa xxx. avi is played with a colorless character; mplayer-vo caca xxx. avi uses color ASCII characters for playback; mplayer-vo matrixiew xxx. avi is played on a terminal like the hacker empire!


5. You can use the software fbgrab for screenshots under the command line, with a latency of 10 s:
fbgrab -s 10 screen.png


6. Clone the vdi file in virtualbox:
VBoxManage clonevdi source.vdi target.vdi


7. easy-to-use quick operation software: synapse

8. custom terminal auto-completion, for example, I want to automatically complete parameters for ssh, ping, and myscript commands. the parameter names are written in the/tmp/my_word_list file. make the following settings in bashrc:
function _my_cmpl() {    local my_cmpl_words cur    COMPREPLY=()    cur="${COMP_WORDS[COMP_CWORD]}"    my_cmpl_words=`cat /tmp/my_word_list`    COMPREPLY=( $( compgen -W "$my_cmpl_words" -- "$cur" ) )}complete -F _my_cmpl ssh ping myscript


9. ssh save session:
Vi/home/username/. ssh/config (create one if no one is available). add the following content:
Host *ControlMaster autoControlPath /tmp/%r@%h:%p

Save and exit. you only need to log on to the server once and then log on to the same server on the new terminal, so you do not need to enter the password again.

10. ssh goes over the wall. if you have a server in the ingress and you do not need to ssh the password, you can use ssh for port forwarding to go over the wall. With switchy on Chrome or the autoProxy plug-in on Firefox, you can freely access the Internet.
Use the local port 7001 as the forwarding Port:
ssh -qTfnN -D 7001 root@YOUR_SERVER
Related Article

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.