1
vote
1answer
632 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
414 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
613 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 ...
29
votes
2answers
22k 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
13k 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?
11
votes
2answers
20k 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
200 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
192 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
1k 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
820 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
463 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
38k 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
983 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
2k 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
431 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
447 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
3k 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
887 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?
6
votes
3answers
823 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
23k 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 ...
0
votes
3answers
1k views

Read first line of a command's output. Command connects me to a remote terminal

Part 1 Say I have a command my_command that outputs multiple lines. I would like to capture the first line of my_command's output as soon as it's ready in a script, while keeping my_command ...
1
vote
1answer
471 views

What unix certifications are available? Are there any self-taught?

I have a friend who is a Red Hat Certified Engineer. I also know there is the Linux Professionals Institute LPIC-1, 2, & 3. Are there other popular ones? How do I pick one to start with?
1
vote
2answers
9k views

How do I install Samba on Red Hat Linux?

I have just downloaded the samba-3.6.1.tar.gz file from the Samba website and want to install Samba on my RedHat Linux machine, I have extracted the contents of the samba-3.6.1.tar.gz folder but ...
6
votes
3answers
1k views

How does one open a new window from the shell with a specific size and position?

For example, say I wanted to start gnome-terminal with it's northwest corner at 0,0, and make the window 736x434 pixels (apparently the default, which allows for an an 80-character by 24-character ...
6
votes
2answers
23k views

Where does postfix store email?

I can't find any documentation on how postfix stores email. Where is it stored, and in what format? I'm using Ubuntu server 11
2
votes
3answers
2k views

Syntax error comparing floats with bc

I'm trying to use the comparison operator of bc and I'm getting a "syntax error on line 1 stdin" error. I need to use the comparison functionality within a korn script because korn doesn't handle ...
8
votes
2answers
5k views

How to check, which limit was exceeded? (Process terminated because of ulimit. )

Let's assume process runs in ulimited environment : ( ulimit ... -v ... -t ... -x 0 ... ./program ) Program is terminated. There might be many reasons : memory/time/file limit exceeded ; just ...
5
votes
2answers
470 views

How can I find out the estimated power use of my desktop computer?

Is there a way to get the computer power usage instead of battery load tracking (what for instance seemingly powertop does), which is obviously not too useful on desktops?
5
votes
1answer
601 views

Pipes vs process substitution

While trying the cat "$@" trick to read from either standard input or given files, it turned out that pipe and process substitution handle a missing trailing newline differently: printf %s foo > ...
3
votes
6answers
5k views

Trying to set date on a Linux based machine from another machine

I am running busy box on an embedded platform. I would like to set the date on the box properly each time I reboot the hardware. I have no way to save the time persistently, so am reduced to setting ...
6
votes
1answer
414 views

Embedded linux LCD not calibrated

I have attached a new LCD to my embedded Linux device and when I run the system I found that it is shifted to the right. (the display starts from the middle of the LCD) I found 2 frame buffer drivers ...

15 30 50 per page