1
vote
0answers
16 views

Find the creator of a task

I would like to find the creator task of an arbitrary task in the Linux kernel. However, I am not sure, if there is a way to do this in general. Normally, you can find the creator of a task via the ...
6
votes
2answers
211 views

virtual block device

I'm not sure what I should be googling or if FUSE does this (I suspect not). I'd like to create a virtual block device for which all forms of access, for example reads and writes, go directly to my ...
1
vote
3answers
37 views

My SD card has a partition but Linux doesn't create a device entry for the partition

OK, I don't know what's going on here, at first I thought it was a problem I remember having some time ago where I couldn't mount a vfat partition because it had some flag set that it had not been ...
2
votes
4answers
8k views

How to escape special characters in a string?

Assuming $file holding a value of a file name, say Dr' A.tif. In bash programming, how could I escape single quote and any other special character of the $file without removing the special character? ...
12
votes
1answer
195 views
+200

Tracing executable without read permissions

I found some surprising behavior on Ubuntu 14.04 when using strace on an executable, which I do not have read permission on. I wonder if this is a bug, or if some standard mandates this obscure ...
0
votes
0answers
16 views

Declaration of default resources like /usr/share/dict? [on hold]

I just recently learned about /usr/share/dict and how it comes standard on most installations. Is there a place where the existence of /usr/share/dict is declared? And possibly, other useful files ...
0
votes
2answers
23 views

read command with a prompt in zsh

In zsh, running the command read -p 'erasing all directories (y/n) ?' ans, throws the error, read: -p: no coprocess But in bash, it prints a prompt. How do I do this in zsh?
45
votes
1answer
1k views

Security implications of forgetting to quote a variable in bash/POSIX shells

If you've been following unix.stackexchange.com for a while, you should hopefully know by now that leaving a variable unquoted in list context (as in echo $var) in Bourne/POSIX shells (zsh being the ...
3
votes
2answers
637 views

Use /etc/aliases for outgoing mail relayed by postfix with local domain

I'm using Ubuntu 12.04 with postfix configured as satellite system that relays outgoing mail to Gmail. For sake of example, my registered domain is example.com I want root cronjobs' error output to be ...
0
votes
0answers
5 views

Persistence Bash history between detached processes

I haven't yet been able to find this among the bash documentation so I was hoping it could get answered if I asked it here. Is there any way that I can, on execution of a script, branch its history ...
2
votes
1answer
46 views

Script not run with cron

i have a python script when i launch my script all it's ok but when i lauchn my scrypt under crontab i have this errors: .. 2015-04-24 14:36:02,163 ERROR Problème dans le module ...
0
votes
1answer
19 views

KSH on old unix systemV: search history

I have set a good ksh environement on old unix PATH=$PATH:/usr/lib/acct:/usr/sbin:/sbin:/usr/ucb export PATH EDITOR=vi FCEDIT=vi export EDITOR export FCEDIT HOSTNAME=`uname -n` HISTSIZE=500 ...
1
vote
2answers
18 views

VGEXTEND: How to avoid wiping a swap signature in /dev/sda3?

The problem: [root@195623 ~]# vgs VG #PV #LV #SN Attr VSize VFree fedora_195623 1 3 0 wz--n- 9,50g 0 [root@195623 ~]# vgextend fedora_195623 /dev/sda3 WARNING: swap ...
0
votes
1answer
58 views

need help merging two Unix files

I have 2 pipe delimited files say file1 and file2. Where file1 has say 33 columns and file2 may have 34/35/36 columns. So let's not consider how mant columns we have. What I want to do is compare the ...
0
votes
1answer
39 views

make a table output

if it possible to do a snmpwalk in a perl script and put the output in a table to make a sort of association like for each hostname i have in the same line if index and desc i have the script in bash ...
4
votes
3answers
86 views

Redirect the tail output to a file then stop when match found

there is this log file that data coming in is continuous. what i wanted to happen is to tail -f this log file then redirect it to a file with the ff conditions example of the log files content ...
4
votes
1answer
31 views

Print out unicode values of stdin?

I use od to print me the octal or hex of a file/stdin/string. This lets me see the ASCII, or UTF-8 encoded, values of my stdin. But we don't live in ASCIIland anymore. Is there any command that will ...
1
vote
2answers
48 views

