-2
votes
1answer
80 views

Here document and input redirection with -

What does the following command do? In particular I don't understand the role of - in input redirection. cat <<-EOF | command $argument first option second option EOF Is it ...
11
votes
3answers
3k views

Is there a way to simulate a “Close” event on various windows using the terminal?

I answered on Ask Ubuntu Quit all instances of gnome-terminal via a command but as you all can read gnome-terminal didn't seems to have a SIGcall I could use to simulate this "Close" event. So this ...
5
votes
3answers
4k views

Grouped aggregate utility (like SQL GROUP BY)?

Unix has several utilities for performing relational algebra-like operations on streams (grep, join, cut, additional things with awk). Is there a grouped aggregate utility readily available (or ...
4
votes
5answers
195 views

How to return the directory of a given executable?

If I want to return the path of a given executable, I can run: which mysql Which returns for example: /usr/bin/mysql I'd like to return only: /usr/bin How can I do that?
14
votes
2answers
10k views

How to download an archive and extract it without saving the archive to disk?

I'd like to download, and extract an archive under a given directory. Here is how I've been doing it so far: wget http://downloads.mysql.com/source/dbt2-0.37.50.3.tar.gz tar zxf dbt2-0.37.50.3.tar.gz ...
0
votes
0answers
158 views

System cannot load Ubuntu based OS's

I built a computer a few months ago, specs listed here. I then installed Linux Mint 13, but then when I wanted to install Ubuntu, the install would start, and I would select "Install". But when it ...
31
votes
1answer
2k views

Were all Unix commands re-written in Linux?

I would like to know which commands were re-written for Linux and which were retained from Unix? I'm new to Linux.
4
votes
2answers
10k views

/var partition gets full what's the solution?

If /var partition gets full on Production server then what's the solution ? Below are my workaround: If it is LVM Partition then we can extend it online. We can compress logs. We can remove old ...
6
votes
2answers
48k views

Assigning the output of a SQL query to variable

I am connecting to oracle database and firing a query and assigning the output to variable But when I echo the value of the variable it doesn't get printed correctly. count=`sqlplus -s $configuser/$...
0
votes
2answers
8k views

Extract a sub-string out of a variable's value

I have a string in the form of segment_78787 which is stored in a variable called $ID in my shell script. I need to get the second part "78787" and assign it to another variable. I tried like ...
3
votes
1answer
444 views

How to create a file with the name specified in ASCII encoding?

I want to create a file that is called ascii 007, which is the bell symbol, which is not printable. I tried nano $'\007', but that just created a file called ?; cat ? print the test content, that I ...
0
votes
2answers
3k views

How to automatically login with root user in Fedora?

I want to enable auto-logon with root user for some specific purpose. It's so boring that every time I power on my PC to study, I have to input user and password.
1
vote
2answers
82 views

Privileges on Linux?

In Linux, I had created a userid. After creating this, I encountered a problem that the .EXE Files are not opened on simple click. They seem to be not privileged for my user account. How can I ...
0
votes
1answer
171 views

Unkillable process after connection lost to Samba share?

Using this manual I've mounted a Samba share. I'm copying files to it using a Python script. Everything is working fine until some problem with the network occurs. After that I get unkillable ...
5
votes
3answers
19k views

Restrict FTP user to a directory

Sorry if this is an obvious question, but I don't have a lot of knowledge about this sort of thing, and I've googled for hours, nothing worked. So on a Ubuntu 11.04 server, I want to restrict a user ...
1
vote
1answer
2k views

Changing title without changing prompt on Cygwin

I have the following shell script function from this site that allows me to change the title in both Putty and Cygwin. In Putty connected to a Linux host it changes the title and leaves the prompt as ...
0
votes
1answer
769 views

Issue with path to .so libraries

I have an issue with path to .so files. I have a server with two accounts user1 and user2. There is wget program, that is installed to user1 and I need it from user2. When I run it from user2 I get ...
0
votes
3answers
92 views

how to get data of ntfs to linux?

I have dual boot of Windows 2003 server and Cent-OS 6.X on my PC. I have files in windows environment, can I get those files using any utility to my Linux environment with out using any external ...
1
vote
2answers
2k views

Removing specific files recursively using rm or something simple?

I have a root folder with a text file in it called pairs.txt. Within that root folder are other folders with text files called pairs.txt in them. Is there a simple way to remove them using rm? I ...
1
vote
2answers
1k views

How to kill a script which starts new processes?

The following is a Python application which spans a few threads, then spawns a new process of itself and exits: $ cat restart.py import os import random import signal import sys import threading ...
1
vote
1answer
435 views

How can I create my own imagemagick binary releases?

I'm looking for a way to build ImageMagick binary distributions for deploying my app. I only need it for Kinux 64-bit (Ubuntu/Debian) and OSX. Actually building it is fine, but I have no idea how to ...
1
vote
2answers
4k views

Simple console text editor suited to python

I am looking for a light weight shell editor for Linux that a young child (eg 7-8 year old) can write python scripts in. The motivation is to find something that is helpful for a beginning programmer ...
5
votes
1answer
3k views

How do I disable the touchpad while I'm typing?

I'm looking to disable the touchpad in Crunchbang 11 (Waldorf) while I am typing. The processes I've found online do not work for me. All guides I have found (this thread, for instance) indicate to ...
6
votes
1answer
3k views

Creating UFW rule to allow application to use dynamic ports

I am currently trying to get a Google Chromecast device to work through my Ubuntu 13.04 based computer. Currently, the Google Chrome extension shows "no devices found" as long as my UFW firewall is ...
1
vote
2answers
6k views

binding ip address to hostname

I just registered a domain name and paid for hosting with CentOS and I found that I had to do the binding myself following the lengthy steps http://www.linux-sxs.org/internet_serving/bind9.html I was ...
0
votes
1answer
217 views

how to enable BEEPsound in RHEL?

On my new RHEL 6.4 machine, the beep sound is disabled. How can I enable it?
0
votes
2answers
275 views

Mirror localhost:3280/some/long/url to localhost:3000

I have a webservice running on localhost 3280 that exposes Elasticsearch server under /some/long/url. I would like to access Elasticsearch from localhost's port 3000. Can I do this with port-...
2
votes
3answers
329 views

Expand placeholders with same-named environment vars in text file?

There are a lot of variations on this question, but I wanted to ask it here anyways because I am so close (!) to finding a solution on this one - I just need a little nudge. Scenario I have several ...
0
votes
1answer
389 views

Allowing a domain name in my IP Tables

I have a Linux server that gets a time offset for some strange reason. I set up cron job to run and update the time using the following command: /usr/sbin/ntpdate pool.ntp.org The problem is the ...
2
votes
1answer
982 views

Permissions in Ext4 Truecrypt Drive

I just used the Truecrypt GUI to encrypt my entire USB hard drive (currently /dev/sdb). I formatted it to ext4. Now, I can mount it in my home directory with the command truecrypt --mount /dev/...
1
vote
4answers
2k views

Alternative Window Manager [closed]

Is there a window manager, easy to install on Debian, that uses very little resources? I only need bash and Firefox/Chrome, java and flash. And maybe something like notepad++ for Linux. Though I'm ...
4
votes
3answers
3k views

How to find first match in multiple files

Is there a way for the find command to search for the first match or occurrence of a string or pattern within each of multiple files? I've been using the usual syntax: find dir -iname '*.ext' -exec ...
1
vote
3answers
153 views

Nvidia video card drivers for Linux compatibility

I'm looking to purchase a new graphics card but all vendors only provide drivers for Windows while Nvidia provides drivers for Linux, my question is whether I can use the drivers from nvidia or if ...
2
votes
1answer
392 views

Debian 7 on Macbook

I have just installed Debian 7.1 on my Macbook Pro 9,2. I'm trying to get the keyboard backlight to work properly. I can press the F5/F6 keys to get an OSD to show up on the screen, but the ...
2
votes
3answers
2k views

hardlink/softlink multiple file to one file

I have many files in a folder. I want to concatenate all these files to a single file. For example cat * > final_file; But this will increase disk space and also will consume time. Is there is a way ...
1
vote
2answers
160 views

find command help

I'm struggling using the find command that will allow me to find all files that were modified over 7 days ago and that are larger than 1 MB. Here's what I have - find /path/to/files* -mtime +7 | -...
3
votes
1answer
746 views

How can I clear portion of what is typed into the prompt while working on Linux and using C-shell?

I am working in Linux and C-shell. Often times I would require to change some portion of what is there already in the prompt that I obtain from reverse searching through the history command by use of ...
5
votes
1answer
3k views

Cron job still running when deleted

On a server I inherited, there is a cron job running hourly on one of the Debian servers. It sends an email out to a non-existent email, but bounces back to my account since I listed myself as the ...
1
vote
2answers
1k views

If some program is not working in Ubuntu, how to uninstall and reinstall

I'd be specially interested in a solution that covers the dependencies of this program, and not only the program as such. I have several programs that don't work after I updated to Ubuntu 13.04 from ...
2
votes
0answers
350 views

OpenGL acceleration stopped working after upgrading to Wheezy

After upgrading recently from Squeeze to Wheezy, my 3D acceleration suddenly stopped working. I'm using IBM Thinkpad T60 with ATI M52 [Mobility Radeon X1300]. I found in Xorg.0.log: [ 48286.173] (EE)...
6
votes
2answers
479 views

Execute a command within 'sed'

I have a list of random memory addresses saved in a text file, and I need to sed them out, decode them, and save them back to my file. However, the decoding operation I'm trying to perform is handled ...
10
votes
1answer
994 views

How many different ways can you create an “alias” in Bash?

I only know of two ways: alias foo=bar and function foo() { bar }. The reason I'm asking is that - all of a sudden in one of my bash sessions - I cannot run the ln command because bash is erroring ...
1
vote
0answers
346 views

Memory test while booting . Unable to boot Ubuntu 12 04 LTS

I'm running Ubuntu 12.04 LTS. All of a sudden, my I'm unable to load the OS. A memory test is happening while I'm trying to boot the system.
0
votes
2answers
544 views

Can't Change CUPS password

I am running CrunchBang based on Debian 6. I can't do anything printer related. It is saying I am unauthenticated. I have tried: family@familydesktop:~$ sudo lppasswd -a family Enter password: Enter ...
2
votes
2answers
6k views

Automount not disabling in Ubuntu 12.04 or 13.04

I'm trying to disable the automounting of any usb device. I have this working in Ubuntu 10.04, but I'm trying to do the same in either 12.04 or (ideally) 13.04 but not having any luck. Everywhere I ...
7
votes
5answers
3k views

Getting relative links between two paths

Say I have two paths: <source_path> and <target_path>. I would like my shell (zsh) to automatically find out if there is a way to represent <target_path> from <source_path> as ...
3
votes
1answer
782 views

zsh adds tab character when autocompleting

I have zsh 4.3.10 installed on a RHEL 6.4 box. I'm not sure why this happens, but when I but Tab to autocomplete things, it also adds a tab character. For example: rocket@rhelbox www % vim vim ...
1
vote
2answers
67 views

Can I see in history output from which directory I had actually issued a command?

CTRL+R allows me to reverse search through the command history which is great but can I also find out from which directory that command was run? I am using C-shell in Linux.
2
votes
2answers
113 views

How can I execute a shell script that exists in a longish path with a single command without first cd'ing to the directory?

In Linux I always cd to a longish path and then run the script: cd /scratch/someDir/someOthernestedDir/ ./shellscriptName.sh How can I avoid achieve typing this longish path and then executing ...
1
vote
1answer
494 views

Using ncurses for basic GUI on a process started inside an init script

I have a custom written application that runs on a embedded setup (buildroot). My application has to run every time the target device boots up and so I wrote an init script to do this and it works ...

15 30 50 per page