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

learn more… | top users | synonyms (1)

2
votes
0answers
36 views

How can I run a simple rsync shell script at boot with root? [duplicate]

I have a shell script that contains a single rsync command to rsync two local directories. I want the script to run at startup/during boot and I can't seem to find the solution for this problem. ...
3
votes
2answers
236 views

Why I obtain this error when I try to perform this simple bash script?

I am following this tutorial to correctly execute Aptana Studio on my Ubuntu 14.04: Command menu in aptana studio 3 is not working in ubuntu 14.04 So I have installed the Oracle JRE and finnally I ...
0
votes
1answer
25 views

is it possible that i deleted my files while trying to delete a symbolic link?

I made a symbolic link that points to a 500gb ntfs drive, when i executed the second command it halted for 3 seconds so i terminated it, i have a lot of files on the drive im not sure if it deleted ...
0
votes
0answers
97 views

unable to run script using “startup applications” option in ubuntu 14.04

I am trying to run following script to run my rails application on startup but unable to execute. run_my_app.sh #!/bin/bash cd /home/<user>/<my_rails_app> && rails server ...
0
votes
0answers
16 views

How do I sync Metadata?

Pryor to an update,I spent months editing and recovering album meta-data manually from the internet,making sure everything is the way it should be,sad to say after a kernel update I could not log in ...
0
votes
3answers
143 views

How to give all the users(except guest) permissions to particular directory via terminal?

I want every user to have full permissions over a single directory(and all the contents). Is this possible, and how? Thanks.
1
vote
3answers
45 views

ways of calculating required disk space prior to package download

The following is no duplicate of How to determine the size of a package while using apt prior to downloading?, it is more an additional question. Consider the following two implementations to get the ...
2
votes
1answer
47 views

Bash script using `sudo` runs correctly from cli but not when clicked to run

I am trying to get a simple bash script to run when I click on it. It runs perfectly from the cli but starting motion with sudo fails to start. I have that script setup with sudoers already for ...
2
votes
3answers
67 views

What version of Google Chrome do I have?

How can I find out what version of chrome I am using? I would like a command line method, not the GUI - visiting chrome://chrome in the url bar. I need to be able to use it in a bash script. I ran ...
0
votes
2answers
201 views

Docker. How to get bash\ssh inside runned container (run -d)?

I want to ssh or bash into runned docker container. Please, see example: $ sudo docker run -d webserver webserver is clean image from ubuntu:14.04 $ sudo docker ps CONTAINER ID IMAGE ...
1
vote
1answer
43 views

Bash script to convert multiple avi in to mp4

I have a lot of avi files in one folder and trying to convert them in to mp4. I am using this bash script not sure whats wrong. any idea? #!/bin/bash for i in *.avi; do name=`echo $i | cut -d'.' ...
-1
votes
1answer
39 views

bash variable array names and getting values

As you see , i have situation to read values in different arrays, like array1 , array 2 , array3 etc. and I need to print values array1[0], array2[1], like this. I can do it individually like this ...
3
votes
1answer
43 views

How to periodically back up a folder on change?

I want to achieve the following functionality in ubuntu but I dont know how to do it. I need a daemon that periodically backs up a directory, say dir to another location by doing the following: ...
0
votes
1answer
27 views

How do I revert updates to get to a usable GUI

I've been using 14.04 for a while and everything seems running smooth,until last night I downloaded updates.Afterwards I restarted and a message like a reminder or new email type message popped up ...
1
vote
1answer
37 views

Writing a script to rsync all directories

I have a huge set of backup files, each containing a directory of Videos. Each video directory is slightly different. I would like to merge these into a single directory to conserve, as I don't ...
0
votes
1answer
36 views

Maven only invokable from terminal while root

I'm following the directions laid out here: http://java.dzone.com/articles/installing-maven-304-ubuntu Everything is in the right place and the sym link is working correctly. However whenever I try ...
7
votes
3answers
293 views

Error message 'source: not found' when running a script

I am creating a little automated setup script that will modify /etc/profile and $HOME/.profile if some paths are not exported. Then, I'd like to reload these automatically. I have read that source ...
3
votes
1answer
68 views