What exactly happens in Linux internally when an ethernet cable is connected?

I would like to understand what exactly happens when a cable is being connected to the Ethernet port (assuming dynamic IP addressing): What services are being run and how are they triggered? What ...
0
votes
1answer
17 views

How to check whether my AIX is PPC OR PPC64?

My AIX machine is currently running on 6.1 OS. I would like to know whether it is on PPC OR PPC64, Is there any command other than arch which gives the information about PPC ?
0
votes
1answer
52 views

Run script on multiple hosts [duplicate]

I have below script which creates user list and also filters ignore.txt file to ignore matching usernames. I would like to run this script on multiple hosts like hostA, hostB, hostC. Like if I run on ...
0
votes
1answer
34 views

Mount external hard drive automatically

I have an external hard drive (WB My Passport), connected via a USB port. My OS is Elementary OS Freya on a Dell Vostro 1510. Currently, in order to mount the drive, I have to open the file manager, ...
-1
votes
1answer
14 views

How to avoid Google Chrome's crash on every startup? [on hold]

Well, since I started using OpenSuse, Google Chrome always asked me to restore tabs when I first opened it.
-1
votes
1answer
15 views

Partitioning first Debian box [on hold]

So I've decided to install Debian on my local storage, since I've played with it enough on persistence. It's gonna be for casual use, basically moving all the stuff over from Win, except what doesn't ...
1
vote
0answers
18 views

Is there a way to edit a password-protected file without having to retype the password all the time?

I want to encrypt a text file using a password and a way to safely edit that file. The problem I am having is that I haven't managed to find a simple way to do that while only requiring the password ...
0
votes
0answers
7 views

Rebinding the physical Touchpad Keys on a ThinkPad

I have been sitting on this problem for a couple of hours now but I can't seem to find a solution. I have gotten myself a new ThinkPad and it has 3 discrete buttons above the trackpad. I've installed ...
-2
votes
0answers
24 views

I can not get commands to operate [on hold]

I have a local bin directory under Linux with a bash shell. And I want to place binaries, my own system extension commands in the directory. I have included the path bin, in $PATH, but it doesn't ...
0
votes
0answers
6 views

Connecting to a WPA2 network

For connecting to networks use WPA/WPA2 with PSK, from http://superuser.com/a/701457/9265 wpa_passphrase your_network_name your_password > wpa.conf ifconfig wlan0 down ifconfig wlan0 up ...
1
vote
1answer
8 views

Map Home to External Drive

Whereas I have my OS (in this case, Elementary OS Freya) installed on my non-partitioned internal hard drive, I have an external hard drive with /Documents, /Downloads, /Movies etc. where I store all ...
0
votes
0answers
4 views

gpsd not sending data

I have a thinkpad E420s with Fedora 20 with Bus 002 Device 003: ID 0bdb:1911 Ericsson Business Mobile Networks BV which incorporate a gps module. I have plug a GSM sim and I am able to use the 3G ...
0
votes
1answer
447 views

Grub2 lost in new Linux distro install

So, I really need some help. Recently I was using a dual boot machine on the same hard drive. I had Windows 8.1 and Ubuntu GNOME 14.04. When I installed Ubuntu on top of my Windows install, I didn't ...
8
votes
2answers
12k views

Fast way to copy a large file on a LAN

I am having some trouble with NFS, and I'd like to try using just plain old TCP. I have no idea where to begin, though. Hardware-wise, I am using an ethernet crossover cable to network two netbooks. ...
0
votes
0answers
7 views

Does cpulimit stop a process?

One terminal runs: $ pdfcrack -o -q my.pdf The second terminal then runs: $ cpulimit -e pdfcrack -l 30 Process 7826 detected On the first terminal, there is output: $ pdfcrack -o -q my.pdf ...
2
votes
2answers
242 views

Nginx leaves old socket

I'm running Nginx 1.6.2 (the nginx-full package from the nginx/stable PPA). I'm using the unmodified configuration /etc/nginx/nginx.conf: user www-data; worker_processes 4; pid /run/nginx.pid; ...
1
vote
0answers
23 views

Input command is exiting ADB shell after execution [migrated]

