Bash is the shell used in Ubuntu's command-line interface.

learn more… | top users | synonyms (1)

0
votes
1answer
45 views

What does 'history | grep cp -r ' do?

I typed this commands by mistake in my shell and then my shell was filled with all the text . I don't know what it does .Please someone explain it to me .
2
votes
1answer
65 views

Ubuntu / Bash recognising “export PATH=$PATH:~/…” but not “export PATH=$PATH:/home/…”

So I've been using ubuntu since 09.04 but have limited experience with sys admin. I now want to get into web development and as part of installing the Play Framework, I had to add the activator path ...
0
votes
1answer
53 views

Unable to add repository key to local keychain

I want to install Docker application on my Ubuntu, but i can't execute a command to add Docker repository key to my local keychain. Here's this command: sudo apt-key adv --keyserver ...
2
votes
1answer
150 views

Bash Tab Completion: '-bash: unexpected EOF while looking for matching `)' -bash: syntax error: unexpected end of file

I'm trying to go into an irb session with specific environment variables from a file with this command: $ env $(cat env.sh) irb But when I try press Tab after I type env. to complete it, I get this ...
0
votes
0answers
50 views

How to get paths for default theme icons folders?

I have a desktop file, for Icon i set it to myIconName. Now I have multiple sized PNGs for my icon. I need to find the paths to the default theme icon folders, cross-OS-Linux solution, so I can drop ...
0
votes
1answer
28 views

Unable to append quote sign in terminal out put for offset sequence

I have following offset addresses saved inside a file placed at desktop. eagle@max-pc:~$cat ~/Desktop/offset.txt 0x00000000 0x00000419 0x0000073d 0x00000a24 0x000011cf 0x0000139c ... Now I want to ...
1
vote
2answers
69 views

how to fix my keyboard after a bash script messed it up

Okay, I was stupid. I ran a bash script I got off of some forum on the internet, github I think it was, that said a cool matrix would appear in the terminal, which did happen, but it also messed up my ...
0
votes
1answer
59 views

Used sudo command that I don't understand, want to undo it

I recently installed Ubuntu 14.04 for the first time, and I've been wrestling with various aspects of it since (mostly successfully), however in attempting to fix and issue with Firefox not playing ...
-2
votes
1answer
34 views

How does this lowercase expression works in bash

I want to convert a vaiable value to lower case. To do this, I am doing following lower_case_var=echo ${var,,} Above expression works fine. However, I am wondering that how it works?
1
vote
0answers
39 views

Errors in update checking script (cause: repositories not available)

I have a scripts that tests if updates on my 14.04 server are available, and send me a text message if that happens. The bash script begins with: IFS=';' read updates security_updates < ...
0
votes
1answer
39 views

Writing a bash script to run a server

This is how I launch the server in the terminal: ~$ cd meteor/writer10 && meteor I have to do that every time I start Ubuntu so I thought it would be nice to write a bash script so automate ...
0
votes
2answers
61 views

Deleting first letter of each line

I have a file and I need to delete its first letter of each lines. I tried this: for i in do if [ $5 -eq cat harfler | grep `head -n i harfler | head -c 1` ] then echo "succeded" tr -d `head -n i` fi ...
0
votes
1answer
65 views

How to create a script to sync notes to files using Geeknote

The problem I want to create a directory with my notes from Evernote in files with the Markdown format. I found out that this can be made using Geeknote, but for each notebook every time. How to ...
0
votes
0answers
61 views

Issue with Bash during Zookeeper Installation [duplicate]

I'm new to this stuff. I get an error during installing ZooKeeper. $ echo 1 > /var/lib/zookeeper/myid bash: /var/lib/zookeeper/myid: Permission denied $ nano ~/.bashrc export ...
1
vote
0answers
14 views

Packaging bash file .deb [duplicate]

How can a (with very simple instruction) make a .deb file continent some .desktop files and shell bash files
2
votes
0answers
35 views

When should (( )) be preferred over [ ] for specifying conditions? [closed]

In bash shell scripting, when should we prefer (( )) over test command for specifying conditions? Moreover, what is the difference between the two?
0
votes
2answers
61 views

