Questions relating to the execution (running) of a file (usually a compiled binary) or a command.

learn more… | top users | synonyms

5
votes
2answers
249 views

Execute command from file in current shell

I want to executed command from file (which is script) in current shell in terminal. Example: I have file ch_dir contains following: #!/bin/bash cd /usr Now if I execute file usually as following ...
3
votes
2answers
227 views

What is use of command: `command`?

Recently I found command: command which has no manual entry but help displays as follows: $ help command command: command [-pVv] command [arg ...] Execute a simple command or display information ...
3
votes
1answer
128 views

vim command does not work

I am trying to open vim on my Ubuntu 14.04 64 bit by entering the command in the terminal : vim But i get the response : The program 'vim' can be found in the following packages: * vim * ...
1
vote
1answer
81 views

rc.local won't execute the script

This is my rc.local #!/bin/sh -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # ...
0
votes
1answer
25 views

don't have permission or doesn't exist

I'm trying to configure an Oculus rift and I have a configuration script that needs to be executed: GLADOS@deathbox:~/Desktop/OculusSDK/Tools/OculusConfigUtil$ ./OculusConfigUtil_i386 bash: ...
5
votes
5answers
303 views

Needed simple script/loop/command for input command, execute and output within textfiles

Suppose I have list of commands in text file as below (cat cmdlist.txt):- cut lshw top awk sensors Now I want to get simple information on that command by whatis cut, whatis lshw etc. respectively ...
0
votes
2answers
43 views

Find and exec in found folder

I'm trying to find files containing *.nef and move them to a subdirectory name NEF of the folder in which the file is found. I've started testing with the following command, but this always copies to ...
0
votes
2answers
19 views

Read/If command help

I'm trying to run this- #!/bin/bash echo "Who are you?" read NAMES { if [ "$NAMES" == "Mallory" ] ; echo "Hello, me!" else [ "$NAMES" == "Palmer" ] ; echo "Hey, baby! I love you!" else ...
1
vote
0answers
36 views

How to execute a program periodically? & disply difeerence in output [duplicate]

I want to run command repeatedly and display their output. Example: I want to run ls command repeatedly and display output so-that I can see changes in directory contents. Also facility to ...
0
votes
1answer
82 views

Terminal commands not recognized as an internal or external command

I tried: startx and it didn't work saying: startx is not recognized as an internal or external command And tried: sudo apt-get install ubuntu-desktop But I get: sudo is not recognized as an ...
0
votes
4answers
356 views

Run command on another(new) terminal window

How to run any command in another terminal window? Example: I opened one terminal window and if I run command like apropos editor, then it run and out-puts on that window. But I want to run same ...
0
votes
0answers
13 views

Automatically run a command after unlocking screen/wake up? [duplicate]

Is there an easy way to make Ubuntu run a specified command each time I unlock the screen (after an overlay with password prompt dissapears)?
1
vote
3answers
66 views

Help creating a messagebox notification with yes/no options before an application runs

I started using Ubuntu alongside Windows about 2 months ago. I've slowly been adding all of the programs that I use regularly to Ubuntu, so that I will eventually be able to do everything in Ubuntu ...
1
vote
1answer
122 views

write a bash which open firefox on every ten minute

Is it possible to write an script which do a specific command every ten minute? I do not know if this is a loop? For example Every ten minute delete a file name foo on the home directory? or every ...
1
vote
0answers
20 views

Is there a command to get the location of a file which I have clicked and am dragging?

I want to be able to drag a file to the edge of the screen, and a command that gets the location of the file I'm holding. I know how to get it to run the command when at the edge, I just don't know ...
0
votes
0answers
275 views

How to run Genymotion via terminal

So I installed Genymotion and I used this website as a guide: https://cloud.genymotion.com/page/doc/. Unfortunately, when I do the last step it won't let me run the application. Thank you. This is ...
1
vote
2answers
86 views

