LinuxGem
此处为老的 LinuxGem,新版 LinuxGem 请移步 www.linuxgem.org

在 bash 中忽略不关注的文件

galeki posted @ 2008年11月02日 03:48 in Bash 和它的朋友们 with tags bash , 4601 阅读

嗯,这个题目有点不知所云,其实很简单。

bash 中有个自动提示的功能,只需输入文件名的一部分,再按下 Tab 键 bash 就会帮你自动补全,帮我们大大降低了手指和键盘的损耗~

有的时候,目录下面的文件,只有扩展名不同,而我们只需要关注一种扩展名的文件。典型的例子就是编译 C 程序,example.c 也会在目录下编译出一个 example.o,这个时候如果我们输入:

vi  ex <TAB>

只会自动补全为:

vi  example.

最后那个 c 扩展名还得手动加上去,其实我们从来不会编辑 example.o 文件。

bash 有一个环境变量,可以帮你忽略掉不关注的文件,那就是 FIGNORE。如果你想不再自动提示  *.o 文件,只需:

export   FIGNORE='.o'

这样 bash 就不会帮你补全 .o 文件了。

FIGNORE 中也可以指定多个文件扩展名,用冒号分隔:

export   FIGNORE='.o:.bak:.tmp'

aBiNg 说:
2008年11月02日 22:50

强大的 bash,这也行。学到了。:D

看到 说:
2008年11月03日 19:15

你应该介绍一下像photoxx 这样的程序,因为很多傻瓜不会用 gimp ,天天嚷嚷着要傻瓜相片处理软件。应该有几种类似 phtoxx 的东西。

http://kornelix.squarespace.com/fotoxx

Head_small
galeki 说:
2008年11月04日 03:40

哎,上面的网站我咋用代理也进不去。

Ted 说:
2008年12月31日 21:34

好用,不错

Robinjack 说:
2020年12月28日 00:21

Hey there! Someone in my Myspace group shared this website with us so I came to take a look. I’m definitely enjoying the information. I’m bookmarking and will be tweeting this to my followers! Excellent blog and outstanding style and design. eagle point property management

안전놀이터 说:
2021年1月17日 19:49

Hiya, I’m really glad I’ve found this information. Nowadays bloggers publish just about gossips and net and this is actually irritating. A good blog with interesting content, this is what I need. Thank you for keeping this website, I’ll be visiting it. Do you do newsletters? Can not find it.

Robinjack 说:
2021年1月29日 23:02

This is one very interesting post. I like the way you write and I will bookmark your blog to my favorites. Ross Levinsohn Maven

Robinjack 说:
2021年2月17日 00:28

Definitely,Chilly place! We stumbled on the cover and I’m your own representative. limewire limewire boston pest control

cmd368 说:
2021年4月06日 21:55

Hi excellent website! Does running a blog similar to this take a great deal of work? I’ve absolutely no expertise in programming but I was hoping to start my own blog in the near future. Anyways, should you have any suggestions or tips for new blog owners please share. I understand this is off topic but I simply needed to ask. Thanks!

Robinjack 说:
2021年4月24日 20:16

Excellent article, almost all of the data was incredibly useful. Monthly Income Review

workwear jacket 说:
2021年5月26日 13:38

This website is my aspiration , very wonderful pattern and perfect articles .

Robinjack 说:
2021年7月01日 18:38

You have some real insight into the things you write about. Do you still feel this way? On line Baccarat Activity

forex market 说:
2023年8月16日 16:39

An interesting discussion may be valued at comment. I believe that you need to write more on this topic, may well be described as a taboo subject but typically folks are insufficient to speak on such topics. Yet another. Cheers curtain with floral

forex market 说:
2023年8月20日 23:26

What I wouldnt give to have a debate with you about this. You just say so many things that come from nowhere that Im fairly positive Id have a fair shot. Your blog is terrific visually, I mean people wont be bored. But others who can see past the videos and the layout wont be so impressed with your generic understanding of this subject. UFABETแทงบอลบนมือถือ

haider 说:
2023年8月21日 17:36

I am curious to find out what blog platform you have been working with? I’m experiencing some small security issues with my latest site and I would like to find something more risk-free. Do you have any suggestions? แทงใบเหลืองใบแดงUFABET

forex market 说:
2023年8月21日 23:29

There are a couple of interesting points over time here but I don’t know if I see every one of them center to heart. There’s some validity but Let me take hold opinion until I take a look at it further. Excellent post , thanks and now we want much more! Added onto FeedBurner also UFABETแทงบอลทายผลผู้ชนะ

forex market 说:
2023年8月23日 22:02

