7
votes
1answer
546 views

Using dircolors, how do I change the color of my subversion folders

Below is a sample of my dircolors file, I want subversion folders (.svn) to be colored, but i guess the extension section only applies to file names. How do i set colors for directories with ...
4
votes
4answers
1k views

file $(ls /usr/bin/* | grep zip) command gives me errors. What's wrong?

I'm a total noob when it comes to unix/linux commands and I decided to read a book. I've reached a chapter where they try to explain how to pass the output of commands as expansions to the shell. ...
2
votes
1answer
225 views

Rename beginning of file name using specific text in the file itself

I have many files in directory (file1.txt, file2.txt, ...) Every files contains bunch of lines. One of the line is specific text thetext followed by random number just like thetext56, thetext21, etc. ...
2
votes
2answers
817 views

use iptables to allow incoming connections to some computer on port XYZ?

This is what I have: iptables -i em1 -A INPUT -j ACCEPT -p tcp --dport 9001 -v. If I want to accept incoming connections on port 9001 at this (127.0.0.1, or on the network 192.168.1.143) address, ...
2
votes
2answers
226 views

Move one file at a time based from specific number in the files

Based from this question, The HTML files date format has been changed. All of the HTML files have the date such like below: 20110730dateishere dateishere is intentionally added by me in the files, ...
1
vote
2answers
795 views

Are there programs that work for Red Hat but not Ubuntu?

And vice versa? What about other distributions too?
12
votes
2answers
2k views

Italics in Emacs on a text terminal (rxvt-unicode)

I am using Emacs running in an urxvt, and I cannot get italics to work in Emacs although the terminal supports it. Here’s my current setup: I haven’t set $TERM, so it is the default ...
2
votes
1answer
89 views

laptop running arch abruptly switches off when ripping video files

Whenever I try to transcode a movie or a large video file, my laptop always switches off abruptly some time after the transcoding has begun. I initially thought that this had something to do with my ...
7
votes
2answers
2k views

How to stop xargs from badly merging output from multiple processes?

I'm using xargs with the option --max-args=0 (alternatively -P 0). However, the output of the processes is merged into the stdout stream without regard for proper line separation. So I'll often end ...
26
votes
1answer
497 views

A shell tool to “tablify” input data

A long time ago I remember using a command that makes its input into a nicely formatted table. For example, for this input, apple 1 100 orange 20 19 pineapple 1000 87 avocado 4 30 The output will ...
6
votes
4answers
6k views

How to know if a pdf file is compressed or not and to (un)compress it

I just learned that pdf files can be compressed to reduce its disk size. I was wondering how to know if a pdf file has already been compressed? What applications/commands can be used to compress or ...
9
votes
6answers
10k views

Default applications (GNOME 3)

I'm trying to associate a custom application to a file type in GNOME 3 (FC15). In GNOME 2 one could go in the "Open with" pane of the file properties dialog and add a custom command there. The custom ...
6
votes
2answers
4k views

opening multiple URLs from a text file as different tabs in Firefox/Chrome?

How I would go about opening multiple URLs from a text file as different tabs in Firefox/Chrome? My text file is just a list of URLs, one per line: http://www.url1.com http://www.url2.com ...
7
votes
1answer
320 views

Change date “July 29th, 2011” to “20110729”

I have lots of HTML files contains date with format July 29th, 2011 I want to change date format July 29th, 2011 to 20110729, December 9th, 2010 to 20101209, etc. I think sed may works but still ...
3
votes
2answers
177 views

How to detect out-bound port from PID

I have several applications that run on random ports. How would I take the pid or the file location and find which port it is running on? Example of desired output: www-data/apache = 80 ...
4
votes
1answer
832 views

urxvt transparent cursor

I've changed my .Xdefaults for a black background, white foreground, but my cursor is now opague. I can't see the letter I'm over, and worse, I can't see my screen hardstatus. Google is just pulling ...
4
votes
1answer
1k views

Linux support for new Sony Vaio Z external graphics card?

The new Sony Vaio Z series laptop comes with a media dock that has a USB connection (Light Peak) to an external AMD Radeon graphics card. What is the support for devices like this in Linux?
19
votes
4answers
4k views

What happens to the output of a process that has been disowned and lost its terminal?

If I close the virtual terminal, where some process was started, does the output just go straight to /dev/null, or can it pollute memory somehow? Can I anyhow grab the output to continue reading it at ...
6
votes
1answer
787 views

`^M` at the end of each line of text files generated under Windows

I was wondering why if you open a textfile made in Windows notepad under unix you will find that it has ^M where there should be a new line? My understanding is that in Windows, every line is ended ...
5
votes
2answers
2k views

Utility to get binary representation from string?

Is there a simple utility like printf that'll give me a "binary representation", i.e. a string like "01010010", from an input string? It would need to support multi-byte encodings.
4
votes
1answer
349 views

Netbook Remix [EasyPeasy]: How to add a Mozilla Prism to Favorites

I'm setting up a old laptop with EasyPeasy, the only Linux distro I could get to install on it. I want to put a Prism in the favorites that will bring up a web site we use frequently. I created the ...
8
votes
2answers
407 views

How does `find . -name *foo*` work?

I thought the wildcard * in the command find . -name *foo* is replaced by bash, and yet the command works unless *foo* matches something in the current directory, then it doesn't. It's confusing.
3
votes
2answers
5k views

ACPI wakeup from keyboard/mouse via /proc/acpi/wakeup after suspend. How to find the correct device?

I'd like to wakeup my system via keyboard or mouse. This can be done via /proc/acpi/wakeup and a simple echo DEVNAME > /proc/acpi/wakeup my wakeup file looks like this Device S-state ...
3
votes
3answers
173 views

Doing actions on a list from the shell

I have a list of packages I want to deinstall. The deinstaller program pkg_deinstall doesn't take a list of packages as parameter to deinstall. How would I deinstall from the list (like a foreach ...
3
votes
1answer
739 views

Hauppauge TV Tuner Card with Motorola STB and LIRC

I have a MythTV PV VM under Xen which I've spent about 2 weeks getting up and running. Everything seems to be working fine; PCI passthrough gives the card to the guest OS (OpenSUSE 11.4), the digital ...
2
votes
3answers
519 views

Installer not booting on Intel Atom 64bit CPU [closed]

I used to have Debian 6, the 64bit version working fine on this system. I'm now trying to install Arch (64bit) and the installer won't boot. Can anybody help me troubleshoot this issue? EDIT: My ...
5
votes
1answer
3k views

SWF to PDF conversion

Are there any tools for converting SWF to PDF? I have a bunch of SWF files (to be ripped from the web) and I'd like to group them into single PDF.
3
votes
1answer
1k views

Linux compatible motherboard

Where can I find a list with Linux compatible motherboards. I want all features of the motherboard to work reasonably well with latest valilla Linux kernel (ie, clearly document that I need external ...
5
votes
2answers
4k views

wget recursive for only files that pass a regexp

I would like to use wget recursively on an ftp directory like this: ftp://ftp.ensembl.org/pub/current_fasta/ Which contains another 2 directory levels inside, the first with the species name, and ...
6
votes
1answer
131 views

Where can I find out how to write a shell script that is as portable as possible? [duplicate]

Possible Duplicate: Resources for portable shell programming I want to write a shell script that is intended for further distribution. So I'd like to write it in a way that is as portable ...
5
votes
4answers
606 views

Equivalent of forward/back buttons for unix shell (when navigating directories)?

I'd like to be able to type in terminal commands of forward/back especially if I went from a directory with a super-long name to home (and want to return back to the directory with the super-long ...
5
votes
1answer
7k views

How to create UDF images and burn them to DVD or CDROM?

Writing CDs with cdrecord and making images with genisoimage is no problem. I want to write DVDs in a similar manner, first creating an image, then burning it to disk. This is quite beneficial, since ...
2
votes
4answers
308 views

How to chop the last “/script.sh” part from a string?

How could I modify this INPUT: /home/USER/Desktop/script.sh to this OUTPUT: /home/USER/Desktop/ ...using bash or perl? Of course script.sh could be anything: (e.g. scrasdfipt.sh, etc) and the ...
1
vote
1answer
7k views

How to rescan scsi bus devices?

How can I rescan a scsi bus for new devices under OpenSUSE? I think it contains something like this: echo "- - -" > scan
1
vote
2answers
1k views

If I run ./configure, then make again, then will it ruin things if I want to run make a 2nd time?

http://www.unidata.ucar.edu/software/netcdf/docs/netcdf-install/Quick-Instructions.html#Quick-Instructions is what I'm trying to install. Anyways, I ran ./configure and make but then I ran make ...
0
votes
1answer
1k views

How to configure DUAL-WAN on a Linux/*BSD machine?

I have two internet connections. The cables from the two ISP's (dhcp; 1-10/10 Mbit; 2-20/20Mbit connection) are on two interfaces: eth0 and eth1. On eth3 there is a Gbit switch and on the switch there ...
1
vote
1answer
392 views

Command-line way of send pinging

I have lots of Drupal powered website. Each of the website has Multiping module to pinging ping server. Is there any way of send pinging through command-line? I hope I can build dedicated server for ...
2
votes
2answers
105 views

What Unix programs can I *not* install when I have a standard undergraduate directory account?

I'm an undergrad in the astrophysics department and I have access to the Red Hat Linux computers, but only from an undergrad account I tried installing matplotlib once, but it was a massive pain (and ...
8
votes
3answers
3k views

Is there a maximum size to the bash history file?

Can I increase the size of the command history in bash? Note that I use a Red Hat Linux computer in the undergraduate astrophysics department here (so I don't get that many privileges).
5
votes
2answers
2k views

What's the difference between tar.gz and tar.Z?

The downloads on this page, e.g. of NetCDF C/C++/Fortran 4.1.3, show tar.Z and tar.gz formats. The tar.Z doesn't even have a configure file in it. What is it used for?
2
votes
1answer
2k views

What is the interaction of the rsync --size-only and --sparse options?

If I use rsync with the --size-only and --sparse options together, if a file already exists at the destination as a full file (otherwise the same) it's not overwritten. If I omit the --size-only ...
2
votes
2answers
132 views

Vim markers and macros

Is there a way to make a macro operate up to a marker? I know if I do 5@a my macro will operate on 5 lines. Example: set marker with `mc` record a macro with `qa` ... now what? Obviously 'c@a just ...
4
votes
1answer
1k views

Unable to mount a second hard drive in Ubuntu Server

I am adding a second drive to my Ubuntu Server. It was previously in a FreeNas system, but I got rid of the XFS partition and created an ext4 partition (in an older Ubuntu system). I then backed up ...
12
votes
2answers
2k views

How to safely pass variables to root-enabled scripts?

This question is totally general and not only applicable to my situation, but... I have a small busybox appliance where I want a non-root user to be able to execute a particular script with root ...
9
votes
4answers
8k views

Find out what device /dev/root represents in Linux?

On linux, there is a /dev/root device node. This will be the same block device as another device node, like /dev/sdaX. How can I resolve /dev/root to the 'real' device node in this situation, so ...
3
votes
1answer
361 views

Conditionally killing a process based on its output

I have a REPL (read-eval-print-loop) for the Clojure programming language listening on a network socket. I can send it code over the network and the code will be evaluated and the answer sent back to ...
3
votes
2answers
3k views

How to find a writable file owned by root?

How can I find a file on my hard drive created by root that has write permissions?
5
votes
3answers
4k views

Meaning of patching binary files?

I am trying to understand what it means by patching binary files in an example from the manpage of xxd: Patch the date in the file xxd.1 % echo "0000037: 3574 68" | xxd -r - xxd.1 % xxd -s 0x36 -l 13 ...
4
votes
1answer
624 views

What are the cons of using VirtualBox guest additions?

There's a number of advantages to installing Guest Additions in VirtualBox guests: one can copy-paste between host and guest one can run guest as fullscreen There must a whole lot more, so that ...
2
votes
0answers
145 views

How can I switch scim’s IMEs via command line?

I have a bunch of SCIM IMEs installed. I switch between them via hot-key. Is there a way to switch between them programmatically? Can I even switch SCIM on and off via command line? I use Ctrl+Space ...

15 30 50 per page