4
votes
1answer
979 views

Which order does find command use to print out

What order does the find command use to print out a list of files? Is this order different across different Linux distributions or versions?
6
votes
7answers
2k views

Why is Unix still used if Linux is based off of it, and Linux is free?

Also, it seems that Linux has a much friendlier user interface. Has Unix been trying to "keep up"?
2
votes
1answer
825 views

What does the syntax of these echo commands mean?

I tried to use a copied script, which includes the following command echo "rc $2" > $WORKDIR/out.dat I can guess it tries to output some contents to file out.dat. But what does rc $2 mean? It ...
2
votes
1answer
1k views

How to configure a catch-all CNAME on Ubuntu Linux using BIND 9

I'm trying to set up APE server on my local system. I'm using Ubuntu and BIND and I need to set up a catch-all CNAME record. What would be required for this?
3
votes
3answers
9k views

How to find processor speed on Linux w/throttling

My /proc/cpuinfo says my processor is 800Mhz, when I know the thing is actually 2.8Ghz. This is due to idle throttling where the cpu clock is slowed when idle to save power. Is there a way in Linux ...
2
votes
1answer
3k views

Authenticating with x11vnc: what's the difference between -auth and -rfbauth?

I'm on xubuntu 11.10 trying to setup x11vnc server. I followed instructions here and I can connect to VNC server - but it never asks me for password! Is there a difference between these 2 options: ...
9
votes
2answers
15k views

How to alter PATH within bash script?

I have several projects that require me to change versions of Java/Grails/Maven. I'm trying to handle this with some Bash scripts that would make the changes. For example: #!/bin/sh export ...
2
votes
2answers
32 views

Why would cvs check in a diff instead of a file?

I did a checkout recently, and one of the files was not the file that I checked in, but rather it was a diff of that file and the previous version. Is cvs known for this kind of error?
6
votes
3answers
431 views

vim regex not need \ to escape

In Vim is there an option to write regexs in the same style as Awk for example/sp\{0,\}/ Would be /sp{0,}/
1
vote
1answer
70 views

Can I use tail with a file both as input and destination?

I have a log file that gets big fast. I tried using tail with this syntax but it didn't work. tail logfile.log -n 100000 > logfile.log The output file is 0 bytes and blank. What am I doing ...
3
votes
1answer
2k views

Why am I getting a Non-existent class error in PHP on Fedora?

I've set up an Nginx/PHP (both installed from Yum) environment on my Fedora 15 install, but I've run into a strange issue. I have some projects that use Codeigniter (1.6), but they keep getting the ...
1
vote
1answer
625 views

Every time I restart my computer I need to restart Bluetooth service, how can I fix this?

Every time I turn on, restart or wake up my notebook or I have to restart my Bluetooth service in order for me to use it. But once I restart the service everything is fine. How can I delay the start ...
3
votes
1answer
1k views

Command for swap info in HPUX itanium and HPUX PARISC?

I need to get commands for swap information in HPUX (both Itanium and PARISC) somebody please help.
6
votes
1answer
11k views

Is there a command which will force Linux to flush cache of one file on an NFS share?

Related to this question on StackOverflow, I am wondering if there is a way for me to flush the NFS cache / force Linux to see the most up-to-date copy of a file that's on an NFS share. I have a ...
3
votes
1answer
1k views

How to enable nagios user created by yum to use check_by_ssh

I've used yum install nagios on an Amazon Linux instance, and it created a nagios user with shell /sbin/nologin and homedir /var/spool/nagios. This is the behaviour on EC2. I want to use check_by_ssh ...
16
votes
4answers
2k views

How can I use man without less?

By default, man uses less to output text. How can I tell it to just output to stdout? My terminal emulator has a scroll bar and search function and I want to use those instead of the arrow keys.
1
vote
3answers
386 views

ksh cannot cp from location with space in it?

I am trying to do the following in ksh but keep getting cannot stat message for the cp command: JMX_ROOT=/bfs-build/build-info/mep_mainline-Linux.latest/core/mainline/automation ...
1
vote
1answer
585 views

How can I make custom key bindings work even while SSH-ed into another machine?

