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

learn more… | top users | synonyms (1)

0
votes
0answers
26 views

Autostart shell scripts; they work from command line but not on startup (log in). Why? [duplicate]

Every time when I start my system I have to manually start some bash scripts. A script for accelerating the key rate or for swapping the ESC key with the Caps-lock key. I want my system to load these ...
1
vote
1answer
229 views

Schedule shell script to display output in terminal

I have added a shell backup script to crontab, and it seems to run every night, but I currently need to check the target to see that it's worked. What would be much more helpful would be for the task ...
1
vote
0answers
51 views

Testing post-install scripts

I love to experiment with my Ubuntu GNOME 14.04, so there are many mistakes to be made and things to learn. Often I want a clean install, so I made post-install script. Question is: what is the best ...
0
votes
0answers
24 views

Script to Cycle Through WiFi Connections

I would like to create a command line script to cycle through available WiFi connections. How would I go about accomplishing this?
2
votes
1answer
51 views

Automatic Account lock/logoff script

I have 2 scripts created. The first one called "lock_logoff" and it does just that. It locks the account in the script and then logs them off. The second script unlocks the account. I got tire of ...
0
votes
0answers
38 views

How to add samtools in the PATH permanently [duplicate]

I installed samtools executables within my bin directory under home directory. Installation works perfectly well. I am using Ubuntu 14.04 version and it has .profile and .bashrc in my home directory ...
0
votes
1answer
104 views

Replace text in file with variable using sed [duplicate]

I need to replace a string in a file by another string which is stored in a variable. Now I know that sed -i 's|sourceString|destinationString|g' myTextFile.txt replaces a string but what if ...
0
votes
2answers
102 views

Extract numbers with awk

a part of a script in awk looks like this sub(/^Mutation: {"seq-pos":/,"") && sub(/, "time":/," ") && sub(/}$/,"") { print >"fifth_"FILENAME} The aim is that given this ...
0
votes
1answer
492 views

bin/bash: ruby command not found. Ruby not in sudo path

I can't seem to run any code on ruby with any text editor. This error is returned when code is run /bin/bash: ruby: command not found [Finished in 0.0s with exit code 127] [shell_cmd: ruby ...
0
votes
1answer
16 views

Process pasued but connection not terminated to files in locasystem

I am not sure whether this is the right place or not but as this is a question which needed a solution I am posting here. I have used kill -SIGSTOP 1234 command to pasue a process named as 1234 and ...
0
votes
0answers
80 views

Why bracketed paste mode is enabled sporadically in my terminal screen?

I use Ubuntu 14.04 and I have a weird issue with my terminal screen which is bugging me a lot. Could someone help me with it or explain me if I'm doing something wrong or non linux-way? I have some ...
3
votes
3answers
301 views

Write the output of multiple sequential commands to a text file

I try to Check the latest Firefox and want to get all hashes in one TXT file. What I try to do is: sha1sum firefox.tar.gz > sha.txt and I try also: md5sum firefox.tar.gz > sha.txt | sha1sum ...
3
votes
2answers
316 views

Is typescript for `script` command the same as TypeScript maintained by Microsoft? How to print using `ldr`?

Is typescript for script command the same as TypeScript maintained by Microsoft? How to print using ldr ? What exactly is typescript in relation to Linux/Ubuntu ? Searching Google, I find that ...
5
votes
1answer
230 views

Bash script doesn't run from nautilus, but does run from terminal