Whenever I run input command through my bash shell of Slackware 14.1 in the adb shell, the adb shell exits after executing the command, which is highly unproductive. The temporary get around for this ...
2
votes
2answers
2k views

How install xfce >= 4.10 from backports repository in debian

I am working in Debian 7 64bits with xfce 4.8 But in backports repository I found xfce 4.10.1 and I added this line in my sources.list: deb http://ftp.debian.org/debian/ wheezy-backports main ...
0
votes
0answers
8 views

Enabling URL rewriting for API [migrated]

I'm new to configuring API web servers and I'm trying to enable URL rewriting for the server so that a user can go to my public DNS.com/getAlbum to access a method within my api.php file (assumption, ...
0
votes
1answer
22 views

Feeding audio from microphone live into python

Well, so I was reading about this raspberry pi tutorial that makes you play audio files from raspberry pi and stream them into a FM signal and something got me curious. You can stream .wav files, ...
10
votes
6answers
310 views

/bin/dash: check whether $1 is a number

What would be the best way to check whether $1 is an integer in /bin/dash ? In bash, I could do: [[ $1 =~ ^([0-9]+)$ ]] But that does not seem to be POSIX compliant and dash does not support that
1
vote
1answer
596 views

Need to install VirtualBox Guest Additions 4.3.8 in CentOS 6.3

My host system is OSX 10.9.2 and I'm running VirtualBox 4.3.8. In a Hadoop class I took recently, we were provided with a VM disk image preloaded with CentOS 6.3 and a lot of Hadoop-related ...
1
vote
0answers
29 views

USB bar code scanner not working on Raspbian

My USB bar code scanner (SYMBOL LS2208) is recognized as a HID. hid-generic 0003:05E0:0600.000F: hiddev0,hidraw0: USB HID v1.10 Device [\xffffffef\xffffffbe\xffffffa9\xffffffbe\xffffffa9Symbol ...
2
votes
0answers
59 views

Security of sudo not asking for a password after the first time

After using sudo and entering a password to do so, sudo remembers that we have entered a password and we do not have to enter a password the next time we use it. I am concerned about the possibility ...
4
votes
1answer
35 views

Disable networking only inside of a single terminal

I want to run a command in the terminal to disable networking, just in that terminal. How can that be accomplished? I'm running OSX. Note: I only want to disable the networking in that terminal. ...
0
votes
1answer
142 views

Why will the C++ Library not disable, GCC

I've been up all night trying to get this to work. I got the second to latest gcc and latest binutils and am attempting to create a cross compiler on a debian system. For some reason, GCC won't ...
1
vote
3answers
47 views

Why is gksu asking me for root password and not my password?

On one of my systems, I'm running Gentoo Linux and I've installed x11-libs/gksu-2.0.2-r1. I've disabled the root account using sudo passwd -dl root and I want to be able to run GUI apps which need ...
1
vote
1answer
56 views

How to tell “grep -w” what characters make up “words”?

$ printf 'asf .test. afd\nasaf foo-test asfdads\n' asf .test. afd asaf foo-test asfdads $ printf 'asf .test. afd\nasaf foo-test asfdads\n' | grep -w test asf .test. afd asaf foo-test asfdads ...
5
votes
3answers
311 views

Compare the heads of two files in bash

I can do diff filea fileb to see the difference between files. I can also do head -1 filea to see the first line of filea or fileb. How can I combine these commands to show the difference between the ...
2
votes
1answer
26 views

Using wget, how to download without folders and overwrite original

How do I use wget to download files without creating directories and overwrite the original every time. I've tried using the -r -P and nc options in combination but this resulted in several ...
0
votes
0answers
10 views

Nvidia Fx 3800 drivers on Fedora 21

I have got a "new" machine at work and wanted to switch it to fedora 21. The installation is fine and works except when I try to add a second monitor. Then it boots but it is really slow and just one ...
2
votes
1answer
17 views

Unwanted ctrl+h in file saved from man's output

After man less (and optionally hit h for "Summary of less commands"), since man uses less to display the text, I hit s to save the text to a file. When I open the file in emacs or vi, there are ...
1
vote
3answers
45 views

Last exit status from within script without source

Supposing someone invokes a non-existent command, the only way I know to retrieve its error status from a script I execute right after is by using source I.e., let's say this script's name is dummy ...

15 30 50 per page