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

learn more… | top users | synonyms

0
votes
0answers
13 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
9 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
71 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
19 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 ...
0
votes
1answer
114 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
31 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 ...
3
votes
1answer
39 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
70 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
57 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 ...
33
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
51 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
146 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
72 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
36 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 ...
0
votes
1answer
34 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
174 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
53 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
59 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
346 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 ...
0
votes
1answer
94 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
191 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
95 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
98 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
10
votes
2answers
359 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
62 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
36 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
146 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 ...
0
votes
2answers
44 views

how do I send control characters to serial device

I have a serial device, which needs to receive the commands ctrl+W and ctrl+V before I can begin programming it. I was trying to use cutecom, but I don't see an option to send control characters. ...
0
votes
1answer
57 views

Issues Executing a Shell Script

I'm new to Linux. Recently I bought a VPS to host a teamspeak server on. I am running Ubuntu 14.04. All is well but I need to run a script called ts3recover.sh: #! /usr/bin/env bash # init function ...
1
vote
3answers
47 views

History command in graphic interface of OS

Does Ubuntu store a history of command executed in the graphic interface (not in a shell session)? For example if, by mouse, I click on System Settings, then click on Network, do these steps ...
0
votes
2answers
50 views

command for opening android studio

I recently installed easystroke on my Ubuntu 14.04 LTS system. I want to add a shortcut stroke for the same. Can you guys tell me what command to use? location of android studio is ...
0
votes
2answers
28 views

appends n-th line from the file x at the end of the file y

I have been asked to write a command that appends the n-th line (MYN) from a file (x)to another file (y). Here's what I've done so far: MYN=4 hey=$(awk 'NR==$MYN' x) echo "$hey" >> y But why ...
5
votes
1answer
409 views

How to get sudo to prompt you for a password each time

I find that if I execute something using sudo that then if I execute something else soon after also using sudo, that it does not prompt me for my password, and although this can be inconvenient in ...
1
vote
2answers
44 views

How to excecute a .sh program with old date

How can i make a .sh file that will run another .sh file on a old date like... Set date to 2014/06/03 run .sh file set date back to real time
0
votes
1answer
36 views

execute-command; limit program cpu usage for executable program

Is it possible to limit usage of a program to specific kernel or limit usage of processor capacity? It otherwise runs on 100% during long time.
0
votes
2answers
69 views

Minecraft not Executing

So, I've had Ubuntu for a good 6 months on my HP Chromebook 14. I downloaded and began playing Minecraft immediately with no problem. Then, today I go onto my laptop and open up Ubuntu. I double click ...
0
votes
0answers
29 views

How to run a compiled cpp file after booting up the system [duplicate]

I am using an arm v7 soc system which runs ubuntu very well. I can run my compiled cpp file (compiled with g++) perfectly from terminal by ./myproject. However i want code to start automatically ...
1
vote
1answer
86 views

Need help with .sh script

I’m trying to get this ~/Desktop/Tor/tor-browser_en-US/ && ./start-tor-browser to run as a .sh. I've tried over and over again to get it to work, what am I doing wrong? #!/bin/bash chmod ...
14
votes
6answers
825 views

Most efficient way of launching and separating a program from the terminal? [duplicate]

I'm trying to launch a program from the Terminal in such a way that the following occurs: Closing the Terminal does not close the program The program is not outputting anything to the Terminal while ...
0
votes
1answer
341 views

Executable won't execute

I hope that my post is acceptable although I am actually running lubuntu, not ubuntu. I am trying to create an executable file but I am having difficulties. I created a script with a text editor and ...
0
votes
0answers
10 views

Every new compiled file has not the permission to be executed [duplicate]

As in the title stated, every time a compile a c++ file with g++ program.cpp -o program, I have to change the permissions for it to be executed. Two questions: How do I change the permissions? ...
0
votes
0answers
13 views

how to pause iterations in middle?

Currently I am executing file in ubuntu for various iterations. KIndly tell me how to pause the iterations in between and resume the same. Thanks in advance.
0
votes
1answer
62 views

Make command run when MySQL database connection is made

I have successfully set up an AMP server (Apache, MySQL, and PHP) and have installed my Content Management System (Joomla!), which I am using to make a small website. The CMS connects to MySQL ...
0
votes
0answers
14 views

Notification upon task completion in terminal [duplicate]

Is there a feature which gives a notification if the terminal is idle? It would be very useful while compiling and executing large codes and doing something side by side.
0
votes
1answer
1k views

Unable to access .jar file with .desktop

I have a Minecraft.desktop on /home/myuser/Escritorio (Where myuser i put my username and Escritorio means Desktop in spanish) [Desktop Entry] Type=Application Name=Minecraft Launcher ...
1
vote
4answers
112 views

Is there anything that can let me run 64bit binary executable files? [duplicate]

Is there anything in ubuntu 32 bit 14.04LTS something light, that will let me execute 64 bit binary executable files? Architecture: i686 CPU op-mode(s): 32-bit, 64-bit Byte Order: ...
1
vote
1answer
75 views

Redirection with pipe

I have the following command to be executed. ls > myFile.txt | wc The output of the command shown is 0 0 0 Why isn't the above command giving the line/word/character count of ls output? Am ...
-1
votes
1answer
55 views

What is the complete command to be type in the command prompt to add the execute permission? [duplicate]

Help! I just need to know the complete command. To add the execute permission. Please.
0
votes
1answer
119 views

So many user apps, but only a few on launcher, why not a launcher page or a command to install on launcher? [duplicate]

I am new to Ubuntu, have v. 14.04. I look on installed apps page and see user apps installed but find no way to access them, and no way to place an app link in the launcher, why is this? People would ...