Questions specifically about Linux, as opposed to Unix-like systems in general, or to questions about a specific distribution or program.

learn more… | top users | synonyms

1
vote
1answer
35 views

Every time I run tmux, new ssh-agent child process is started (zshell)

Every time I start tmux or split tmux, new instance of ssh-agent is started ("Agent pid XXXX" appears on the top), which is quite annoying because I have to type the key password every time I want to ...
1
vote
1answer
42 views

Duplicate UUID's for Physical Volumes But PV's aren't in a Volume Group

I have some dead/stale/non existent logical volumes without group pvs said File descriptor 3 (pipe:[306492]) leaked on pvs invocation. Parent PID 30844: -su Found duplicate PV ...
1
vote
1answer
29 views

How do I use yes with e2fsck?

I have tried the following with both LinuxMint 13 Cinnamon 32 bit and Trisquel 7.0 Gnome 32 bit and get the same error message: $ yes | sudo e2fsck /dev/sdax e2fsck 1.42 (29-Nov-2011) e2fsck: need ...
0
votes
3answers
47 views

Count new lines in file last 1 minute

With bash, how to count new lines appended to file the last 1 minute? What would be smartest if you want to count new lines for the last 1 minute in multiple files simultanously and get output? I ...
1
vote
1answer
37 views

How to stop displaying error logs from the terminal in linux?

I am using Linux, there are some error logs related to some applications are over flooding one of my terminal. They look like this: 20/01 15:54:29.894138[3319][65536] Unexpected exception during ...
0
votes
1answer
12 views

Trouble understanding why getfattr -d doe not show anything

The successful command from which I started: getfattr -n system.ntfs_times /media/hdd/oldfolder/ output getfattr: Removing leading '/' from absolute path names # file: media/hdd/oldfolder/ ...
1
vote
1answer
35 views

Where to search for the core file generated by the crash of a linux application?

I am trying to find out the reason of crash for one of my Linux application. But I don't know where core is going. cat /proc/sys/kernel/core_pattern core.%e.%p Any Idea?
0
votes
1answer
28 views

Start graphical user interface using startx and display manager

As title said, can someone tell me what differents between starting graphical user interface using startx command (which xinitrc contains exec gnome-session or exec xfce4-session) and using an display ...
0
votes
0answers
23 views

Globally change terminal background in centos 7

This has been frustrating me. I've done a ton of googling, can globally change text in terminal using .bashrc, but I cant figure out how to change the white background to black. Going to terminal ...
0
votes
1answer
28 views

One liner to ssh into a server, specifying an intermediary to tunnel through [duplicate]

At my company, In order to SSH into anything, I first have to SSH into an intermediary server like so: (me@local.machine) ssh intermediary.server.com (me@intermediary.server.com) ssh ...
2
votes
0answers
30 views

View syscalls/kernel activity for I/O from a running process

I'd like to be able to view syscalls or kernel activity for a process...I'm not actually sure of the terminology I need here! Specifically I'm looking for the difference between I/O going to local ...
-2
votes
1answer
69 views

Watchdog handler [closed]

I’m interested in monitoring the processes running in a Linux system and determining when they are stuck/running endlessly very quickly. Once I determine this, I also want to take on some actions ...
0
votes
0answers
15 views

Read from serial port with multiple terminals at the same time?

I am creating a Python script that will monitor a USB device for output. This script currently runs indefinitely so when I am running it I am not able to access the device from.. say a terminal. Is ...
2
votes
1answer
36 views

What is /proc/filesystems supposed to be and why is it different from /lib/modules/linux_ver/kernel/fs?

The very little documentation about /proc/filesystems says it is a "list of supported file systems". I see a lot of file system modules in /lib/modules/linux_ver/kernel/fs, most of which do not appear ...
-2
votes
2answers
26 views

extracting only the domainname, port number of first path

str1="https://111.111.111.111:2222/cpsess8993738132/scripts4/listaccts/" str2="https://111.111.111.111:2222/cpsess8993738132/" ...
1
vote
0answers
32 views

pivot_root device or resource busy

The following commands on Ubuntu 64bit on VMWare: mount /dev/sda1 /newroot cd /newroot mkdir old-root pivot_root . old-root produce an error that I do not understand: pivot_root: device or ...
0
votes
1answer
28 views

How and where should I add a PATH? [duplicate]

