-6
votes
2answers
50 views

How to you create directories and set permission? [on hold]

How do you create three directories in /storage named campaigns, financials, and public. Also, I'm wondering how to set the file access permissions as follows: campaigns – marketing group has full ...
0
votes
2answers
26 views

add bracket across numbers at only end of each line

I have a file having lines as: ram_reg_10/raja_reg_9/raghu_reg_8 abc_reg_4/bcd_reg_5 cad/pqr_reg_91 I want to convert string "_reg_number" into [number] at only last of every line in vi ...
0
votes
0answers
25 views

What processes on CentOS6/RHEL regulates user login but not password itself?

I was doing some maintenance via root account over ssh after several months of inattention. I shutdown, after startup I can't log in to root account at tty or via ssh. Fortunately, sudo works to ...
3
votes
2answers
49 views

Is Android compatible with the Linux Standard Base?

Moved from Stack Overflow, where I realize it was off-topic since it was asking for sources - far as I can tell, the rules forbid that there but not here. I know that the kernel in Android is now ...
2
votes
4answers
47 views

Combining sed statements

Let's say my input file looks like: ID1 1 5 6 8 ID2 1 4 5 7 I'm trying to formulate a loop that can combine these actions: If the line begins with a letter: keep the '\ n' after ...
0
votes
0answers
28 views

AIX equivalent of Solaris' iostat -E

On Solaris you can use the command iostat -En to view "disk error statistics" as counted by the kernel since the last reboot, where the -n option causes iostat to show "nice" device names. I'm ...
0
votes
0answers
13 views

Cross driver communication through sysfs or /dev/ [duplicate]

I have two drivers I'm developing. One needs information from the other. Is there anything wrong with one driver reading from the sys attribute / or read/write through /dev/drivername of the driver it ...
1
vote
0answers
21 views

fail2ban not working

I have several services running on my Ubuntu 12.04 server and set up fail2ban, but it doesn't block the attacking IPs. SSH is running on port 22. jail.conf [DEFAULT] bantime = 600 maxretry = 3 ...
6
votes
4answers
221 views

How to split long sed expression into multiple lines?

sed 's/[long1][long2]/[long3][long4]/' file.txt I would like to split this command onto multiple lines - f.x. something like this: sed 's/ [long1] [long2] / [long3] [long4] /' ...
6
votes
5answers
491 views

What's wrong with this sed expression?

$ echo "104_Fri" | sed 's/^\([0-9]+\)_\([A-Za-z]+\)$/\1;\2/' 104_Fri I would like to match the digits at the beginning and the letters at the end - each as a group. Afterwards I want to output the ...
1
vote
1answer
22 views

Why does creating a ZPool result in this error?

When I try to create a ZPool, the following error occurs: user@arch ~ % sudo zpool create -f -o ashift=12 -m /data media raidz /dev/disk/by-id/ata-ST2000DM001-1CH164_Z2F0TL8V ...
8
votes
6answers
358 views

How can I test if a variable is empty or contains only spaces?

The following bash syntax verifies if param isn't empty: [[ ! -z $param ]] For example: param="" [[ ! -z $param ]] && echo "I am not zero" No output and its fine. But when param ...
2
votes
1answer
22 views

Is using shorthand quick substitution of history expansion problematic?

In my terminal (bash 3), I sometimes use the quick substitution ^aa^bb^ ^string1^string2^ Quick substitution. Repeat the last command, replacing string1 with string2. Equivalent to ...
2
votes
0answers
42 views

A window asking me to enter my ssh passphrase is popping up randomly. Why?

I'm on Ubuntu 14.04. For a few weeks now a small window keeps popping up randomly, grabbing my keyboard and asking me to enter the passphrase for my ssh key. The Window's title says "OpenSSH", and it ...
4
votes
1answer
29 views

Is it possible to change what tty a terminal emulator is connected to?

If I have a terminal emulator (say, xterm) by default it connects to a pseudoterminal like /dev/pts/3 What I would like to know is if it is possible to connect it directly to, say, tty1? Could I ...
-1
votes
0answers
6 views

See the tracker url in deluge-console?

I'm currently using deluged (with deluge-console) on my server. I'd like to see the tracker it is using in the information of a torrent. How do I accomplish this? I already tried using info -v but ...
7
votes
3answers
606 views

