Bash is a free shell for Unix-like operating systems from the GNU Project.

learn more… | top users | synonyms

4
votes
0answers
240 views

emacs term-mode redraws prompt when backspacing inside executables

I am reliant on emacs (version 24.4.1 on Debian) term and ansi-term modes. They normally work just like xTerm for me, but when running an interactive program that has a prompt (like the node.js prompt,...
4
votes
0answers
691 views

Can I reverse the stream direction of my terminal?

I'm not sure on how to word this question any other way but that's it. Is it possible to reverse the way your terminal prints text? For example if I type a command, I type it from the bottom of the ...
3
votes
0answers
23 views

How to send trackback to arXiv papers from a Jekyll blog?

Sorry, my question was directed from Academia.SE here by the admins. If there is a better place to ask this question, please let me know as well. I have recently noticed that arXiv.org website ...
3
votes
0answers
286 views

Unable to rsync to another volume with Git Bash

I use git bash on a windows machine: version 2.7.2 (32-bit version) of Git for Windows built on 2016-02-23 available from https://git-scm.com. Within bash I can copy a directory from /c/ to /e/ (a ...
3
votes
0answers
275 views

How to start a systemd service after user login and stop it before user logout

I have a Fedora 23 Machine. I have a directory/file synchronizing bash script that synchronizes my local /home directory to a remote directory (in a NAS machine). I run it manually but I would like ...
3
votes
0answers
25 views

How can I pass content of Chrome internal page to a shell script?

I would like to be able to pass the content of this internal chrome page to a file "about:gpu" but I don't know how. All this with bash commands. I would appreciate your help
3
votes
0answers
134 views

Howto Emacs nyan-mode image in console

I have emacs’ nyan-mode working in my OS X desktop emacs (24.5). But I’d very much like to get that working in my console emacs. I’m using: Ubuntu Server 12.04 LTS (precise), in a Vagrant VM. (OSX) ...
3
votes
0answers
32 views

GNU screen is slow exiting

I've set up my .bashrc to automatically screen -DRA (even though it's a local session). screen works fine, except that if I run exit from the last window or otherwise close it from the client itself, ...
3
votes
0answers
204 views

How to open a local file with a query string appended to it in the default browser?

I want to do something like this from a shell script: $ open 'foo.html?foo=bar' Sadly that fails, as it looks for a file named foo.html?foo=bar instead of foo.html before opening the browser: The ...
3
votes
0answers
235 views

Problems with bash script, mysql inserts and launchd

I am developing a automated system, which consists of 3 parts: mysql, bash and launchd. Bash script takes folders of work related stuff, zips, archives and puts info about them into database that is ...
3
votes
0answers
608 views

How to mount SMB share from terminal using keychain?

I need to be able mount a SMB share from terminal, for MAC OS versions (10.7). Is there a way to use mount_smbfs with keychain so I don't get prompt the username/password or have to add it to the ...
3
votes
0answers
1k views

Grub: Legacy 'ask' parameter no longer supported

I'm trying to change the resolution on my base shell (the Ctrl+Alt+1) shell in Debian so that it supports my ViewSonic monitor. The shell appears really fuzzy when it is displayed on my lcd monitor, ...
2
votes
0answers
140 views

Bash on Ubuntu on Windows: Can't change (some) directory colors

On the new Bash on Ubuntu on Windows (10) app, I have tried to change the directory colors from blue to some thing more visible but haven't been able to change some file/directory colors for some ...
2
votes
0answers
36 views

Cannot import colour presets into iTerm 2

Long time user of the standard terminal, short term user of iTerm 2. I've found a colour preset I want to use, however after importing them when I select them from Preferences > profiles > load ...
2
votes
0answers
95 views

Force Ubuntu user to use specific shell

After years of reading helpful questions/answers on superuser, today it's my turn. I'm playing around with "lshell", a linux shell written in python (lshell on github) which gives the opportunity to ...
2
votes
0answers
47 views

Setting up a watchfolder

I want to make a folder that I can put any video file into and have ffmpeg catch it and spit it out as an mp4 and remove the non-mp4 file. I have the following: for f in *.*; do ffmpeg -i input -c:...
2
votes
0answers
48 views

Bash script: change to a directory with special chars