Stuck in a loop after login in 14.04

I am a Linux beginner so bear with me please. I used a bash script to automatically re-connect to OpenVPN. It worked fine when I ran it. ...
0
votes
2answers
38 views

Send a twiter message from the terminal

Is there away to send a message form the terminal or write a shell bash file that fill send a message to twiter.
2
votes
1answer
76 views

Auto-complete in Ubutnu 14.04 terminal

How can I replace TAB with CTRL+SPACE for auto-complete in Ubuntu terminal?
2
votes
4answers
555 views

Why is this Bash script not working?

I wrote a small Bash script so that the image in the folder becomes the wallpaper: for f in *.jpg do gsettings set org.gnome.desktop.background picture-uri file:$f The error is: ./wall.sh: ...
2
votes
1answer
161 views

Not able to create user on Ubuntu 14.04 (32 bit)

I'm sorry this post is so long, but I wanted to make sure that all the stuff that might be relevant was readily available. I've been trying to create a new user account on my laptop, and, even though ...
1
vote
1answer
46 views

How to use source command for exporting path?

I am trying to set the path of few libraries using source command but its not working and says dsbisht@dsbisht-ThinkCentre-E73:~/Workstation$ source .list bash: .list: No such file or directory My ...
11
votes
1answer
553 views

How can I find the command history if a user used a space before the command?

Do we have any way to find out the command history if the user uses space before any command in the bash, because if user uses space before any command it won't show in history?
1
vote
2answers
24 views

Can't add the exec option to my data partition in Ubuntu 14.04

I'm using an HDD as a external drive, it has 3 partitions and one of them is for my Ubuntu Documents. I'm trying to compile my programs and it gives me the msg: bash: ./qt-opencv-multithreaded: ...
4
votes
4answers
181 views

Command to create sequentially numbered targeted directories and batch move files

I'm creating a timelapse video by splitting a video into individual images, using G'MIC via the command line to average every 7 frames, then output the results to new images which will result in the ...
2
votes
1answer
171 views

Why isn't .profile sourced when opening a terminal?

Just installed Ubuntu 14.04.1 LTS. According to .profile, # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash, if ~/.bash_profile or ~/.bash_login ...
2
votes
1answer
176 views

14.10 gnome classic metacity unable to hook up keyboard shortcut to binary

I am trying to get the Aero Snap effect working on an Ubuntu 14.10 using Gnome Classic Metacity. I found a command that works if I execute in on a terminal window: wmctrl -r :ACTIVE: -b ...
0
votes
2answers
44 views

Bash: Regular Expressions in substitution

I have a bash script to substitute number values inside a text pattern. Suppose I have a file like this: word5word word55word And I want it to look like this: word125word word125word I have this ...
1
vote
4answers
163 views

Create bash file to open minecraft launcher

I use this command in the terminal to run the minecraft launcher with java 8: /home/max/Java/jre1.8.0_25/bin/java -jar Minecraft.jar I included the full java path because I installed it on /home as ...
3
votes
1answer
30 views

Export PATH and EMSCRIPTEN

I am confused about PATH setup. I was installing emscripten and following their tutorial. As the last step you export variables running source ./emsdk_env.sh This exports couple of things: ...
0
votes
1answer
43 views

Is it possible to track the terminal command of a user

We want to monitor the user typing command using terminal . Where the command is saving (.bash-history) is only showing few of the command. Is it possible to get the command executed from the ...
1
vote
1answer
24 views

Glob behavior differences between script and command line

Note the distinct behavior of the following between the shell and a function defined in the shell: First: try directly on the shell: 0:23:34/shared $ls -dlrta ?pectral* -rw-r-----@ 1 steve staff ...
0
votes
1answer
70 views

How to end a cron started script?

I start a script via cron which works fine. But when i then try to end that script via cron (either killall / pkill / pgrep does work) nothing happens. If i let cron try to kill it or try it my own ...
4
votes
2answers
102 views

ping command in bash shows heart character

Why am I seeing a heart ♥ after the ping command? I'm running the command below over an ssh connection in ConEmu, if that changes anything. Is this expected or have I been hacked in some fashion? ...
2
votes
1answer
67 views