Hey, I just started reading your blog – thank you for writing. As an FYI that it’s not displaying properly on the BlackBerry Browser (I have a Pearl). Anyway, I’m now subscribed to your RSS feed on my laptop, so thanks again! 안전놀이터

haider 说:
2023年8月23日 22:08

The electronic cigarette makes use of a battery and a small heating aspect the vaporize the e-liquid. This vapor can then be inhaled and exhaled เว็บพนันบอลออนไลน์อันดับ1

forex market 说:
2023年8月24日 17:41

Very good written story. It will be helpful to everyone who usess it, including yours truly Smile. Keep doing what you are doing – i will definitely read more posts. UFABET เว็บพนันแตกง่าย

haider 说:
2023年8月24日 18:48

Excellent line up. We will probably be linking to this great article on our web site. Keep up the great creating. เว็บบอลออนไลน์UFA

haider 说:
2023年8月25日 01:27

I was just looking for this information for some time. After six hours of continuous Googleing, finally I got it in your website. I wonder what’s the lack of Google strategy that do not rank this type of informative sites in top of the list. Generally the top sites are full of garbage. สมัครแทงบอลฟรี

forex market 说:
2023年8月25日 14:19

I just couldn’t leave your site before suggesting that I extremely loved the usual information a person supply for your guests? Is going to be back ceaselessly to investigate cross-check new posts. เว็บไซต์แทงบอลอันดับ1

forex market 说:
2023年8月26日 00:50

hello!,I like your writing very so much! percentage we be in contact more about your article on AOL? I require an expert on this area to solve my problem. Maybe that’s you! Having a look ahead to look you. เว็บพนันออนไลน์UFA

haider 说:
2023年8月27日 18:15

I’d must talk with you here. Which isn’t something It’s my job to do! I love reading an article that can get people to feel. Also, many thanks permitting me to comment! 메이저사이트

haider 说:
2023年8月30日 16:54

I’d have to consult with you here. Which isn’t something I usually do! I like reading an article that can make people feel. Also, many thanks for allowing me to comment! 메이저사이트

haider 说:
2023年9月03日 20:05

When I originally commented I clicked the -Notify me when new surveys are added- checkbox and already every time a comment is added I buy four emails with the same comment. Perhaps there is that is you possibly can eliminate me from that service? Thanks! 안전놀이터

forex market 说:
2023年9月05日 00:55

Thank you for the good critique. Me and my cousin were just preparing to do a little research on this. We grabbed a book from our area library but I think I’ve learned better from this post. I am very glad to see such great info being shared freely out there. salingsilang

haider 说:
2023年9月08日 22:56

Thank you for the good writeup. It in fact was a amusement account it. Look advanced to more added agreeable from you! However, how can we communicate? filmyzilla 2023

haider 说:
2023年9月14日 21:23

For ice cream program, you would love your activities with long term ice cream flavors along with flavors of month sub method and significantly far more other system. You would get every month new taste of month for ice cream under flavor of month subprograms. Other subprograms are sherbets, rotators, sorbets, ices, small fats and yogurts gone nuts. สล็อต

haider 说:
2023年9月20日 00:48

At times it’s easier to simply take a step again and also understand that not everybody shares your own values custom birthday crocs

haider 说:
2023年9月23日 16:38

I’ve been recently meditating on the very same matter personally lately. Happy to see somebody on the same wavelength! Nice article. roof cleaning southampton

jmaes 说:
2023年9月24日 14:04

Thank you for the sensible critique. Me & my friend were just preparing to do a little research about this. We got a book from our area library but I think I learned better from this post. I am very glad to see such wonderful info being shared freely out there… shillong teer common number

jmaes 说:
2023年10月02日 23:29

I am not sure where you’re getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for wonderful info I was looking for this information for my mission. Kalaastar song lyrics

james 说:
2023年10月06日 18:55

After study a handful of the blogs on your internet site now, we really like your technique for blogging. I bookmarked it to my bookmark internet site list and are checking back soon. Pls have a look at my web page too and let me know if you agree. chicken crocs

ds 说:
2023年10月12日 18:38

That's give attention to you need to certain research prior to authoring. Will probably be achievable to be able to a lot more attractive post this way. Gutter Cleaning Poole

ds 说:
2023年10月14日 01:05

I am not sure where you’re getting your information, but great topic. I needs to spend some time learning more or understanding more. Thanks for wonderful info I was looking for this information for my mission. transparent training bra

ds 说:
2023年10月21日 13:53

I’m not sure where you’re getting your info, but great topic. I needs to spend some time learning much more or understanding more. Thanks for excellent information I was looking for this info for my mission. แทงบอลเงินสด


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter