2
votes
0answers
9 views

tmux ignores the configuration files

tmux ignores the configuration files: both /etc/tmux.conf and ~/.tmux.conf. Even I pass the path to the configuration file, using tmux -f path/to/tmux.conf it still doesn't load it. The configuration ...
0
votes
1answer
11 views

How do I make an alias to substitute single word in a piped command? [duplicate]

I use aliases a lot but right now only for use cases like alias i='sudo apt-get install -y'. I often would like to add an alias in the following form: alias cmd='echo [something] >> ...
1
vote
1answer
11 views

Bash script spawns many new processes of itself

The script that I am working on right now is used to save data from 3 columns into three different arrays, which will be used for a different part later. Right now the script callconv.sh looks like ...
3
votes
0answers
18 views

why does Firefox create $HOME/.pulse-cookie, when I am not using pulseaudio

It drives me crazy when programs save their files directly in my $HOME. Even more so, when the files are garbage which has no use. One such example is $HOME/.pulse-cookie, which is being created by ...
-1
votes
3answers
27 views

How to list filenames within a folder based on a pattern supplied?

I'm trying to find a command that will list all files in a folder containing a keyword that is inputted. I've tried grep -l but it will not list anything
4
votes
0answers
14 views

In Archlinux, it has a valid ip, but no connection could established

OS: Archlinux x86_64 Wireless adapter: rtl8723ae Discription: If it connects to the router, it gets a valid ip, in my case, it's 192.168.1.20, but it has no connection with others ping 192.168.1.1 ...
1
vote
0answers
12 views

How do I combine two keys to act as FN key with xbindkeys?

I have been hammering my head on the wall for the past two days trying to figure out a way to combine two keys to execute a function with xbindkeys. To make a long story short I have a chromebook ...
1
vote
1answer
39 views

Alias for perl script

So far while surfing web I've discovered nice addition to my gpg password generator and I've decided to adjust my alias with these commands. Here is the code gpg --gen-random 1 20 | perl -ne'print ...
2
votes
1answer
26 views

Why is userspace slower than the kernel?

I've heard that FUSE-based filesystems are notoriously slow because they are implemented in a userspace program. What is it about userspace that is slower than the kernel?
-1
votes
0answers
16 views

Error when compiling nginx

I use CentOS 6.5 and nginx 1.7.8. When I compile no matter what configure options use, I get this message: -lpthread -lcrypt -lpcre -lcrypto -lcrypto -lz make[1]: Leaving directory ...
-1
votes
0answers
12 views

X11 based remote assistance?

what methods are there to offer remote assistance through X11 and ssh. The desktop that needs assisted is Lubuntu, and I am on Arch Linux. It should allow me to see and interact with applications the ...
-4
votes
0answers
20 views

shell script to safely delete files by moving them to the trash can [duplicate]

The script can safely deletes a file by moving the it into the trash can, which is a directory used to hold deleted objects. The directory can be specified by the variable TRASH. If this variable is ...
2
votes
0answers
12 views

Running script before suspending while using dbus

I have a file: /etc/pm/sleep.d/85rmNvidiaModule. In it I have: #!/bin/bash case $1 in suspend) echo "Oh, this time we are doing a suspend to RAM. Cool!" sudo modprobe -r ...
1
vote
2answers
56 views

What root directories should I back up? [duplicate]

I intend to start incremental backups of my Fedora 20 system, and would like to know what root directories I should include, and what directories it is useful to exclude. I know there is a lot of ...
1
vote
1answer
22 views

apt-get update exit status

How check the status of apt-get update? $ apt-get update ; echo "status is: $?" Err http://security.debian.org stable/updates Release.gpg Could not resolve 'security.debian.org' Hit ...
3
votes
1answer
62 views

bash permission denied but sh works

A little script of mine on a mounted windows partition refuses to be executed directly (shebang is #!/bin/bash), but interestingly calling it with sh works. The script is simply a collection of grep ...
-5
votes
0answers
30 views

to easily delete and undelete files [on hold]

Instead of immediately deleting a file, the del command will move the file to another location known as the trash can. The undel command will restore a file from the trash can, if possible. Safely ...
-1
votes
2answers
16 views

dpkg --status package_name

I'm just playing around with Ubuntu 14.04.1 LTS. I installed emacs, and wanted to double check if it was. ~ 1496 $ dpkg --status emacs dpkg-query: package 'emacs' is not installed and no information ...
1
vote
0answers
12 views

xmodmap keybindings don't work

I am trying to use Xmodmap to add some german diareses/umlauts to my keyboard, but Xmodmap is not working with them (but is with other remappings). I am following this guide: German Umlauts on US ...
0
votes
0answers
13 views

Problems with USB microphone ARCHLinux

My USB mic in webcam in Skype not working (cam works fine). I use Arch Linux with alsa. I set up pulseaudio but then I removed it because it is not stable. cat /proc/asound/cards 0 [SB ...
-1
votes
0answers
24 views

certain web sites are not accesible from Centos 6.5

HW: Lenovo T520 laptop with MS WIN 7 dedicated PC (DELL GX 280) SW: CentOS 6.5 (64-bit) installed using VMware Player on MS WIN 7 host CASE A) -- BRIDGED networking selected CASE B) -- NAT ...
1
vote
0answers
9 views

xmobar doesn't appear

