12
votes
3answers
1k views

How do I wait on a program started in another shell

I have a program that does a large a amount of work (takes about 4-5 hours) that gets started by cron when all the data it works with becomes available. Sometimes, when I am waiting for it to finish, ...
4
votes
1answer
5k views

Arch Linux pacman specifying package version

I know that I can define wanted package version in pacman like shown in its manual pacman -S "bash>=3.2". But how do I know what versions are available? I also know that pacman is creating copy ...
5
votes
2answers
3k views

inotify and rsync on large number of files

I am using inotify to watch a directory and sync files between servers using rsync. Syncing works perfectly, and memory usage is mostly not an issue. However, recently a large number of files were ...
4
votes
1answer
81 views

tmux: Keep scroll position when changing session

Sometimes I'm scrolling up a log file and need to switch sessions, so open the session menu with prefix-s. This causes tmux to forget the window's scroll position, so that when I return it's at the ...
4
votes
2answers
2k views

How to get start time for a defunct process on AIX?

When I run the following commands on AIX: 22:root@SERVER:/root # ps -ef | head -1 UID PID PPID C STIME TTY TIME CMD 22:root@SERVER:/root # ps -ef | grep defunct | head -1 ...
1
vote
2answers
85 views

double-quoting parameter (representing filename) doesn't help if spaces are contained

When iterating over some filenames double-quoting the parameter does not prevent the filename from being broken: $ mkdir temp $ cd temp/ $ touch a\ b $ for f in $(find .) ; do echo "$f" ; done . ./a ...
5
votes
6answers
4k views

ls with find :: report total size

I am trying to get the total size of files satisfying a find, e.g.: ls $(find -maxdepth 2 -type f) However, this kind of invocation of ls does not produce the total size as well.
6
votes
1answer
289 views

show part of wraped lines in vim instead of hiding it with the @ character

I use vim not only for coding but also for text writing. In this context I use the wrap and linebreak options to wrap my text. Since lines - forming paragraphs in text writing - can be very long a ...
3
votes
0answers
926 views

Route all HTTP traffic through polipo

I've set up polipo on my machine to listen to the default port 8123. To test it, I set the in-memory cache to a ridiculously high 2 GB and downloaded a 50 MB file using wget utilizing the proxy. ...
5
votes
2answers
612 views

Why does !! inside an alias not work?

I have this alias set in my system /etc/bashrc file: alias root="sudo !!" The intention of this being to run the last used command using sudo of course. When used, it of course appears to ...
2
votes
1answer
787 views

How to terminate an interactive ssh session after certain amount of time

