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

learn more… | top users | synonyms

0
votes
0answers
58 views

Ubuntu Server on Hyper-V - How to get the ip address of the host?

I'm running ubuntu server 15.10 in Hyper-V on a Win10 Host. I use autofs on ubuntu to automatically mount a network share during boot. Everything is working as expected - As long as the ip address of ...
0
votes
0answers
83 views

In Debian XFCE 4.10, how do I change the default Terminal shell from dash to bash?

I have a Debian-based Linux system (Kali Linux) running on AWS with the XFCE desktop environment. When I click on the "Terminal" icon in the application selector at the bottom of the screen, the ...
0
votes
0answers
14 views

Automatic documentation of dotfiles/config files configuration options

Has there been any work done on the front of automatic config file documentation? For example it is a good practice to add a comment line above/next to your config option, such as (source links at ...
0
votes
0answers
46 views

SSH Tunnel between devices behind firewall and vps ubuntu server

I am trying to establish an ssh tunnel between devices, that run OpenELEC and my ubuntu vps server. The idea is that the devices will open an ssh tunnel to the server and keep it on at any given ...
0
votes
0answers
27 views

elementary OS + Bash + VIM tab completion broken

When I type :q and press Tab, I get this output: :q^I Instead, it should complete it to: :quit My ~/.vimrc: " An example for a vimrc file. " " Maintainer: Bram Moolenaar <Bram@vim.org> ...
0
votes
0answers
7 views

Navigation keys not working in R installed on linux

Navigation keys not working in R installed on linux (Linux version 3.10.0-327.10.1.el7.x86_64). I am using R version 3.0.1. When I press up arrow its giving “^[[A”. Could you please suggest me how to ...
0
votes
0answers
20 views

Module is found by python2.7 but not python3.4 in debian 8

I m trying to use a python module in python3.4 but I did the whole PythonPath variable thing in my .bashrc file and the module only works with python 2.7. If I run python3.4 interactively and try to ...
0
votes
0answers
33 views

Inconsistent Notepad++ syntax highlighting in Bash/Shell

What I want is (controlled by SCALAR and PARAM styles): However, with quotes ("), everything becomes (controlled by STRING style): How do I make the 2 undermost lines get the highlighting, as ...
0
votes
0answers
40 views

Get custom kernel parameter variable of booting qemu

Im currently using qemu on windows for testing my own linux distribution. its a embedded version built with buildroot. After building the distribution i have created a iso file. When i start the ...
0
votes
0answers
32 views

Keyboard event: 'k' behaves as dead key

I have a really strange problem. My letter 'k' behaves like a dead key (like an accent) in the terminal (KDE Konsole, xterm). It behaves normal when using vim or graphical programs like firefox. In ...
0
votes
0answers
46 views

Copy files and replace a directory

I have the following file structure that comes out of my continuous integration tool: stage/acme-plugin/target/acme-plugin-1.0.0.jar stage/example-plugin/target/example-plugin-2.5.0.jar but what I ...
0
votes
0answers
37 views

“fork: Resource temporarily unavailable” from git in MacOS El Capitan

Sometimes when I am using Git and cannot do a sudo command, it reports fork: Resource temporarily unavailable What does this mean, and what should I do about it?
0
votes
0answers
48 views

Broken pipe when starting process in background using tee and nohup

I am starting a process like this in the background: nohup /path/scriptbin </dev/null 2>&1 | tee -a thelog.log 2>&1 >/dev/null & The process listens on a port (and connects ...
0
votes
0answers
7 views

Bash autocompletion for git checkout when file is missing

Let's say you have a git directory with: foo/bar.txt foo/qux.txt and you rm foo/bar.txt. Is there any way to get bash+git to autocomplete when you type git checkout -- foo/b<TAB>?
0
votes
0answers
7 views

Trouble Unzipping .cbr files in a Bash Script

I'm writing a bash script that unzips .cbr files (which is a comic file, essentially just an archive filled with pictures that can be read by Comic Reading Software). I'm using cygwin (since I have ...
0
votes
0answers
26 views

how to find all files with same pattern, recursively, and concatenate them in a new directory

I have a parent directory with a bunch of sub directories that might have sub directories. all the files are called elanXXXX_lX.AAA.X.fq.gz. like this: elan2012_l1.2.fq.gz or elan920_l2.rem.1.fq.gz. ...
0
votes
0answers
34 views

Get color output when running a local script through SSH

I am trying to run a local script over SSH and still receive colored output from the remote execution, as if it was a tty. To put it simply: $ ssh -t somehost 'if [ -t 1 ] ; then echo terminal; else ...
0
votes
0answers
9 views

Variable from dialog box input doesn't behave as expected

I have a variable which the user sets by selecting from a dialog list. The variable is later used to cd. The variables are subdirectories in the format "sub.domain.tld." Import options array m here ...
0
votes
0answers
34 views

Difference between Procfile and Procfile.Windows in heroku servers

I'm learning how to deploy a Django project with Heroku. And I notice two files in this repository (git from tutorial): https://github.com/heroku/python-getting-started The file Procfile, I do ...
0
votes
0answers
55 views

Homebrew installation

I installed homebrew, because I wanted to install ruby. I also installed rbenv and than tried to change the ruby version to 2.2.2. But I can't do any command on my terminal now. For example when I ...
0
votes
0answers
21 views

bash “vi mode” search command line (not history buffer)

When working in bash - if I am in "vi" mode, I can use ? or / to "search". However, this appears to search the history buffer. If I am working with a (very) long command line, I would like to be able ...
0
votes
0answers
34 views

chruby's Ruby $PATH variable changing on its own when current working directory changes?

I installed Ruby and Rails using a guide I found here: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/ Notably, this guide uses ruby-install and chruby scripts to allow the ...
0
votes
0answers
13 views

Linux Bash pts are not sorted

I log in to a debian server via ssh. Let's say I do this with 5 clients. Then the clients get: pts/1 pts/3 pts/4 pts/5 pts/6 So why is there no pts/2 ? (I did not find any pts/2 in ps aux) PS: When ...
0
votes
0answers
21 views

git hub for version control for an entire directory

Code at bottom I am using a private repo on git hub as a version control between me and partner and I am having some difficulties in my approach. I have wrote a few bash scripts as a way of ...
0
votes
0answers
29 views

GNU screen - open new window in working directory of current window in a named (sessionname) session?

In order to open a new screen window in the same directory as the current working directory of the screen window you are launching it from (rather than the directory you initially launched the screen ...
0
votes
0answers
25 views

Windows RegEdit: How to properly quote Cygwin commands in Registry “RunAs” entry?

I have a Windows machine with Cygwin/X installed and X11 server running. I want to open text files with Cygwin/X's GVim. I already have it set up, with the appropriate Registry entry at ...
0
votes
0answers
103 views

Add SONAR_RUNNER_HOME correctly to PATH

I'm trying to use sonar-runner in my Mac. So i download SonarScanner and follow the instruction here : http://docs.sonarqube.org/display/SONAR/Analyzing+with+SonarQube+Scanner When i try to run " ...
0
votes
0answers
67 views

In elasticbeanstalk, can I ssh in and manually restart the (node) app?

I want to eb ssh in, stop the node app (not the entire instance), make a debug change, and npm start. When I eb ssh in I can inspect my files, and edit them. But I can't use the npm commands, and I ...
0
votes
0answers
16 views

Stop bash script with any key

I'm writing a script which I want to stop with any key I choose. After pressing the key, my intention is to complete all my commands at that moment and start su. I've tried adding a & to my ...
0
votes
0answers
49 views

Vagrant shell provisioner does not respond

I am provisioning a VM through shell script in AWS using vagrant-aws plugin. VM gets launched and the shell script gets executed but I don't see any update on the shell prompt. It used to get updated ...
0
votes
0answers
58 views

Remotely shutdown all computers on network running Ubuntu - bash scripting

I'm trying to iterate sudo poweroff through all ip addresses in my network using for loop. All computers in the network have the same password. sshpass -p password ssh $ip sudo poweroff The problem ...
0
votes
0answers
14 views

Default Profile

How can I set the default profile to be loaded on a bash login? My system was loading my user profile instead of the system one. I had it working properly and seemed to have accidentally broken it ...
0
votes
0answers
33 views

Most commands won't work on bash

So I updated to latest version of El Capitan (10.11.3) and adb stopped working for me. Upon messing with ~/.bash_profile, I made it worse and now most commands like open etc. won't work in terminal. I ...
0
votes
0answers
55 views

Bash 4.3 Substring Negative Length on OS X

Bash 4.2 added support for negative substring lengths: http://tldp.org/LDP/abs/html/abs-guide.html#SUBSTREXTR01 Example 37-12. Negative parameter in string-extraction construct When the ...
0
votes
0answers
16 views

Is it possible to automatically compile a LaTeX document through terminal using TeXworks?

I want to create an alias to automatically compile the main .tex file of a big document in LaTeX under Debian Wheezy. That means I need a shell command to do so. Is this possible? I am currently ...
0
votes
0answers
29 views

Sed command to replace NUL character in file

I am using the command sed -i 's/\o000//g' filename or sed -i 's/\x0//g' filename to remove the NUL character but the command works fine in DEV environment but doesnt work in UAT. OS and sed version ...
0
votes
0answers
57 views

source ~/.bashrc No command 'some' found, did you mean:

I just recently installed ubuntu 14.0.4 and I'm not sure why I can't source my ~/.bashrc. Whenever I issue source ~/.bashrc I get: No command 'some' found, did you mean: Command 'tome' from ...
0
votes
0answers
21 views

Launch agent to run a .sh when it is added to a folder

I am trying to create a launch agent that will monitor a folder for when a .sh file has been added to it and then run it. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC ...
0
votes
0answers
76 views

Git Bash delayed output

I run some program in git bash terminal on windows and redirect output to grep to search for specific keywords. Problem is that the output is delayed, so it looks like the terminal waits for a chunk ...
0
votes
0answers
12 views

Checking if file exists to launch different programs

I use the following code to check for a file named loaded in the shared folder.This works when the file is placed in the local dir but it does not write the file to the shared folder. What I'm i doing ...
0
votes
0answers
16 views

mac terminal and iterm does queue up input during operations

I have this problem where if I input something time consuming the inputs I give the terminal does not queue up on the next command line. $ rails c afsdfadfadsfadfa development environment (Rails ...
0
votes
0answers
392 views

stty: standard input: Invalid argument error when scping files

When I try to scp a file to my remote server I get the following error: stty: standard input: Invalid argument This is caused by a line in my .bashrc file: stty -ixon If I remove that line, the ...
0
votes
0answers
38 views

Linux hangs after rebooting

I have a script that needs to run at boot time, I set it up using update-rc.d and now when I reboot the system with sudo reboot the system hangs during the boot process. But if I restart the system ...
0
votes
0answers
30 views

How to add .bash_profile in Windows to run Matlab-based IPython notebooks

I'm looking at this tutorial to run matlab code in IPython notebook: http://anneurai.net/2015/11/12/matlab-based-ipython-notebooks/. but I am stuck at step3: I edited the .bash_profile file located ...
0
votes
0answers
97 views

How can I export ubuntu terminal's profile in another computers?

i have the next commands this command for save my current terminal profile settings gconftool-2 --dump '/apps/gnome-terminal' > gnome-terminal-conf.xml and this other to load these save ...
0
votes
0answers
60 views

Not able to login by PuTTY Network Error

I have reset the user ("sftuser"), after that I am unable to login to the server, its throwing an error when logging in using putty: PuTTY Network Error: Software caused connection abort I am ...
0
votes
0answers
110 views

OS / System / Command Injection query in Linux

I found a command injection vulnerability in Linux. The system does not allow any white space characters meaning The following command works: ;ls But I want to provide command with space, like: ...
0
votes
0answers
164 views

Why do I get this “Could not find /tmp” error from Git (or bash.exe)?

I am using Git to manage our project sources. For the continuous use, I employ a couple of active environments: TortoiseGit, for visual operations and immediate status feedback. Cygwin, through ...
0
votes
0answers
48 views

how can I have my bash script detect mac filtering

I have my own hacking lab with old computers and routers. I hooked up my tp link mr3040 openwrt router via ethernet and have it as its own router on the network. I thought, "if mac filtering is on, ...
0
votes
0answers
17 views

Shell Scripting - Mac - Emailing

I'm just messing around with shell scripting after doing some in the past, and I have figured out how to Email myself from writing a script by using: mail -s 'Backup status' ...