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

learn more… | top users | synonyms

0
votes
1answer
22 views

Problem in invoke sudo make install in python script

I have written the following code to configure yara package in my script, but when it call sudo make install, python give me error. How can I fix it? def yara_installation(self): os.chdir("...
4
votes
1answer
215 views

Run in terminal not working

I am new to Ubuntu and I was trying to run this script: #!/usr/bin/env bash echo hello world It works fine if I open the terminal first and manually invoke it. Like ./test. I have set "Ask each ...
2
votes
1answer
17 views

How do you add execute permissions to a USB Flash Drive?

So for the longest time I've been trying to get Steam to a be a fully functional program on my Chromebook 14 and I've gotten pretty close. I unfortunately ran out of space however and decided to buy a ...
4
votes
4answers
687 views

How do I modify the reboot command?

I am trying to edit the reboot command to echo a message to the user, but the command itself located in /sbin is compiled. Is it possible to edit the command and have it print something out when the ...
0
votes
0answers
22 views

Matlab Command Line vs Tcsh Script

To run matlab desktop environment, I type in matlab on the command line ($SHELL = /usr/bin/tcsh). I then write a tcsh script containing a matlab script within it: Tcsh script #!/bin/tcsh -f matlab ...
2
votes
1answer
49 views

Running “ubuntu-support-status” throws an exception

I was reading on this page that running ubuntu-support-status Will "...print the exact status of your system." However, if I run that command, it crashes and throws an exception. Here's the ...
1
vote
1answer
81 views

How to make a build command in Geany IDE to compile and execute Objective-C programs?

I am a big fan of Geany IDE and Ubuntu. I am learning Objective-C programming language. I have Objective-C Environment in Ubuntu 16.04 and I compile Objective-C programs using terminal. But I want to ...
0
votes
0answers
29 views

How to install Technic [duplicate]

I have downloaded Technic and installed Java. I do not know how to make it as executable since it was downloaded from a web page. I am new to Ubuntu, so what command do I use to mark it as executable?
0
votes
1answer
82 views

strange command prompt error

Whenever I have two command prompts open I always get this script coming up after I execute the commands. Just to clarify the commands execute and output correctly but after the out put before the ...
1
vote
1answer
31 views

How can I accept virtual box license agreement in Ubuntu(16.04) terminal?

I am new to Ubuntu. I have just installed Ubuntu-16.04 in virtual-box and my host-OS in windows-8.1. I have run this command: sudo apt-get install virtualbox
0
votes
2answers
60 views

How can I execute a command from the text editor?

I am using Ubuntu 16.0.4 and Steam need a workaround: LD_PRELOAD='/usr/$LIB/libstdc++.so.6' steam It gets annoying to put it in the terminal every time I play. Is there a way to put the command ...
0
votes
1answer
64 views

command line calendar (cal) on M10 tablet not working

The command cal does not work on my M10 tablet, both in tablet and in desktop modes; it is the only failure I have found so far. Has anyone any ideas as to why it fails? Are there any other ...
-1
votes
1answer
34 views

Need help using a terminal command [duplicate]

http://forum.corsair.com/v3/showthread.php?t=149621 I don't understand how to use make && sudo make install
0
votes
0answers
13 views

code command for visual studio code doesn't work [duplicate]

hello guys I have installed VSCode for ubunto by downloading it from its site,extracting it to an arbitrary path (in my case /home/MASOUD/Programs )then clicking on Code binary file. however I should ...
3
votes
1answer
35 views

how to set some application to run only as root

I'm running Ubuntu 14.04 and I was wondering is there a way to set some applications to run only as root? for example the application X can normally executed by any user, and I want to set it to be ...
21
votes
3answers
1k views

How do I run a sudo command needing password input in the background?

I have recently disabled sudo's authentication caching ability so that it now prompts me for a password every time. And though this is good for security, it has caused one slight problem which I ...
0
votes
2answers
44 views

$ apt-get install git , this command is not running [duplicate]

It gives me this error E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? Please help me ...
1
vote
1answer
32 views

MMV doesn't execute in bash script (only if run by CRON)

this is my script "backup.sh": #!/bin/bash date=$(date +"%m-%d-%Y_%r") mmv -r "uploads/temp/*" "#1\ '$date'" mv /ftphome/uploads/temp/* /ftphome/uploads/arch/ My dir structure is like that: dr-...
18
votes
3answers
3k views

How do I run a command?

I am a new user, who has just been told to run / execute a command. The answer has some text with a grey background like this text here or sometimes this text here. However, I don't know what "run" ...
0
votes
1answer
162 views

LPCXpresso 8 on Ubuntu 14.04 64 bit

I'm trying to install LPCXpresso IDE 8 on ubuntu 14.04 64 bit but I receive an error: No protocol specified invalid command name "bind" while executing "::unknown bind Text <Tab>" ("...
0
votes
0answers
24 views

How do I make Ktimer play an audio loop after countdown?

I want Ktimer to function as an alarm. It executes a command when it's done its countdown. How do I make it play an audio loop?
0
votes
1answer
42 views

Can't execute this file [closed]

I can't execute the skype file. I have the permissions I need. What's the meaning of filename* in the ll output?
1
vote
0answers
21 views

How to only allow a file to be opened or executed by certain application(s)?

Let's say that I've got a security application (or something which I just don't want any old application or user to have access to because it is very important and if the wrong guys had access to it ...
2
votes
0answers
12 views

How to run a command at startup with systemd? [duplicate]

I've got a specific command which I want to run at startup, I am running Ubuntu GNOME 15.10 with GNOME 3.18 with systemd. But after searching I can only seem to find ways of doing it through upstart. ...
0
votes
2answers
284 views

How can I find the source code for linux commands? [duplicate]

I often come across interesting Linux commands that make me wonder; what are these commands actually doing? Yes, they might be 'force-removing dependencies', 'installing programs' and doing lots of ...
0
votes
0answers
24 views

ubuntu 14.04 getting error permission denied on STABILIZE command

I read this link and implemented sumlator via virtual box(this was my first question) and yes, sumlator is working fine. Now I have to run this command : STABILIZE>param load ../Tools/autotest/...
0
votes
1answer
190 views

Why do I get a “Permission denied” error every time I try to execute a C++ program?

Every time I try to execute a program, no matter what program, I get this message: bash: ./filename.cpp: Permission denied When I compile I have no problems, it works fine. But when I want to ...
0
votes
1answer
45 views

creating an executable file [duplicate]

I want to create a file which will execute a code, for example: sleep 60s; dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend -...
1
vote
1answer
109 views

How to execute a command after a certain period of inactivity, triggered by keyboard & mouse activity and full screen window?

My machine suspends after 5 minutes of inactivity, however I want to execute a command as well after 4 minutes and 30 seconds of inactivity. Is there a way to run a command after 4 minutes and 30 ...
1
vote
2answers
187 views

Command to exit and then relaunch gnome-terminal that can be executed from gnome-terminal?

I was wondering if it is possible to sort of restart gnome-terminal from itself? What I mean by that is, is there a command which I can use to tell gnome-terminal to close and then immediately ...
1
vote
1answer
119 views

How do I get Ubuntu 15.10 to show the desktop version

I downloaded and installed Ubuntu 15.10 alongside Windows 8.1. Everything was fine and working. Then I booted my computer and it goes to terminal, asks for login and then password, and then something ...
27
votes
1answer
2k views

Why do some programs running from Terminal using '&' close when Terminal does and others do not?

I was just wondering, for instance when I launch qtox with: qtox & And then close Terminal, qtox closes with it. However when running etherape using: sudo etherape & Closing Terminal ...
0
votes
2answers
82 views

How to make a command execute once a certain command terminates?

What I want to do: Whenever the apt-get install command is run and terminates, run another command immediately without any involvement on the user's part. In my case I want to run a script, but since ...
-5
votes
4answers
220 views

How to automatically execute a command every time a certain command terminates?

Example: Once the add-apt-repository process has terminated, immediately run apt-get update - without having to enter the command manually. Is there a way to do this? Is it possible to set such a ...
1
vote
1answer
175 views

How to add a python script as a terminal command? [duplicate]

Lets say I have a script which creates a file and writes something into it (but could be anything). It could be a script that runs a set of xrandr commands to set a resolution, for example. Is there ...
1
vote
1answer
91 views

How to allow scrolling to view complete command output in the command-line?

An example: When I enter compgen -c to view all possible terminal commands I get something like this: ll ls which if then else elif fi case esac for select while until do done and quite a bit more....
0
votes
1answer
39 views

How to execute something that is not in the directory you are in nor a sub-directory of that?

I want to execute a program by running ./path/to/program, however I want to be able to run this command to execute it no matter where I am. And the problem is that with this command it will only run ...
1
vote
1answer
248 views

View audio files by length - command line?

Is there a command(s) to view audio files sorted by length in the command-line? For example the shortest to longest?
0
votes
0answers
19 views

Command to view open ports as a server [duplicate]

first of all, I am not sure of what is "port as a server". that is a question of the school. someone can help me! I want to know how i can see open ports as a server by PROCESS. . thanks in ...
0
votes
1answer
195 views

Which numbers; 0 or 1 disable/enable gconftool?

Will this command enable or disable unredirection? gconftool-2 --set /apps/compizconfig-1/profiles/Default/plugins/composite/screen0/options/unredirect_fullscreen_windows --type bool 0 I think 0 is ...
1
vote
1answer
113 views

Mathematica & Ubuntu 14.04. Installation complete but command not found!

I just uploaded to Ubuntu 14.04, but Mathematica 10.1 is not working any more. I un-installed it and re-installed again. $ sudo bash Mathematica_10.1.0_LINUX.sh Mathematica 10.1.0 for LINUX ...
9
votes
1answer
358 views

How to check what command is taken?

I have a shell script called foo.sh in /usr/local/sbin. Besides I use another script with the same name. It is stored in /home/user/scripts. Both paths belong to PATH. How can I find out, which one ...
1
vote
1answer
353 views

How to run bin file on 14.04?

I have a .bin file I want to install. I have 14.04 64bit. I think the bin file is 32 bit. I already installed all the 386 libs as below: sudo apt-get install libc6:i386 libx11-6:i386 libasound2:i386 ...
0
votes
3answers
1k views

What does 'exec' do?

I recently meant to run the command pkexec, but accidentally managed to run the command exec by itself with no options or arguments. I looked in the man pages for the description of exec, but I still ...
0
votes
1answer
147 views

how to run a compiled CPP file with geany [duplicate]

I have recently compiled a .CPP file with Geany. The result file is a .o file. How can I run this .o program?
0
votes
1answer
137 views

What is help command in grub rescue mode

I tried ?, man and help but these commands did not give me any help. I am looking for a command to show help in grub rescue mode
7
votes
2answers
452 views

How to make it so that a file can only be executed by root, but not as root?

There are certain applications that I don't want people to be able to open unless they have root privileges, however I do not want to give the programs root privileges. So how can I make it so that ...
0
votes
1answer
104 views

Can not run a command at startup in ubuntu14.04 LTS

I am trying to run command with start up of computer, for that I add the command in cd /etc && sudo gedit rc.local But still when I restart the computer it's not running automatically. I have ...
0
votes
0answers
52 views

ERROR with gem for a ruby tool?

I am trying to install a tool script called bio-polyploid-tools and I am getting this error after command sudo gem install bio-polyploid-tools sammanmahmoud@samman[bioruby-polyploid-tools-master] ...
-4
votes
4answers
533 views

copying a file from documents folder to home folder using cp command [closed]

I am trying to learn how to copy a from one folder to other using command prompt using 'cp' command,file is getting copied from "home" folder to "documents" folder but i am unable to copy from "...