I've added "\eOD": backward-word "\eOC": forward-word to my .inputrc to get ctrl-arrow key mappings sorted out in Cygwin allowing me to move forward and back fine. When I SSH to any other Linux ...
27
votes
2answers
21k views

How can I set VIM's default encoding to UTF-8?

I'd like to contribute to an open source project providing translated strings. One of their requirements is that contributors must use UTF-8 as the encoding for the PO files. I'm using VIM 7.3 on ...
1
vote
1answer
1k views

Concatenate multiple strings with spaces in them?

I am trying to do the following in ksh shell: JMX_ROOT=/bfs-build/build-info/mep_mainline-Linux.latest/core/mainline/automation SMOKE_JMX_LOCATION="$JMX_ROOT/\"Smoke Set\"/*.txt $JMX_ROOT/\"Smoke ...
2
votes
2answers
12k views

Where to find the error messages of Postfix

I cannot sent mail by using Postfix (SMTP) on Ubuntu Server 11.04. So, there must be some errors, But where to see the error message?
9
votes
2answers
18k views

show gateway IP address when performing ifconfig command

Currently, when using the ifconfig command, the following IP addresses are shown: own IP, broadcast and mask. Is there a way to show the related gateway IP address as well (on the same screen with ...
1
vote
3answers
179 views

Why FreeBsd is using man word for various functions?

Ok, I'm a newbie in FreeBsd and for your info I only know MS windows before this. I wonder why FreeBsd love to use man in various places, for example: FreeBsd Man Pages - This interface will allow ...
1
vote
1answer
193 views

How do I change the path used by the Gnome Command Line applet?

For my shell, I know that I have to modify .bashrc to add my ~/bin directory to the command path, but how do I get the Gnome Command Line applet to use that as a program location too? I'm using ...
6
votes
1answer
2k views

How does the Unix “fsck” differ from the Windows “chkdsk”?

What are the differences between Unix's fsck and Windows' chkdsk?
2
votes
1answer
187 views

What exactly is a “home directory”?

When your University sends everyone an e-mail saying "We're sorry! One or more of our disks have failed; thus we've lost 'x' number of home directories on our servers." Is it basically just the root ...
9
votes
2answers
2k views

How can I list the top IO consuming files?

My document management software is doing a lot of IO and I would like to know which files it is accessing the most. Is there a Linux tool that would give me the list of the top IO consuming files, ...
6
votes
2answers
748 views

How would I sort these directory names numerically?

I'm aware that I can somehow sort this output numerically (so cpu1/ follows cpu0/) ... I could probably get something to work eventually by splitting up the string various ways with awk, but is there ...
7
votes
3answers
1k views

How to stop a bunch of processes on unix fast?

How to stop a bunch of processes on unix fast. I can use ps/top, kill. If the number of processes is very large, I use shell script. Are there other ways, only one or two unix commands can do it ...
2
votes
1answer
431 views

What ghc package does cabal-install need?

I've just installed cabal to try and get http://dmwit.com/yeganesh/, but on running cabal-install it throws the error: cabal: ghc version >=6.4 is required but it could not be found. Apt-cache ...
11
votes
3answers
35k views

Command line to return to the GUI after Ctrl-Alt-F1?

I'm unable to return to the GUI with Ctrl-Alt-F7 (or any of the 12 function keys). I have some unsaved work and I don't want to lose them. Are there any other key combinations that will allow me to ...
9
votes
1answer
954 views

Why am I getting 'Name collision between …' errors and how can I fix them?

Every time I try to launch vim or emacs or even top (I think it's actually any command that uses ncurses) in a unix terminal (on a cluster computer over ssh), I get a a continuous stream of 'Name ...
1
vote
2answers
4k views

Why doesn't the following work?: while true; do “$my_command”; sleep 1; done

Following up on the top answer to this question, I thought I could: 1) Define a command: cmd='for x in $(my_command | grep keyword | cut -d" " -f1); do command2 "arguments" $x; done' 2) Run it ...
1
vote
1answer
3k views

Reinstall or repair Network-manager-gnome in Ubuntu lucid lynx 10.04.3 LTS offline