I have a bash script that goes through my music collection and downloads missing covers. The problem I have is that I can't cd to some directories which has '&' '(' and other characters. The ...
2
votes
0answers
83 views

Windows gVim, shell starts in HOME instead of working directory

I've recently have gotten sick of constantly switching between Windows and Linux and installed gVim and MSYS2 on Windows 7. After a couple hours of searching I have a .vimrc that makes !command, make, ...
2
votes
0answers
20 views

Do iTunes backups store file modification times?

I have an iPhone. With a USB connection, I can use tools such as Macroplant iExplorer or Apple's Image Capture to transfer files from the iPhone to my computer. When I transfer files over USB, the ...
2
votes
0answers
274 views

HTTP server doesn't seem to support byte ranges. Cannot resume. homestead up

When I used the command "homestead up" it stopped working at 45% so I closed it and restarted my computer. Now when I try to run the command homestead up, my computer says resuming download then I get ...
2
votes
0answers
38 views

Typing “Ctrl+R” only lets me type a single character when I'm connected via SSH

I connect to my server via ssh (PuTTY). Type Ctrl+R at the console. Type a single character. I can cycle through the previous commands by pressing Ctrl+R more times. But if I type another character ...
2
votes
0answers
40 views

Enabling readline?

I have an .inputrc file set up on a system that doesn't seem to be respecting it. If I bind the file (as per this post) or try to load it with C-x C-r, nothing happens - I still do not get any of the ...
2
votes
0answers
57 views

Name a tab in iterm2, even with pane splits

I see there are solutions to name tabs in iterm2 when there is a single pane, but it doesn't work well with multiple panes/splits. So if I have two terminals open in a split under a tab, I would need ...
2
votes
0answers
34 views

Can one start shell from save file dialog

Using ubuntu. If one tries to print to a file, the save dialog opens. Is there a way one can execute the shell (or terminal) from the save file dialog file name entry box?
2
votes
0answers
145 views

bash Segfault by infinite recursion

I just noticed that the bash I'm using (4.2.25(1)) isn't protected against infinite function recursion. In such a case a Segfault happens (and the bash process terminates). To check this on your ...
2
votes
0answers
463 views

Pacmd dynamic range compression Ubuntu 14.04

I used the answer at the link below to successfully set Dynamic Range Compression on my Ubuntu media box running Ubuntu 14.04 (SteamOS session, so no Ubuntu desktop session available). Realtime sound ...
2
votes
0answers
176 views

Enter a Failed Docker Container with a Different Command

I have a fairly complicated docker container I'm attempting to build. As part of the build process I have I install Chef and have Chef install a number of cookbooks using Chef-Solo. I am having the ...
2
votes
0answers
141 views

How to enable windows-style cntrl+backspace in msysgit (git bash)?

I would like to configure my msysgit environment to use windows-style backspace shortcuts, i.e. cntrl+backspace deletes a word. I found this http://stackoverflow.com/questions/4094828/msysgit-bash-...
2
votes
0answers
52 views

Can't resume editor running as root

For years, when I have been working over an SSH connection, I will run sudo vi ... to edit a config file. If I need to do something on the command-line, I'll hit Ctrl+Z to suspend the editor, do ...
2
votes
0answers
32 views

Auto find file parameter in bash

I've been trying to construct a method for bash to auto complete a file argument. so when you type vi not[tab][tab] it auto completes to notes.md if it is within the history or path or gives a list of ...
2
votes
0answers
266 views

Cannot Stat Error When Copying From Android Phone to Ubuntu 13.10

I am trying to move a video file from my phone to my harddrive via a script and am running into trouble with permissions. I am using the following command: sudo cp "/run/user/1000/gvfs/mtp:host=[usb:...
2
votes
0answers
367 views

Restore Launchpad DB from Backup using Bash/Terminal?

Context: I'm using an OSX shell script to update my settings system-wide after a fresh OS install. One snag I've ran into is restoring Launchpad. I have my launchpad DB backed up via GoogleDrive at: $...
2
votes
0answers
454 views

stdbuf not working while unbuffer does

I am trying to apply timestamps to stdout of a process. For the proper timestamps to be applied, I attempt to unbuffer stdout of the process. This works with unbuffer but not with stdbuf as I would ...
2
votes
0answers
99 views

How can I get bash to perform case insensitive tab-completion for my aliases and functions?

I have a alias like this: alias sshUntrusted='ssh -X -C -c blowfish-cbc,arcfour' when I type: $ sshun bash does not complete this alias I have put set completion-ignore-case on #ignore case ...
2
votes
0answers
132 views

Trying to bind <ESC> to keysequence “öö” in bash vi mode

I am trying to use the german umlaut "ö" in a sequence "öö" as a binding for ESC. Having the following in my .inputrc does the job with "jj" instead of "öö"; however, when changing "jj" to "öö", it ...
2
votes
0answers
92 views

SoX fails to concatenate *some* newly generated aiff files

I have a Python script that is using Mac OS X's built in speech synthesis API to create aiff files of some processed text via PyObjC/AppKit. Everything is working fine, but I can't get the aiff files ...
2
votes
0answers
248 views

rsync: large exclusion list adding 10 hours to sync

I have had an rsync backup script running on a Centos 6 box that has been syncing ~410gb of data from a local (LAN) server over a gigabit connection. This script runs hourly, and if there are no new ...
2
votes
0answers
461 views

ssh Prompts For Password After Account Unlocked - Despite ssh key?

Here's what happened: I set up ssh key so that user could ssh from A to B without a password. I got user's password wrong in some other context too many times, and user's account got locked out. (...
2
votes
0answers
1k views

File shows different size after copying to another directory

I used cp -rP <dir name> <new dir name> to copy the contents of a directory, including permissions etc from one dir to another. The odd thing is, either du is giving me some strange ...
2
votes
0answers
452 views

Why does this line appear every time I launch iTerm on my MacBook?

So I use iTerm on my MacBook Air and also my MacBook Pro. I've been playing around with .bashrc and .bash_profile and trying to come up with clever ways to configure things. At one point I decided I ...
2
votes
0answers
121 views

sudo: preserve non-std file descriptors

Long story short: why isn't this (simplified) sample working? root:# sudo -C 3 -u regular-user cat /dev/fd/3 3< /var/log/syslog cat: /dev/fd/3: No Such file or directory There is a file that ...
2
votes
0answers
522 views

Copy the output of the last command in Terminal.app

!! | pbcopy would also run the commands again and couldn't be used with interactive commands. This relies on the prompt always being $ : tell application "Terminal" to tell window 1 to history do ...
2
votes
0answers
219 views

Branch names not showing in Mercurial's tab completion

I have a development machine running mercurial 1.6.3. Tab completion in bash works great for completing commands, tags and branch names. I've set up a new machine with the same mercurial version (both ...
1
vote
0answers
34 views

Bash - log every input and output and write to file

I am often on assignment and sometimes I forget to document my work. E.g. write down output from different one off tools. Is there a way to automate that via .bashrc? So I open up a new shell, it ...
1
vote
0answers
22 views

Using bash script to merge 2 ipset rules

I have 2 ipset rules in 2 files, they are: file 1: /etc/ipset.up.rules add mynetrulesssh 103.207.38.64/26 add mynetrulesssh 103.207.38.96 add mynetrulesssh 222.186.34.122 file 2: /etc/ipset.up....
1
vote
0answers
22 views

tmux always starts with `/bin/bash` instead of `/usr/local/bin/bash`

No matter what I do, tmux will always use /bin/bash as its login shell. I have set $SHELL to /usr/local/bin/bash which should work according to the man page of tmux. And $SHELL is definitely exported,...
1
vote
0answers
23 views

Bash script quits after command

My bash script quits after running the first command, why? It outputs the result of ntpstats and stops #!/bin/bash # Output ntpstats ntpstats echo "" # Output ntp query ntpq -p
1
vote
0answers
17 views

Converting JPG to MP4 green output

I'm trying to convert JPEGs to MP4 using ffmpeg. I've got the process working for PNGs so I know I'm heading down the right track. With when ffmpeg finishes processing a JPEG, the resulting MP4 can ...
1
vote
0answers
22 views

Find windows program pid with its path

I want to kill a program with a windows bash script.I need to find the pid of a program with its path.we have three different directories with same program on a computer.We start all program all of ...
1
vote
0answers
59 views

Speedup zsh startup time

I'm on MacOS 10.11. When I open a new tab on Iterm2, it takes almost 2 second to have the prompt. So I guess I have something in .zshrc / .bash_profile / .bashrc that takes times to load. Here are ...