Cron job not working properly on start up

Thanks for reading this. I have created a bash script to backup my databases. The script will create a directory for the day then create a backup file for each database within that directory. It ...
0
votes
0answers
13 views

Setting & Saving bookmarks on a video timeline

I have used openshot or better still flowblade in order to trim my videos say to get rid of advertisements but perhaps back in Windows era I was too fond of Solveigmm Video Splitter that I found any ...
1
vote
2answers
191 views

bash script to back up file [closed]

I have a few files to be backed up. I need a script to check line number of a file and if it exceeds, say 8000 lines, it will simply zip it and name it with date prefix format. I need your help.
-1
votes
2answers
38 views

Problem running the script in .sh file

I want to execute below script rm -rf /home/apps/temp export DAA_HOME=/home/apps/Tools/3.6/eclipse export BuildFile=/home/apps/Tools/Automated/BuildFile alias Studio_Home=$DAA_HOME rm -f ...
0
votes
1answer
57 views

return value from awk

This is mybashfile.sh file . . . awk -f myawkfile.awk mytracefile.tr . . . Now I want to return one parameter from myawkfile.awk to the current mybashfile.sh. Is there any way to return a value ...
9
votes
3answers
435 views

How can I set a single .bashrc file for several users?

during my work I need to constantly add alias commands to bashrc, most of those commands needs to be runed by other users. is there any way I could add alias commands to a bashrc from external source? ...
0
votes
1answer
104 views

How to launch interactive shell script in bash hourly with cron?

I put this line in the crontab: 1 * * * * DISPLAY=:0.0 /usr/bin/gnome-terminal -e /home/user/Desktop/mltpl The script is executable. If paste that command in the terminal--that is, the string ...
1
vote
1answer
46 views

libomniORB4.so.1: wrong ELF class: ELFCLASS64 [closed]

I'm running a bash script and it gives the following error. Anyone has any idea how to sort this out? error while loading shared libraries: libomniORB4.so.1: wrong ELF class: ELFCLASS64
2
votes
2answers
480 views

Ubuntu 14.04 not running Bash scripts in /etc/cron.daily

I have a few scripts (that currently run in a CentOS system) I have moved to a new Ubuntu 14.04 system. These scripts are in the /etc/cron.daily to run once a day. These scripts are to run at the ...
0
votes
3answers
24 views

Disable and enable certain websites automatically

As some sites like facebook are distracting to me, I have decited to edit /etc/hosts file in order to block (temporarily) those sites as an extra way to avoid these sites. As an example, my hosts file ...
1
vote
0answers
27 views

check dialog input fields [closed]

I try to add to below script a control that when I press "enter" key. I'd like being imposed to compile all 4 fields to continue with the script: #!/bin/bash shell="" groups="" user="" home="" exec ...
0
votes
1answer
79 views

Can't install HoNClient-3.4.3.sh

I'm desktop user. My OS running 32-bit Ubuntu 14.04LTS. The problem I've run into is this: When I try to run the client in the terminal, using the command: sudo sh HoNClient-3.4.3.sh it gives me ...
1
vote
1answer
41 views

Unique id for combination of Latitude - Longitude

I am new in using Linux (kubuntu 13). I have a LibreOffice Calc table containing one column with Latitude and one with Longitude. What I want to do is for every unique combination of Latitude and ...
0
votes
3answers
104 views

How to run a Phantomjs server with an upstart script?

I have phantomjs installed and I want to run a phantom server whenever the (Ubuntu) server starts. I am currently working locally on Ubuntu 14.04, and the server this will be deployed to is also ...
0
votes
6answers
54 views

bash prompt chenged itself to a plain “#”

Until I logged in today, as usual- my bash prompt was the standard "username@currpath # ". But today, for me, it's just "# ". If I login as root, it is normal. bashrc seems fine (as compared to ...
0
votes
0answers
9 views

How can I get Ubuntu touch on a galaxy tab 2 7.0 p3113? [duplicate]

