What I learned from linux over the past few days

Source: Internet
Author: User
I have learned about linux over the past few days-general Linux technology-Linux technology and application information. The following is a detailed description. I heard that linux is highly efficient, so I was so worried that fedoar8 was downloaded and installed from the hard disk in February 28! When the sound card was installed, the sound card was detected, but the sound card could not be played. It was very depressing. After several days of hard work, the mplayer and related plug-ins were installed. Currently, the mpeg format can be played, but I don't know why I can't play it. avi format, no matter how it works.

However, I use linux to work. To improve efficiency, I cannot really improve efficiency without knowing commands. So I decided to start learning bash. Maybe it is a bit of a reason for C language basics, I think bash is quite easy to learn.

Today, we can finally compile some useful code segments!

I hope you can give me some advice!

1) find and delete: find./-name ***. mpeg-exec {}\;

2) Search for the name of the input file from the keyboard and copy it to the specified directory:
Mtv = "lianjie/wind/mtv"
Echo "The program is \" 'basename $0 '\"."
Until [-z "$1"] # test whether the length of "$1" is zero
Do
A = 'Find $ mtv-name $1'
If [-f $ a]
Then
Cp $ a $ HOME/lmtv
Fi
Echo "$ a copied! "
Cat $1
Shift # Move the parameter left
Done
Exit 0

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.