How can a log program continue to log to a deleted file?

From the Unix Power Tools, 3rd Edition: Instead of Removing a File, Empty It section: If an active process has the file open (not uncommon for log files), removing the file and creating a new ...
10
votes
2answers
503 views

Is dd able to overwrite parts of a file?

I have a 1TB big file (disk-image from a damaged drive) and a 1.3MB small file (beginning of a disk-file). Using the contents of the small file, I want to overwrite portions of the big file. That is, ...
5
votes
2answers
81 views

Linux kernel manual build: resulting binary is 10 times larger than precompiled binaries

I'm using Linux Mint 13 MATE 32bit, I'm trying to build the kernel (primarily for experience and for fun). For now, I like to build it with the same configuration as precompiled kernel, so firstly ...
0
votes
0answers
10 views

raspberry pi pulseaudio server connection failure

I purchased a raspberry pi model b , after installing image, the first thing I do is I installed vlc and copy a mp4 video in raspberry pi. Now from command prompt I tried to run my video using vlc. ...
25
votes
5answers
3k views

Is `-` used only with cd?

cd - can switch between current dir and previous dir. It seems that I have seen - used as arguments to other commands before, though I don't remember if - means the same as with cd. I found that - ...
0
votes
0answers
30 views

Force “indent” utility to ignore namespaces

I didn't found a mention about a namespaces in the man at all. The problem is that the utility inserts a whitespaces before the code that inside a braces of a namespace keyword. I guess the reason is ...
-1
votes
1answer
23 views

Reboot and zero drive

Is it possible to issue one command that will both reboot, boot to an external live drive or something similar, and then zero a hard drive?
1
vote
0answers
20 views

Set new default file manager in firefox on Archlinux

I'm trying to use Dolphin as file chooser for Firefox in Archlinux instead of Nautilus. I've read this but it did not solve my problem. The config seems related to firefox as xdg-mime query default ...
1
vote
2answers
48 views

Unix Shell Scripting output to an Excel File

I have a Shell script with Multiple SQL statements like this: select Count(*) from Emp where date= current_date-1; After executing the Shell script i need a MS excel file to be create with Column ...
1
vote
0answers
16 views

Using X11 Displays through Terminal.app commands : generic mapping tools

I am trying to figure out why I can't use ghostscript or ghostview (or any other X11 applications) when I try to call them in the Terminal. I am using bash, and I also used Fink to get the packages I ...
3
votes
1answer
40 views

Default files in home dir for each user

I'm using ubuntu server 14.04. I want to add some files and folders by default in each user's home directory, whenever a user account is created.
3
votes
3answers
131 views

filename and pathname of a file

It is said that the filename of a file is a pointer pointing to the inode of the file. Before knowing that, I thought it was the pathname of a file that does that job. I am not sure how a pathname ...
0
votes
1answer
25 views

how to detect what DISPLAY is active/has input focus?

Is there some command (or trick) to detect what DISPLAY is active? I mean active in a sense that it will "eat" all key strokes, and mouse clicks and moves; so it has the input focus. I mean also for ...
0
votes
0answers
18 views

Custom kernel for Intel z2760 CPU [on hold]

A friend of mine wants to install Linux on his tablet with a z2760 CPU from Intel, Googling it gives some forum topics of people saying there Kernel freezes during boot. Is there someone who managed ...
3
votes
0answers
14 views

xpra attach failure

After entering the command to attach to an xpra session: xpra attach ssh:SERVERNAME:100 we get this response: connection lost: empty marker in read queue Connection lost What does it mean? We ...
0
votes
1answer
32 views

How to make a portable Linux app?

I'd like to make a "portable" version of Emacs 24.3. I am using some Debian 7 systems, where I don't have root access. Since Debian 7 is missing Emacs 24, I'd like to build a portable version of it, ...
2
votes
1answer
21 views

Samba file share shows user directory

I recently set up a Samba file share on Raspian and when I login to it from a Windows, it shows the home directory for the logged in user. Below is an excerpt from my /etc/samba/smb.conf file ...
1
vote
0answers
12 views

Resizing terminal splits

I'm trying to find a way to manipulate my terminal splits In my .vimrc I have set width=78 When I have vertical splits and change back and forth the active split is at least 78 chars. It squishes any ...
2
votes
2answers
64 views