Alternative for |(pipe) operator

I'm looking for a alternative for | operator in bash shell for redirecting output of command as input to the next command. Is there any alternative? something like : command1 | command2 | command3 ...
1
vote
1answer
54 views

cant cd to a directory error while moving files to another directory

I have written the following code to MOVE ALL THE TRACE FILES CREATED BEFORE 2 MINUTES TO A SEPARATE DIRECTORY. Now when I am hard-coding the source and target path in the script, it is working fine; ...
0
votes
0answers
122 views

Increasing ALSA's buffer size

I'm trying to change ALSA's original buffer size, in order to increase it. Until now, I had no luck. I've tried to execute the commands listed in http://pastebin.com/4FibYN0U, however,I don't have ...
0
votes
1answer
43 views

My bash script only opens editor, why doesn't it run? [duplicate]

I created a script to dd sdb to sdc on my older computer with Ubuntu 13. It ran when I clicked on it – asked if I wanted to run in terminal or edit it. On a newer computer, with Ubuntu 14, I created ...
0
votes
1answer
44 views

“Permission denied” when download from script(ruby) file [duplicate]

I want to download a project's dependencies from a script file in tutorial said: run this comment to download ./download-dependencies core my way was like this: $ cd Documents/ImageProccesing/ $ ...
0
votes
0answers
33 views

Change iface when internet is slow bash script

Need help with script that will change eth1 or eth2 ( to auto set different route ). I have eth0 that is shared to lan and two different gateways (routers), one on eth1 and second on eth2. For now ...
2
votes
1answer
42 views

How to Launch Terminal Script with Appliation Icon?

I am relatively new to linux, but I wanted to get my Tor browser up and running. I have downloaded and extracted the Tor Browser Bundle. In order to open the browser I need to cd to the file and run a ...
1
vote
2answers
49 views

Will “kill -SIGTERM” stop “tail -f”?

Just as the title says, Google gives me nothing and I can't test it on this server. The command as is follows: tail -f <file> | fgrep --line-buffered "string" | sed -u 's/stuff//g' >> ...
0
votes
1answer
60 views

How to use rsyslog?

I've been scouring forums for a few hours and cannot find a concrete explanation on how to use rsyslog. I really just need the basics. I have a log file logFile.log and I want to forward the logs to ...
0
votes
1answer
75 views

Start a terminal on login and show a message

How can I write a bash that will execute at login and starts a terminal with message. pseado code: .bash_login #!/bin/bash gnome-terminal echo "hello user $username"; Just trying to learn some ...
1
vote
1answer
55 views

Does order of precedence with ENV variable changes which program to use?

Question: Does order of precedence in the PATH influence Ubuntu to choose which program to use? More details: I use .bashrc for declaring private env PATH, I have installed MSP430-gcc from ubuntu ...
0
votes
1answer
28 views

piping in real time

This is more a conceptual thing than a current problem. Would it be possible to do this: tail -f <file> | grep "string" | sed 's/stuff//g' >> output.txt The problem I'm thinking is that ...
0
votes
0answers
80 views

Bash script is not working. Could somebody help me?

E: Hi, i could use some help. I am sorry that some parts of the bash are in german. There are sure some mistakes in there but i can not find them i tried severel hours right now. I would be happy if ...
2
votes
1answer
52 views

How to run a complex command by xfce mail-watcher

I just installed the xfce4-mailwatch-plugin I would like to use the option "Run on click" to either switch to Thunderbird, or to open it if it is not currently running. The command I use for this is ...
1
vote
1answer
52 views

Start script on boot up?

I want to run a script when the system starts. The script is: #!/bin/bash gnome-terminal --tab -t "MyPC" -e "sh -c 'nohup firefox & nohup gedit & bash'" --tab -t "MYPC2" -e "sh -c 'ls -al;ls; ...
1
vote
1answer
80 views

Is there a way to reprogram the thinkvantage button to assign a shell bash program to it?

Is there a way to reprogram the lenovo think vantage button to open and run a shell bash program on ubuntu 14.04 lts? I have tried system preferences > keyboard >shortcuts > custom and assigned a ...