I have been trying to install Ubuntu touch on my Galaxy tab 2 7.0 p3113 for about 3 days now. I have tried many work arounds but I keep getting: INFO:phablet-flash:Device detected as espressowifi ...
0
votes
0answers
53 views

Lost graphical login after automating script command

I'm running Ubuntu 12.04 LTS and I want to log all input/output from users. I've simply tried adding script -a -f /LOG_files/Log_file.txt to users ~/.profile. The logging works just fine, but ...
0
votes
1answer
27 views

Create a clickable install script for software

I want to create a simple script that a user can download, click on, and it will: request their root password through some sort of pop-up interface then sudo apt-get install a package to their ...
0
votes
1answer
82 views

Permanent PATH variable

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...
0
votes
1answer
106 views

Cron job not running - postfix/sendmail error

Here is my content of sudo crontab -e @hourly /home/userName/ntpdate.sh The content of my script (ntpdate.sh) //.25 is my ntp server echo "Current time is $(date), " >> ...
0
votes
0answers
55 views

Disable 'ESC' and 'Shift + Tab' history shortcuts in terminal

When in a bash terminal, if I hit ESC or Shift + Tab the command line goes to the history where I can move around to previous bash commands with vi-like bindings. I get messed up when in this mode ...
0
votes
0answers
62 views

How much Memory/RAM is really being used by this Ubuntu 14.04 system

How much RAM/memory is really being used by the Ubuntu 14.04 x64 system? From htop, the amount of memory used is 3 GB and swap usage (on SSD) is 5.7 GB. However it appears that the most memory hungry ...
2
votes
2answers
143 views

Opening multiple terminal tabs and running command

I need to open multiple terminal tabs, give them titles, go to a directory, and make each tab run a command. I am new to Linux and shell scripting, after searching online and checking some solutions, ...
0
votes
2answers
38 views

Running a .sh from a .desktop [Making an icon for Minecraft.]

Rather recently, I've decided to add minecraft to my dock. I play it enough to want it on my dock. I created a .desktop file, and I gave it an icon, name, and such. I figured that point the exec at ...
0
votes
2answers
56 views

Running a .sh to execute multiple commands

I was curious how I would go about running multiple commands via shell script. For example, just to try it out, I'd like to be able to connect a .desktop to a .sh that will run all the update codes ...
3
votes
3answers
255 views

Setting a randomly generated password to a variable?

I'm using the following line to create a randomly generated password in a bash script, but it doesn't look like the string is actually being set to the variable. #Generate random password ...
0
votes
0answers
24 views

access to all of the written on the terminal [duplicate]

I know there is .bash_history file on the home directory that stores all of the commands whom user has interred them. But I am looking for all thing which we see on the terminal. .bash_history file ...
0
votes
1answer
77 views

Bash history not saved after closing terminal

I recently replaced my Ubuntu 14.04 installation with Ubuntu Gnome (which comes with Gnome DE). But I noticed that bash history is not saved once the terminal session is closed. Once I close a ...
0
votes
2answers
51 views

Bash script to enable / disable SSH

Im running ubuntu 14.04 LTS (no GUI) and im looking to write a bash script that does the following: Check to see if the ssh service is enabled or disabled If enabled, then disable, if ...
2
votes
1answer
60 views

Is there any reason to use 'kill' instead of 'killall'/'pkill'?

Starting my adventure with Linux a couple of years back, most tutorials and older, more experienced colleagues suggested using the command 'kill', sort of like a replacement for the Process Manager ...
2
votes
2answers
27 views

Background Job (launched with '&') Stops On Logout

I am using AWS to setup a Node.JS server. I launch node in the background by the following command: node server.js & However, when I log out, the process ends. From my previous 'nix ...
0
votes
4answers
67 views

SSH remote command execute stays without disconnect when finished execute?

I am trying to build a script/command that will restart our Asterisk/Elastix service on our PBX. The script is basically using simple command with auto log-in public key that run from Ubuntu ...
0
votes
1answer
65 views

Unigine Heaven run directly from terminal?

I think a lot of you would have benchmarked your Linux system using Unigine Heaven Benchmark 4.0. I know to run the it you can simply go to the Unigine Heaven folder and run the shell script file ...