My custom made lubuntu slim 10.04 LTS based distro with many official repositories from ubuntu based distros and stable distros/softwares ppas has a problem with network-manager, is there a way to ...
3
votes
2answers
6k views

Strip trailing whitespace from files

The answer to removing trailing whitespace with sed has most of the answer, but I want sed -i 's/[ \t]*$//' $1 to be able to take arbitrary number of file arguments as a shell script on the command ...
7
votes
4answers
20k views

How can I embed subtitles into videos with ffmpeg?

I'm told it's possible to embed subtitles (.srt) into video files (.avi) using ffmpeg, but I can't find any mention of it in the man page. Is this possible? What command do I use?
8
votes
1answer
5k views

Enable num-lock as default in Linux

There has been a similar question - but IMHO there has to be a simpler solution. If num-lock is on in the BIOS - why is it turned off during linux boot and/or KDE/Gnome/whatever startup?
5
votes
1answer
2k views

Wrapping a command that includes single and double quotes for another command

I recently learned about watch, but am having trouble making it work with relatively sophisticated commands. For example, I would like to ask watch to run the following command on zsh every three ...
3
votes
2answers
1k views

Concatenating columns horizontally. Printing only rows that intersect on 1st column

Say I have two different commands that output contents by columns, e.g.: $ command_1 7049857 abc fdg hsi 5409858 xxx fyy hsi 540958 abc zzz hsi 54230956 rbc sss hsi $ command_2 7049857 0 fdg ...
3
votes
3answers
2k views

Speakers make popping sound when on battery power. What should I do?

I am running Linux Mint 11 on my notebook, which is basically a variation of Ubuntu. I have been hearing a popping noise in the speakers ever since I installed the OS, but just now realizing that the ...
2
votes
1answer
392 views

How to open a file in the last closed position in VI

I want to open a file which is closed in line xxx. So I can easily continue editing
2
votes
2answers
440 views

Simple wrapper scripts spawning 100s of bash processes

I have this kind of GCC multilib wrapper set up: #file: gcc #!/usr/bin/env bash gcc -m32 "$@" which essentially just wraps a 64-bit multilib gcc to act as a non-multilib 32-bit gcc. When I build ...
6
votes
2answers
4k views

mount freebsd slice partition under linux

I have under linux: Device Boot Start End Blocks Id System /filename.img * 63 1007999 503968+ a5 FreeBsd Under above partition i have two ...
7
votes
3answers
4k views

How to remove Notepad from the applications list?

After installing Wine, Notepad has became a default application to open unknown textual files by double click. I'd like to eliminate this behaviour and remove Notepad from the list of applications ...
3
votes
1answer
809 views

How to change the flag pictures XFCE Keyboard Layouts applet uses for its indication?

XFCE Keyboard Layouts panel applet offers to use either textual or graphical indications. But the font used for textual indication is too small and the flag icons used for graphical are too blowzy. ...
2
votes
1answer
175 views

How can the log-in screen sound of linux mint 11 be changed?

How can I customize the sound that occurs when the log-in screen pops up on linux mint 11?
1
vote
0answers
279 views

Can the background of the log-in screen of linux mint 11 change? [duplicate]

Possible Duplicate: How do I configure the GNOME gdm login screen? How can I change the background picture of the log in screen of linux mint katya?
5
votes
3answers
760 views

Piping into less and editing: “cannot edit standard input” error. Workarounds?

I recently learned that if I page my files with less, I can press v and open the buffer in Emacs. This works as long as I have the environment variable $EDITOR set up correctly, which in my case I ...
7
votes
2answers
3k views

diff where lines are mostly the same but out of order?

I want to diff two sets of mod_rewrite rules. The set of lines are about 90% identical, but the order is so different that diff basically says they are completely different. How can I see which lines ...
3
votes
3answers
21k views

How to ssh to remote server using a private key?

I have two servers. Both servers are in CentOS 5.6. I want to SSH from Server 1 to Server 2 using a private key I have (OpenSSH SSH-2 Private Key). I don't know how to do it over unix. But what I did ...

15 30 50 per page