I need to add a new directory to my PATH so that SublimeText can find it. I assume this should be added to either .bash_profile, .bashrc, or .profile. Which one should I add it to? .bash_profile ...
0
votes
0answers
20 views

I can't create fstab while installing arch

Firstly, I followed this video (https://www.youtube.com/watch?v=METZCp_JCec) to install arch, but when I create fstab with genfstab -p /mnt >> /mnt/etc/fstab the error No such file or directory ...
2
votes
4answers
299 views

Moving a directory from a user to another user, keeping the correct permissions

Let's suppose we have to users: alice and bob. Now Bob wants to move Alice's ~/Documents directory into his home folder. What's the best workflow to do that, updating the permissions (from Alice to ...
3
votes
3answers
83 views

Create Linux distro with minimal number of files

I'm thinking about designing a system for a project using some single-board computer (RaspberryPi, CubieTruck etc) that runs Linux. My main requirement is keeping the complexity of the booted SD card ...
1
vote
1answer
47 views

How to do a netstat that will only filter based on pid

How can I have the following command below just show/filter based on the PID's I'm looking for? sudo netstat -lp --inet The results come back as this Proto Recv-Q Send-Q Local Address ...
0
votes
1answer
36 views

Understanding a signal script

I have the following trap script but the idea about it, is little vague to me. #!/bin/bash for i in {1..64}; do trap "echo 'signal[$$] Caught signal SIG$(kill -l "$i")($i)'" "$i"; done; read -s ...
0
votes
0answers
30 views

linux + what are the messages bad tty under /var/log/messages file

under /var/log/messages I see the following messages "bad tty" what the meaning of these messages? second is it caused because some application that called - owstd ? as we can see from the log? ...
1
vote
1answer
24 views

How to interpret busybox “top” output?

I am using BusyBox on a small embedded ARM system. I'm trying to read the "top" output, in particular for the Python process listed. How much real memory is this process using? Also what does VSZ ...
0
votes
0answers
13 views

Blank screen with a line after installing Debian 7.7 in VMWare Workstation

I don't think I'm allowed to post images, but heres a link: http://i.imgur.com/nhuZqQy.png I've installed Debian 7.7 using the graphic installer, everything ran, I followed a video tutorial and did ...
1
vote
1answer
21 views

How could this happen: Secure boot on my UEFI seems to work for Ubuntu but not Fedora or Debian?

I re-enabled secure boot on an existing system. It then refused to boot the installed Debian 7, or my boot disc for Fedora 20 Live. I'm sure Fedora Live passed secure boot on this system before. ...
1
vote
1answer
19 views

How remap my CapsLock key to work as if it was a Return key using setxkbmap?

I tried several things: setxkbmap -option caps: return setxkbmap -option caps: enter I also tried to modify the file /usr/share/X11/xkb/symbols/pc by: "Key <CAPS> {[Enter]};" But nothing ...
0
votes
1answer
22 views

Recover hard disk file from corrupted one

I bought a 1 TB hard disk from my friend to back up my files but when I tried to copy 150 GB of data to the hard disk, during the last 5MB my laptop shut down due to power loss. After power came back ...
0
votes
1answer
18 views

iscsi won't start at boot

I am trying to configure iscsi initiator. Everything works accept it won't start at boot. It times out. Once system is up, I am able to manually mount the drive and /etc/init.d/iscsi status says its ...
2
votes
1answer
43 views

.bashrc custom secondary password and SCP is not working, (SSH secondary password)

For "some purpose" I have added a script in the ~/.bashrc to prompt for a secondary password and its serves my purpose. But, there is only one small issue is there. When I scp to the server, It fails ...
1
vote
0answers
14 views

How to start a custom service

I'm very new to Linux and the solution might be easy so excuse me for that. I'm trying to run an application called EnCase Remote Recovery, which basically takes a remote image of a system. In order ...
2
votes
0answers
17 views

Linux sound lags while copying from USB key

Why did I experienced sound skipping while copying a big file from my USB key onto my computer's drive? I monitored the system during this I/O operation: music was playing from Internet on the ...
1
vote
3answers
44 views

Tailing log files in two different hosts

I'm trying to tail two log files in different hosts and use the merged output as a single one. ssh HOST_1 "tail -f MY_LOG_FILE" I'm also using mkfifo to create a named pipe. mkfifo MY_PIPE The ...
1
vote
1answer
25 views

Having issues unmounting partition for debian install

I have a 50gb partition set up on my mac for installing debian, MS-DOS (FAT) format. I blessed it and am now unmounting it in order to copy the img file over. I'm using: $ diskutil unmountDisk ...
1
vote
0answers
48 views

SIGINFO on GNU Linux (Arch Linux) missing

I am developing an application and I would like it to print some runtime stats to the console on demand. kill and signals came to my mind immediately. Reading through Unix signals on Wiki, SIGINFO ...
1
vote
2answers
28 views

How to map a sata device name to a physical sata interface for RAID systems

I have a system with 10 SATA ports, and another SATA as the boot disk. The 10 SATA ports make up 5 software RAID1 arrays. The RAID disks may be removed between boots, and swapped in with arbitrary ...
1
vote
1answer
42 views

How to restart my java program automatically if it gets killed?

I am running my runnable jar in linux machine (machineA) as shown below. In the runnable Jar, I have a java program which sends email to me every 15 mniutes. ...
-1
votes
2answers
68 views

Use a directory to simulate a USB storage device? Or any other way to simulate a USB storage device?

When it comes to CD's you have virtual CD software in which you load an .iso and it works like a CD-Rom. But when it comes to USB is there something similar? Is it possible to use a directory to ...
4
votes
1answer
62 views

Change the status of the keyboard leds, from within an X session, without root access

I am trying to force the capslock led on. xset does not work for me, so I am trying to use setleds. In a graphical console, this command returns: > LANG=C setleds -L +caps KDGKBLED: Inappropriate ...
1
vote
1answer
76 views

Connect Linux to two networks simultaneously

I want to connect to two networks simultaneously using the Ethernet and in-built WiFi or to two WiFi networks by installing an additional WiFi adapter. My requirement: I have two sets of devices ...
1
vote
0answers
17 views

How do I speed up recovering “stuck” cifs mount?

I have a cifs mounted like this: mount.cifs -o uid=myuser,user=...,dom=... //IP/Share /some/mountpoint/ When I try to access it after period of inactivity (or when the network is inaccessible), it ...
1
vote
0answers
11 views

Variations in Ubuntu 12.04 /usr/bin/time statistics

I have a command line tool which I run on Ubuntu 12.04.5 LTS. I need to calculate the cpu time for this program. I have been checking /usr/bin/time function. command: /usr/bin/time -v -a -o ...
1
vote
1answer
37 views

How can I have a bridge that uses DHCP?

I have set up a linux box (centos 7) to use for virtualizing some servers. I have set up a bridge, but I need to do it with DHCP, but it doesn't seem to like it. The reason I need DHCP is because ...
0
votes
2answers
45 views

Installing Ubuntu/Debian packages on Arch [duplicate]

I am considering switching from Ubuntu Linux to Arch Linux. I have a long list of packages that I've installed using apt-get that I would like to install right after I install Arch itself. Is there ...
0
votes
3answers
36 views

/mnt directory is removed undesirable!

Accidentaly I have removed my /mnt directory... how can I restore it? with the exact permissions and etc??? This directory was empty.
2
votes
0answers
45 views

“Restart” a process in the same terminal?

I put "restart" in quotes because the following question on SO illustrates what I'm trying to do: http://stackoverflow.com/questions/27957091/restarting-a-process-in-the-same-linux-terminal I'm ...
0
votes
1answer
123 views

How to burn debian iso to usb

I downloaded the debian amd 64-bit iso file (apx 650 mb) on a macbook w/retina (i.e. no cd drive) running OS X. I'm trying to dual boot and have already gotten rEFInd working. Set up partition for ...
0
votes
0answers
13 views

Gemalto Cyberflex Access 64k smartcard not being recognized by CoolKey on RHEL?

Since I'm new to smartcard integration, I'm not even sure if Coolkey is the problem, but that is the PKCS #11 module that I am using. I'm running RHEL 6.6 with these modules: ...
1
vote
1answer
52 views

Using cURL command-line tool on Mac, how does one fetch stock data which comes back *without* commas? [duplicate]

The below script is not working. cd desktop/quoteUpdate while true do curl-o quotes.txt -s "http://download.finance.yahoo.com/d/quotes.csv?s=goog,aapl&f=sl1" sed -i '.bak' 's/,/ /g' quotes.txt ...
1
vote
1answer
16 views

gparted moving unallocated to 1st partition

How can I assign unnalocated space to 1st partition /dev/sda1 ?