Is there a command to scroll?

Other than using xdotool is there a way to scroll down by a set amount using a command. In other words, what is the scrolling command? I'm not looking for a keyboard shortcut, I want a command for ...
-2
votes
1answer
45 views

any way to track an application [duplicate]

I have a software which when I go its directory path in terminal I run ./myprogram and my application start so I want to know how to understand which files are reading by my program which is not ...
0
votes
1answer
49 views

How do I execute a .exe file from a certain directory in another directory?

I'm trying execute tuxlol.exe. I tried ./tuxlol but I keep getting error messages saying no such command exists. The code I'm trying to execute in terminal is: $ mono tuxlol.exe patch --dir ...
0
votes
0answers
31 views

Detect if a mouse button is held down and execute a command

Is there a way to detect if a mouse button is held down and execute a command depending on the result?
3
votes
3answers
73 views

Is there any difference between run command in terminal & ALT+F2

For running direct command, there is two way. Either run in Terminal Or run with Ctrl+Alt+F2 Then, Is there any difference between them? (working same & shell) or redirects to same?
0
votes
0answers
25 views

How do I connect a mysql client? [duplicate]

I'm trying to run mysql in Ubuntu by running mysql -u root -p in the terminal and getting this error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
0
votes
2answers
78 views

Pausing a long running program in the terminal?

Is there a keyboard key combination that I can use to pause a program running in the terminal? In case it matters, I don't intend to run anything else inside that terminal while to program is paused. ...
0
votes
1answer
68 views

How can I keep something running but run other terminal commands? [duplicate]

I'm sure this is a really stupid question and it's probably already been asked a dozen times on this site, and I just don't know which keywords to search. I'm still really new to managing a server and ...
0
votes
2answers
95 views

bypass sudo for a group of commands

I need to bypass sudo for a group of commands for a certain user so the command is just executed without using the sudo
3
votes
4answers
257 views

Add to path only sh file not a dir

I have a bin folder with a bunch of sh files. For example "server-run.sh", "server-stop.sh", "server-do-something.sh". And I want to run file "server-stop.sh" from anywhere. I could add this bin ...
1
vote
1answer
170 views

Bash script for execute one command for many files

I just tried to clear my holiday video stuff and found program for stibilizng vision. There are a lot of files so I made script to stabilize all. Firstly I need to run command: transcode -J ...
-2
votes
1answer
259 views

What does 'chmod +x <filename>' and how do I use it? [closed]

I want to write a 'batch file', but I don't know how to use chmod +x <filename> command, nor where to use it.
0
votes
2answers
290 views

Extract A Squashfs To An Existing Directory

I have an Ubuntu installation backed up as a .squashfs file. I would like to extract it to the root of a partition, but when I try gives me an error saying the directory exists. I can extract just ...
0
votes
1answer
121 views