In my /etc/ssh/sshd_config file I have set the below parameters: ClientAliveInterval 10 ClientAliveCountMax 3 Now from host machine I did ssh to the my server (where I made changes to /etc/ssh/...
1
vote
1answer
4k views

Is there any IP messenger for Linux (CentOS)?

Currently am using a Linux (CentOS) machine. Is there any IP messenger for CentOS like iptux and Gnome IP Messenger?
0
votes
1answer
177 views

Other acl manipulation executables than getfacl/setfacl? [closed]

I am familiar with setfacl/getfacl. However, I am wondering if there are any other executables/packages that maintain similar functionality with regards to manipulating acl. I am not looking for ...
6
votes
3answers
2k views

How to move windows across displays in Gnome 3?

In Gnome 3, moving windows with the keyboard shortcuts Meta+← and Meta+→ can be convenient. Now, I have two displays installed and would like to move windows across the displays without ...
5
votes
1answer
616 views

CapsLock as modifier key for application keymaps

I am developer and currently I am using Ubuntu Linux with PyCharm IDE for development of website. In order to improve typing performance I consider change CapsLock to Hyper_L and assign it to mod3 ...
0
votes
3answers
359 views

How to restrict one user files to another user

On my machine there are user accounts. My question is how to restrict access to ones user files. Meaning no one else can access my files at all. How can I setup this restriction? How many root users ...
3
votes
1answer
97 views

Does Live Linux CD in general have safe handling of Windows NTFS files

I was reading this article - how do I Access or mount windows NTFS partition in Linux that mentions: NTFS3G is an open source cross-platform, stable, GPL licensed, POSIX, NTFS R/W driver used in ...
3
votes
2answers
124 views

Is there any mitigation against touch date/time forgery?

I have been using touch -t to change time of a file when I started using Linux, is there any mitigation against touch date/time forgery? Like, echoing original created date and time, even after using ...
1
vote
1answer
72 views

Bad blocks only with extension cord?

My external hard drive was acting strangely, so I ran badblocks, and it seemed that nearly every block was bad from the first minute I ran it. If I did badblocks -v > file, the file was over 100MB ...
2
votes
1answer
6k views

How do I read the output of `dmesg` to determine how much memory a process is using when oom-killer is invoked?

I asked this question: Running `sudo /sbin/service mysqld start` causes system to crash In the comments of one of the answers, a very helpful individual is asking for more information regarding how ...
5
votes
4answers
529 views

Does Linux use original Unix code or do they share the idea? [duplicate]

Does the Linux kernel use original Unix code or do they share the idea? He mocked me and said it's a stupid question to ask and of course they share the idea not the code. Since both are written in C, ...
6
votes
3answers
5k views

Keyboard shortcut to move window to a side in Gnome

In Windows I can press Windows key + (left/right/up/down) keys to press a window against the upper, right, down, left side. Is there an equivalent in Ubuntu? Distro: Ubuntu 12.04, using Gnome.
1
vote
2answers
973 views

Running `sudo /sbin/service mysqld start` causes system to crash

OS: CentOS 5.10 Service: Amazon Web Services Attempted to remove MySQL 5.0 and install MySQL 5.6 I had a server set up, and was going to use MySQL, but it was was set up with MySQL 5.0. Since ...
5
votes
4answers
6k views

Installing a cross-toolchain to build ARM binaries on Debian

I tried to install a cross toolchain so I could build Linux kernel on amd64 (Debian testing "jessie") for my ARM system. I have this entry in sources.list: deb http://www.emdebian.org/debian sid main ...
3
votes
2answers
693 views

Logic behind Postgres binary installation path on Debian

It appears that the Postgresql installation is split into three folder locations on Debian: Configuration: /etc/postgresql Binaries: /usr/lib/postgresql Data: /var/lib/postgresql I ...
2
votes
1answer
107 views

Is it safe to `emerge -uavDN @world` while working?

In a related question, a few answers ("Yes", "...no problem", "typically... no problem") verify that it is safe to perform emerge -uavDN @world while working. Is it really so (for Funtoo/Gentoo)?
2
votes
1answer
47 views

Why does combining `less` and `script` disrupt line endings?

This bash snippet will print out the numbers 1 to 10: $ for i in $(seq 1 10); do echo $i; done 1 2 3 4 5 6 7 8 9 10 When I try to use this with script and less like so: $ script -q -c 'for i in $(...
0
votes
1answer
34 views

Is there any way to see the options for the next directory on a cd command?

When I cd to a/b/c, sometimes I want to see what are the children dirs of c. Normally, I would do it like this cd a/b/c ls child1 child2 cd child1 Is there any way to investigate the children ...
0
votes
0answers
891 views

Two questions about building packages from source on Manjaro

I recently asked this question which was closed for being unclear. I'll ask clear questions now, and I hope to get clear short answers, not a link to Arch Wiki. I'm on Manjaro Openbox, no Internet, ...
1
vote
0answers
228 views

nm-applet openvpn connects only as root

I have a following problem, network-manager doesn't connect to vpn using openvpn, when I run it as a unpriviledged user. when I run sudo nm-applet and the choose to connect to vpn it works fine. ...
7
votes
3answers
5k views

Why won't Linux let me play with /dev/dsp?

I'm working through a Linux textbook, and it's telling me about devices. It says that if I send the appropriate output to /dev/dsp, then it will play a sound. The example is cat file.wav > /dev/...
2
votes
1answer
3k views

How to install Mono v3+ in Ubuntu?

How can I install the latest release of Mono in Ubuntu Saucy? In order to develop in a free OS, I need to setup Mono (that now supports .NET 4.5). This is what I did: Download and uncompress mono-...
8
votes
3answers
13k views

Find where is a shared library symbol defined on a live system / list all symbols exported on a system

Basically, this is two questions into one - because if I can list all symbols exported within a system, along with their shared library path, then I could simply grep that output. For kernel symbols,...
0
votes
2answers
2k views

Compiling python .py to .pyc doesn't happen

I have read that python will compile the source file .py by itself to produce .pyc, but this doesn't happen in my case. I have the source file inside /opt/osqa folder where I always have to use sudo ...
3
votes
2answers
607 views

Sorting Photos using shell script

The majority of my photo files have the following naming convention / format IMG_20131204_120000.JPG, showing date and time the photo was taken (iPhone/Apple naming convention). However, not all my ...
-1
votes
2answers
1k views

Make my own basic shell [closed]

I know there are a hundred ways of doing this, but I'm just asking what is the most common way: How do I make my own terminal prompt? In other words, I want something like the shell where I type a ...
53
votes
7answers
181k views

Run a command without making me wait

On the CLI, sometimes a command I type takes a while to complete, and sometimes I know when that's about to happen. I'm a bit confused on "backgrounding" and such in Linux. What is the most common (...
2
votes
2answers
72 views

How to display size of each file next to it after executing the “locate” command?

Is there anyway to display the size of each file next to it after executing the "locate" command?
1
vote
1answer
129 views

Help understanding an egrep expression

I stumbled across the following egrep expression: egrep '^([^aieou]*[aieou]){5,7}[^aieou]*$' /usr/share/dict/words on this page: http://matt.might.net/articles/sculpting-text The expression is ...
0
votes
2answers
3k views

Can GNOME/KDE be turned off?

I have installed Debian Wheezy on an old laptop I want to use as a server. However, sometimes I want to use that computer to read webpages and write some code on it. So I want to have a GUI where I ...
3
votes
1answer
203 views

Does any OS support ZFS on MIPS?

Does there exist an operating system supporting ZFS under the MIPS architecture? If so, which operating system(s)? I am especially interested in: Support for ZFS on Loongson. OSes free from binary ...
1
vote
1answer
680 views

more than 8 outputs detected — how to solve?

I have installed Ubuntu 12.04.3 LTS on the notebook Lenovo IdeaPad z510. Setup was successful. But when I tried to load Ubuntu it gets an error: "more than 8 outputs detected". When I googled about ...
1
vote
3answers
3k views

How to install easy_install using non-default Python Interpreter on CentOS?

I have downloaded, compiled and installed Python 2.7 on CentOS. I would like to download and install easy_install (and pip) for it but I am a little bit confused as to how to do that. How can I ...
2
votes
1answer
653 views

Changing network config during CentOS netinstall

I cannot find a way to change the networking information during a CentOS netinstall, when using the URL installation method. I always use a netinstall, and occasionally fat-finger the network ...
1
vote
1answer
624 views

SVN failing to create SASL context

Trying to execute the command svn log svn://[my server address]/path/to/repository nets me the following: svn: E170001: Unable to connect to a repository at URL 'svn://[my server address]/path/to/...
1
vote
1answer
1k views

Parse all column elements from a linux bash command output

I would like to parse the column elements of the output from the command lsscsi. Here is a sample output, # lsscsi [0:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sda [0:0:1:0] disk ATA ...
0
votes
1answer
168 views

Upgraded from CentOS 6.4 -> 6.5 and now permissions do not seem to work properly?

I allow my non-root user the ability to view my nginx access.log. I upgraded from CentOS 6.4 to 6.5 and now my user cannot view this file but the permissions still look correct. I removed and ...
5
votes
1answer
913 views

Display hostname in GDM3 on Fedora 19 at login screen [closed]

I'm managing almost 100 lab PC's running Fedora 19. It's difficult to manage because it seems like no where that I can display the hostname at the login screen. GDM version: gdm-3.8-3.2
2
votes
1answer
7k views

Configure wpa_supplicant.conf to Hidden SSID using WPA2 / PEAP / MS-CHAPv2

Here the specifics, I have also the CA certificate chain installed on the machine 1 - hidden SSID (non-broadcast) 2 - The authentication protocol used is PEAP, which is a username and password ...
12
votes
3answers
6k views

Kill process spawned by ssh when ssh dies

This is a question that has been addressed several times, not only here, but also in other sites of the stack exchange network (e.g. http://stackoverflow.com/questions/331642/how-to-make-ssh-to-kill-...

15 30 50 per page