Before I add more detail to my question, I have to say something very important: Yes my script has "Allow executing file as program" turned on The question itself: For programming reasons (shared ...
3
votes
1answer
122 views

Nautilus-Open-Terminal tries to open ZSH instead of bash

I recently tried zsh as a shell but didn't like it much. Then removed it and I still continue to use bash. When I was using bash, I had this cool script 'nautilus-open-terminal' which lets you open a ...
0
votes
1answer
135 views

How to open a “.sb” file?

I downloaded a game in .sb format that is partition is Ubuntu but even with the terminal I can not seem to open it. Here's what it said: fruity@xXxFruityxXx:~/Downloads$ ...
1
vote
1answer
42 views

/usr/bin/svnadd legit or malicious?

I installed OSSEC, and the following file failed a rootkit check. I'm not sure if it's malicious or what it's doing. Any help would be greatly appreciated! The file is a bash file: /usr/bin/svnadd ...
3
votes
2answers
158 views

Difference between “./” and “. ” for running a script/application? [duplicate]

I always ran scripts using ./ For example ./script.sh I recently learned that you can also type . script.sh Is there any difference? The second is much easier for me since my keyboard ...
-2
votes
2answers
111 views

Terminal command cd (change directory) directly

The directory Pictures is located at /home/mj/Pictures/ The Terminal window displays (meaning /home/mj/): ~$ In the "Ubuntu Documentation: Using The Terminal" it says: … use, "cd /var/www" to ...
1
vote
4answers
238 views

Reformatting tables

I have the following type of tables: ID date DailyFlow a 1972-01-01 17.0265761797993 b 1972-01-02 17.200476457399 c 1972-01-03 17.2926436045271 d 1972-01-04 17.3900277599829 e 1972-01-05 ...
1
vote
2answers
68 views

bash: syntax error with pandas.read_excel [closed]

I am trying to input this command: example = pd.read_excel('080615_gene_expression.xlsx' , index_col = 0) but I get this error: -bash: syntax error near unexpected token `(' I have tried changing ...
0
votes
0answers
27 views

how to set permission for a windows folder from ubuntu [duplicate]

i'm using dual boot on my laptop UBUTNU 14.04 and WINDOWS 7 i can access to windows partition from ubuntu 14.04 , i want to run a script in a windows folder , but by giving the permission ...
1
vote
1answer
400 views

How can I use ZSH when I use sudo commands but not as default root shell?

So, I would like to keep bash as the default shell for root. But, I would prefer to use zsh, my shell, when I run sudo commands, and that sudo executes also the .zshrc in /root. For testing ...
3
votes
2answers
366 views

How can I copy the path to the currently opened file in gedit to the clipboard?

I am trying to write a custom command in Gedit which copies the currently open and active document's path(both upto parent dir & upto file) to clipboard, as I couldn't find any gedit-plugins or ...
1
vote
1answer
58 views

How to remove floating point

I have a variable as a string: var="50.335" I try to convert it to int like this: var=$(printf "%.0f\n" "$((var))") and echo it out:echo $var But I get this error: syntax error: invalid ...
3
votes
1answer
135 views

Are there any options of bash with which it is invoked?

I find that the default shell that I use when I start Terminal (with Ctrl+Alt+T) is /bin/bash. And running the built-in command type on bash as: type -p bash returns the result as: /bin/bash ...
0
votes
1answer
258 views

How can you change Unity's theme from the command line?

I've seen several methods to do this. However, most of them are not an option to me. I can't use unity-tweak-tool because I need to run the script as root. I can't seem to find a gsettings command ...
2
votes
1answer
212 views

run a ruby program on startup

I have written a small webSocket server using ruby. I run it from the command line using the command: ruby websocket_server.rb This will bring the server up and will work till I keep my ssh ...
1
vote
2answers
74 views

Executing a bash script in the terminal just by its name [duplicate]

I am trying to follow this example in the Bash Guide over here where one can run a script just by its name instead of bash scriptname. First I used these three commands to create a bin directory, add ...
5
votes
3answers
686 views

Script for “extracting” subfolders into parent folder

This gonna be a little bit tricky, I guess :-) When I open a terminal in the folder and run a script, that script should: move all content of all subfolders to a top parent folder (recursively) ...
-1
votes
1answer
111 views

bash: ${debian_chroot!-}: bad substitution

So I'm learning how to shell script and i got this error. Every thing I've read on the other posts makes it seem like a directory file path like most terminal commands have stashed away. My version of ...
3
votes
1answer
229 views

Script running from terminal but not in crontab

My problem is the following: I've made a script called copy.sh in the /var/etc folder in order to copy some .cfg files from there to myfiles #!/bin/bash SHELL=/bin/bash ...
0
votes
0answers
32 views

Definition of basic ubuntu terms [duplicate]

I am new to linux and i wanted to know the difference between the definition on the words : terminal , bash , script , command line , shell Any help would be appreciated .
0
votes
1answer
31 views

Linked Files in LD_LIBRARY_PATH statement not working

Is there some magic to ensure that Link files work when part of a PATH statement? I have an app that is looking for /opt/Qt/5/gcc_64/lib/libXmlPatterns.so.5 The above file is a link to a file in ...
2
votes
1answer
67 views

problem to push volume beyond 100% on Ubuntu GNOME

I made a bash script to push the volume beyond 100% in Ubuntu GNOME, to be able to start it during the boot process as my laptop's sound in Ubuntu is so weak. The script is /usr/bin/volume150.sh and ...
1
vote
0answers
144 views

When I manually start my own service it runs in the foreground, is this correct?

I have created my own service by: copying my binary to /usr/bin/mcp Create a daemon copying the skeleton: /etc/init.d/skeleton Modify the skeleton bash script top: ...
0
votes
1answer
51 views

Lengthen Variables

I print data to a form in a console and use tput cup the print it on the same position. This way I can create a sort of form with a small discription of each value. but if you run var=12 tput cup 2 ...
1
vote
1answer
57 views

Customizing Byobu

I'm trying to configure Byobu to show the computers external IP-adress by using this little script in .byobu/bin. The script is called 10_ipadress and contains these lines: #!/bin/sh wget -qO- ...
2
votes
1answer
43 views

Create an alias to print a command instead of executing it

I'm just getting into customising my bash profile and I'm wondering how I can type an alias and bring it up on the cli without actually executing it. Using Curl as an example I'd like to type an alias ...
1
vote
1answer
126 views

Bash script to convert multiple image sequences to video files

I'm trying to make a script to take multiple series of image sequences within subdirectories of the present working directory and send them through ffmpeg to create video files in the present working ...
0
votes
0answers
10 views

Multiwindow screen

I want to create ./console, which will show four screen splitted vertical and horizontal. How can I do it? I tried: screen -rD s1 screen -S s1 -X split but it doesn't split. Why? CTRL-a and :split ...
0
votes
1answer
218 views

Run open and read command on a file within python - not using a script

I'm going through the "Learn python the hardway" - it suggest running "python" from the terminal and using the 'open' and 'read' commands on a file. I created the provided script and sample text file ...
2
votes
1answer
132 views

Zenity does not show messages in deb preinst when it is ran through Ubuntu Software Center

I am creating a deb package which requires java oracle >= 7. So I wrote a simple preinst file with bash script that will pop up a message (using zenity) that will warn the user that he needs to ...
2
votes
2answers
91 views

How to prevent commands being removed from history?

I have noticed that when I go up through my commands using the arrow keys, UP and DOWN, that if I then edit a command, it edits it in history, and I can even remove a command like that, however I do ...
3
votes
1answer
162 views

How to validate passwords with pam

I have got a bash script which asks for your password, and then needs to validate the password using pam, I have installed libpam0g-dev as I understand I need it for this, but how exactly do I go ...
1
vote
1answer
174 views

How to open a file in text editor through terminal?

I am fairly new to Linux and using Ubuntu. I am trying to set-up a task alert everyday at a fixed time. I am using the "Scheduled tasks" software tool(I have installed this) for the same. This ...
0
votes
1answer
488 views

running a bash file states:date: command not found

I've installed a version of Ubuntu Server and although I'm fairly still fresh with Ubuntu, I'm trying to create a bash file to run a program in the background. More importantly, I'm trying to get a ...
25
votes
4answers
3k views

Can someone explain tilde usage?

I was confused, trying to copy some files from one PC to another. I have it figured out, but the syntax is still confusing to me. This works: scp ~/Desktop/Volenteer.png jay@server.ip:~j0h/b which ...
0
votes
2answers
238 views

bash is looking for a missing ' " ' , unexpected EOF

I have problem with bash which is looking for a missing character but I cannot find it. Maybe there is something else wrong? Every time I open the terminal I get this error: bash: ...
1
vote
1answer
130 views

How to set a default option for dpkg --configure -a?

How can I send a command like following, but with default parameters (without user input). I want to use this in a shell script. dpkg --configure -a ... ==> Modified (by you or by a script) ...