How can force a bash script to execute in www, and not executing in filesystem/*?

I have some .sh bash scripts which creates some directories, downloads some sourcefiles via SVN and so on. The scripts works every well, but it annoys me that they are performing the action in ...
1
vote
2answers
81 views

how change file attributes to make it executable [duplicate]

I want to execute a text file, but I need to change the file preferences so that when I open it, it will actually run the file instead displaying it. However, I don't know how to change the file ...
2
votes
2answers
83 views

How to start a program without interrupting my current session?

I'am working on some code or document and I need an additional program like IntellJ e.g. How can I start this program in the background without popping up and interrupting me on my work? Often I start ...
2
votes
3answers
709 views

Execute command before shutdown/reboot

I have a machine running a couple of vagrant VM. The problem I have is that sometimes I forget to shutdown those VM before I shutdown or reboot my machine. Because of that my machine get stuck with ...
1
vote
1answer
59 views

Resources to learn Ubuntu commands [duplicate]

I am newly installed Ubuntu 13.10 but I want to learn all Ubuntu terminal commands are there any free book or good tutorial for this ?
1
vote
1answer
54 views

In ubuntu matlab execution file cannot be run

I have stored my matlab installation in one of the partitions.But ubuntu doesn't recognize the matlab file as an executable file even after executing chmod +x command. Kindly help me to resolve the ...
0
votes
0answers
79 views

Can not execute binary file

I installed ubuntu 12.04 in Laptop. In this laptop two windows win7 and win 8 are already installed. I installed the 3rd OS i.e uBuntu. Installed from USB flash drive. Installation wise no problem. ...
1
vote
1answer
1k views

rc.local not executing command

I was trying to make my laptop running Ubuntu 13.10 remember the brightness from the last time and set it automatically on start-up. I was thinking about using xbacklight to set the brightness. So, as ...
0
votes
2answers
633 views

how to use the terminal with linux 13.10? [duplicate]

I would like to know how can I use the terminal? The functionality of commands. I don't know how can I use the terminal for download movies or software.
0
votes
1answer
156 views

Installing Invenio

When I execute the command make to install invenio this error appears: make all-recursive make[1]: Entering directory `/root/src/invenio' Making all in po make[2]: Entering directory ...
2
votes
1answer
702 views

Unable to change execute permissions of .sh file [duplicate]

I'm out with a new problem. I've downloaded a jdk7.sh file. Now I'm unable to change the permission of the file to allow executing the file as a program. I mark the check box and again it disappears.
1
vote
2answers
110 views

How do I execute a program with default variables?

How can I execute a program (specifically a bash alias) with the default environment variables? Consider this example: export test="something I dont want to exist" alias _xterm='xterm -fn 7x13 -fa ...
2
votes
2answers
3k views

not able to execute .sh file

I downloaded modelsim install file which contained .sh file in it -setup.sh I did the following two things Right click->properties->permision->allow executing file as program ->double clicked the ...
0
votes
1answer
44 views

Running a command as soon as I save a file

I want to run a command as soon as I save a specific text file. I know how to do it when the file closes, but I am looking for the code to execute as soon as I hit Ctrl+S. Thanks in advance..
2
votes
2answers
32k views

Moving file from folder 1 to folder 2 in terminal

I am trying to move a text file from folder 1 to folder 2 via terminal. I'm doing this for a school project to show what actually happens when you copy paste. I'm doing cp/home/rits/desktop/folder1 ...
2
votes
2answers
119 views

root@mickey:/#su goofy && ssh goofy.com — why does this fail?

mickey (who is logged in as root) tries to use goofy's account to ssh into goofy.com. root@mickey:/#su goofy && ssh goofy.com however this fails to login goofy on goofy.com, instead: ...
0
votes
2answers
297 views

cannot start application if not on correct path

I have the following app "System monitor indicator" and I want to make it start on boot up. So I am trying to find whats the name of the app to call it from the terminal, I find the "exe" at ...
0
votes
1answer
461 views

Run a command after a specific USB was plugged in [duplicate]

I want my usb to run a command or a script --like autorun-- when it is plugged in. I've also searching and found out that autorun was not present because of some security reason(s). How do you run a ...
1
vote
1answer
169 views

Admin name appears twice if it asks for admin password. Ubuntu 12.04 LTS

I was trying to apply some given items at this page to secure my Ubuntu 12,04. After applying item number 4; my user name which is the only admin, appears twice if system asks for an admin password as ...
54
votes
7answers
27k views

How do I run executable scripts in Nautilus?

When I double-click on a script in Nautilus to run it, the script just opens in my text editor with no option to run it. Using Nautilus, how do I run executable text files and/or scripts?
10
votes
1answer
689 views

What does this “… | ps `cat`” command do?

On my Internet research, I found the following command as solution to find the process name of a window: xprop _NET_WM_PID | sed 's/_NET_WM_PID(CARDINAL) = //' | ps `cat` I just do not understand ...