I installed xmonbar and try to launch it. xmonbar & I got Stopped. I don't know what's wrong. Here is my .xmobarrc Config { font = "-misc-fixed-*-*-*-*-13-*-*-*-*-*-*-*" , borderColor = ...
-2
votes
0answers
18 views

Disable telnet and ftp login for non-root users on HP-UX

How to disable telnet and ftp login for other users in hp ux 11.31, only root user have access to login through telnet and ftp.
-1
votes
0answers
15 views

Deleting symlinks of Firefox in Linux RedHat

I have played with symlinks and caused bunch of broken links. Now when (using GUI) I click on the firefox icon, it errors that "too many symlinks" exist. How should I clean those links? because I ...
1
vote
2answers
21 views

How do I write a command for the Exec key in a .desktop file containing a reserved character correctly?

I'm trying to make a .desktop file for Minecraft. The Exec command in my .desktop file is as follows: java -jar "~/.minecraft/Minecraft.jar" I can also think of doing it like this: java -jar ...
1
vote
0answers
11 views

USB umount stats: inappropriate ioctl for device

I'm writing some code for my program to mount a flash drive using mount("/dev/sda", "/media", "vfat", MS_NOATIME, NULL) and unmount using status = umount2("/media",MNT_DETACH); qDebug("USB unmount ...
0
votes
0answers
13 views

How can I type in one terminal and have it appear as if I were interacting with the second terminal (but not the first)? [on hold]

Honestly I don't care how this happens. Really I don't mean "terminal" necessarily, because what I look at are terminal emulators. If there is a terminal emulator I can use to do this, I'd be ...
1
vote
2answers
47 views

Find latest versions of multiple files in multiple directories

I am writing an application and one of the prerequisites is to be able to look at multiple directories and find the latest version of each file. I've had success with ls and find in order to get the ...
0
votes
1answer
20 views

How can I use SSH to tunnel Minecraft clients to my MineOS server?

I have a MineOS Turnkey server running on my university's network and its locked behind their firewall. I have been able to connect to their Linux servers using SSH and then SSH to my server from ...
1
vote
0answers
10 views

When using zsh tab-completion, Ignore CDPATH if a local file or directory matches

I love Z shell's tab completion with CDPATH, but sometimes it's overkill. I'd like it to only kick in as a fall-back if nothing in the local directory matches. For instance, I was just in ...
-2
votes
0answers
29 views

Extremely slow internet only with LAN

I am freaking out since about 3 months. As soon as I connect via the LAN cable at home some websites just won't load or are extremely slow for me. But with my WLAN I have no problems. For example: I ...
5
votes
1answer
31 views

How to find the number of bytes rewritten to a folder hierarchy?

I want metrics for how much writing and reading have been done to a folder. vmstat -d gives metrics at the whole disk level. iotop will give per process rw stats. But how can I find out how much ...
-7
votes
0answers
25 views

How do you zoom out on linux mint [on hold]

I hit a button by accident and zoomed in really far while I was on YouTube. How do I zoom back out?
-1
votes
0answers
6 views

Why is GCC not seeing functions in header file? [migrated]

When I try to compile I get this: aero$ gcc hostinfo.c /tmp/cc2RfYB2.o: In function `main': hostinfo.c:(.text+0x72): undefined reference to `Gethostbyaddr' hostinfo.c:(.text+0x8b): undefined ...
2
votes
1answer
21 views

What is the correct syntax for cloning a ntfs partition to a sparse file on another ntfs drive?

I have tried ddrescue -v -v -S /dev/sda2 /media/mint/otherhdd/img /media/mint/otherhdd/log and ddrescue -v -v -d -S /dev/sda2 /media/mint/otherhdd/img /media/mint/otherhdd/log but it does not work ...
5
votes
0answers
18 views

rsync hangs unless I defrag ext4 filesystem

I have a XBian server (Raspberry Pi version of Debian) running rsync via inetd (not the native dæmon). I am serving a couple of directories on an ext4 filesystem (on a USB disk) as individual modules ...
3
votes
0answers
18 views

Burning a video file with non-standard aspect ratio to DVD

A standard Unixy command line approach to burning a video file to DVD is as follows (assuming) # 1. First use ffmpeg to convert to an mpg file. ffmpeg -i input.m4v -target ntsc-dvd output.mpg # 2. ...
0
votes
1answer
12 views

Where is NMon cron job for AIX?

While trying to know where is NMon job configured to run; I do find that it's NOT listed on Crontab (using crontab -l). BUT - the job is currently running as expected, which is weird. See the ...
4
votes
1answer
98 views

Untar a specifc folder within tar.gz

How do I untar/uncompress a specific folder within a tar.gz using the terminal/commandline (Ubuntu 14.04 (Trusty Tahr))? Precise: -file.tar.gz -- folder1 -- folder2 How to extract... ... ...
0
votes
3answers
10 views

how to rename multiple files by replacing string in file name? this string contains a “#”

How to replace a text string in multiple files in Linux How to rename multiple files by replacing word in file name? Replace string in files with certain file extension Searching a number of files ...
2
votes
0answers
12 views

m4 macro using variable number of tabs to line up a column

This is the macro I have so far: define(`debug_macro', ` #ifndef $1_DEBUG #define $1_DEBUG'forloop(`i',`1',eval(5-(len($1)/4+ifelse(eval(len($1)%4 == 0)), `0', `1')),` ')dnl`0 #endif ') The goal ...
1
vote
0answers
7 views

rpmbuild different path for sysconfdir

I am building rpm for opensips and i want to install this package in /opt/opensips path instead of default system path I have define following in my SPEC file %define _prefix /opt/opensips ...
0
votes
0answers
20 views

Using NVIDIA instead of Intel causes a different theme

My current setup is a laptop with an NVIDIA Optimus graphics card running Ubuntu 14.10 with Cinnamon as my desktop environment. I usually use the Intel card because of the reason I'm asking this ...
18
votes
1answer
276 views

Switch to parent shell without logging out

Let's say I start in my local account: avindra@host:~> then I switch to root: host:~ # Then I switch to oracle: [ oracle@host:~] Is there a way for me to drop back into the root shell (the ...
2
votes
1answer
17 views

Exclude directories with 'rsync' and ssh with pull request

I am trying to pull from a remote server and exclude a directory on the remote server. For some reason it keeps pulling that directory I have excluded. Here is the command I am running: rsync -azP ...
4
votes
1answer
137 views

How to decrypt hostnames of a crypted .ssh/known_hosts with a list of the hostnames?

I try to find a script to decrypt (unhash) the ssh hostnames in the known_hosts file by passing a list of the hostnamses. So, to do exactly the reverse of: ssh-keygen -H -f known_hosts Or also, to ...
2
votes
2answers
13 views

In HP-UX, how can I log Informational Only system event messages in syslog.log?

I was getting some Informational Only single-bit memory errors on a server for at least three weeks, but I only happened to notice them because I went looking through the SEL via the MP console for an ...
1
vote
2answers
30 views

do not show error if file doesn't exist on copy, without sending to dev null

I want to avoid my script posting an error if I try to cp a file that does not exist. However, I would like error messages to print out for any other error, such as insufficient permissions. This ...
2
votes
0answers
43 views

Script for “battery level reminder”

I want to plug in the laptop battery charger when the battery level goes down to 40% and then plug it out when the battery charge level reaches 80%. And for that reason, I need a script that would ...
1
vote
2answers
53 views

mv multiple files same dir without specifying same path or each [duplicate]

If we have a dir/file setup like the following var |-->usr | |-FileA | |-FileB | |-FileC | |-FileD How can I move FileA and FileD without specifying the path twice like in ...

15 30 50 per page