Replace column entry with sum of other column entries

Let's say I have a file that contains these lines: 02.03.14 14.50 14.50 0.00 Desc 02.03.14 17.00 0.00 17.00 Desc 01.03.14 2.82 1.68 calc Desc 02.03.14 1.04 0.00 ...
1
vote
0answers
20 views

Window resize slowly and freeze with compton, openbox and catalyst-hoo

I'm try for the second time use Arch Linux. In this installation I get: openbox tint2 compton catalyst-hook (Vi0L0's) After starting the compton, I can not see what I'm typing in the terminal, ...
1
vote
1answer
32 views

“make test” failed while compiling Python

I compiled Python 3.4.1 on an emulated Debian 7 ARM system. make test failed on test_multiprocessing_fork: FAIL: test_semaphore_tracker (test.test_multiprocessing_fork.TestSemaphoreTracker) ...
6
votes
5answers
151 views

Remove backslash + newline sequences

We are having a file in Linux which contains one line per record, but problem comes when the line contains some new line characters. In this case, the backslash is appended at the end of line and the ...
0
votes
1answer
25 views

Format USB drive

I have a USB drive which I format with sudo mkfs.vfat -I /dev/sdb1 When I then look at the size of the USB drive with df -h, it reports its size to be 64 MB, though it should be 8 GB. What am I ...
1
vote
0answers
19 views

Setting up smartmontools

I recently built a small server running lubuntu and decided it would be wise to setup smartmontools in order to monitor the drive health. SMART seems to be built into lubuntu in gnome-disks, however, ...
1
vote
1answer
18 views

Print PDF scaled-down and aligned

I want to print a PDF file with all pages scaled down equally (to, say, 70 %). The scaled-down pages should then be left-aligned on the printing paper. This doesn't seem to be possible with lpr ...
1
vote
1answer
39 views

Combining awk statements

I'd like to combine those awk statements: awk -F'\t' 'NF>1 && $NF!=""' #prints every row with more than two fields awk '$1 ~ /^[0-9]/' #prints every row starting with a number awk ...
-2
votes
0answers
23 views

Which Forum to Post Questions about CUPS [migrated]

What is the recommended forum site for Cups Common Unix Printing System forums (ask question-receive an answer) for new users to Linux using Cups within Qiana Cinn. I have tried to log in to Cups ...
1
vote
1answer
14 views

Creating a debian package that depends on libcudart.so.6.0 from cuda-core-libs-6-0

I try to create a Debian package for a program that depends on libcudart.so.6.0. The debuild script aborts with: dpkg-shlibdeps: Fehler: Bibliothek libcudart.so.6.0 konnte nicht gefunden werden, ...
8
votes
3answers
201 views

Going into a directory linked by a link

When I cd a link, my current path is prefixed with the link's path, rather than the path of the directory the link links to. E.g. ~/dirlinks/maths$ ls -l logic lrwxrwxrwx 1 tim tim 71 Jul 27 10:24 ...
1
vote
1answer
32 views

regenerate xorg.conf with current settings

Many people have talked about this issue but I've not found a satisfactory answer. I'm on a debian jessie. Currently I have tried nvidia-driver as the driver but it caused the system to crash; so I ...
0
votes
0answers
34 views

Symbol ''@'' (AT) Shortcut on Keyboard - What keys to press? [on hold]

What shortcut keys on keyboard do I have to press for symbol @ (known as AT) to occur? I am asking about keyboard keys for symbol occurrence. Copy pasting it from somewhere doesn't work. As shortcut ...
1
vote
2answers
40 views

Fedora 20 Crashes on Older PC

I have an older PC that has been flawlessly running Windows XP for several years. Since Microsoft discontinued support for XP, I want to install the latest version of Fedora. While trying to install ...
3
votes
1answer
15 views

sending emails with heirloom, even when Postfix is not running locally

Normally, I can send email from commandline, such as echo hello | mail -s "subject" user@example.com I have noticed that even when Postfix is not running on my machine, I can still "send" emails. ...
0
votes
0answers
5 views

In Linux count number of key presses except those in the browser

I want to count the number of key-presses in Linux, except those in the browser. There was a solution proposed here but not sure how to ignore browser key-presses.

15 30 50 per page