Questions tagged [execute-command]
Questions relating to the execution (running) of a file (usually a compiled binary) or a command.
265
questions
0
votes
1
answer
22
views
wsl -e cannot run a script that I can run when wsl has been executed
I created a file in Ubuntu called bash_test_01.sh containing the command echo "cmd is executed"
in Powershell, if I run
>wsl
$cd /home
$/home/adm_difolco_e/bash_test_01.sh
I get
cmd is ...
0
votes
2
answers
47
views
How to create an auto executeable for running commands ad admin?
I have an old laptop I run Ubuntu on. However the capacity of this pc is small, so I have to clean often. But opening the file with the commands, copying and pasting into the terminal, gets boring ...
1
vote
0
answers
41
views
Anaconda execution on Ubuntu 22.04: Green circle appears and then disappears but can't see application running
I am trying to install anaconda on Ubuntu 22.04. Initially I got 'directory already exists':
Directory Exists
which suggested:
$ ./anaconda.sh -u
bash: ./anaconda.sh: Permission denied
zulfikar@lc2530:...
6
votes
1
answer
260
views
To delete the directories using find command
I am using the Linux command to delete the directories from my server.
find . ! -name . -type d -mtime +30 -print -delete
But the directories are not deleting. Attached the image , please refer.
I am ...
0
votes
1
answer
57
views
When to use LFTP -c versus -e versus nothing
Hi someone tell me what is the difference between using -c and -e in a LFTP script?
e.g. of -c: Lftp default timeout and retry?
e.g. of -e: https://stackoverflow.com/a/32432851/13862759
Can someone ...
0
votes
0
answers
347
views
Wmi Failed to parse wdg method error every time when i turn on
I use a Dell Vostro and I was able to install Ubuntu 20.04/22.04 successfully. I did
sudo apt update
apt upgrade
and restarted the OS, but I am getting this error
wmi failed to parse wdg method.
6
votes
3
answers
711
views
How to open a PDF file with "Master PDF Editor" application from terminal?
I want to open a PDF file from terminal. I only know the command xdg-open file-name.xxx to open a file. But once I use this command, it opens the PDF file with the Document Viewer application (Evince)....
0
votes
0
answers
69
views
Mount NTFS with exec permission
I mounted NTFS, but I cannot execute the Hugo server on it. I got the following error:
hugo server -D
Error: open /home/.../hugo-website: permission denied
My mounting command is this:
UUID=...
4
votes
2
answers
359
views
Is there any way to control ls output format
I have a directory contains some svg images among its contents. I list them with following ls command to save the output in a file:
ls *200px.svg > animList.js
The output file looks like:
file1-...
0
votes
0
answers
21
views
What configuration might have changed as a result of which all extracted binaries are marked non executable by default?
I am using Lubuntu 22.04 OS.
abhishek@abhishek:~/test_OS_proj/linux-6.0.19$ neofetch
.-/+oossssoo+/-. abhishek@abhishek
`:+ssssssssssssssssss+:` -----------...
0
votes
0
answers
34
views
"exec" mount option not working after reboot on secondary drive's partition
I have mounted a partition on a secondary drive to /mnt location with KDE Partition Manager, and added exec mount option (I need to run shell scripts from that location). Everything works fine untill ...
0
votes
0
answers
164
views
How do you figure out what rm -rf deleted
I've accidentally executed rm -rf ~ because I failed to autocomplete a directory and it stayed with my home directory.
I was quick enough to kill the command in time, so no real damage (I think) was ...
0
votes
1
answer
432
views
adding files to ~/.local/bin doesn't add it to the $PATH
I've added fm6000 file to the ~/.local/bin folder assuming it'll be the same as adding it to /usr/bin folder. Though that's not the case. There are many files in ~/.local/bin folder that don't work. I'...
0
votes
1
answer
3k
views
permission denied when executing "exec" on /tmp Ubuntu 22.04
I have the script below, it works fine for Ubuntu 18.04
#!/bin/bash
set -euo pipefail
# This form is convenient for locking a file without spawning a
# subprocess. The shell opens the lock file for ...
0
votes
1
answer
453
views
I get a "symbol lookup error" when running "dig google.com" in the terminal
I want to run the command dig google.com in the terminal, but what I get is this error message:
dig: symbol lookup error: /lib/x86_64-linux-gnu/libisc-9.18.1-1ubuntu1.1-Ubuntu.so: undefined symbol: ...
0
votes
2
answers
81
views
What is the use of ''dd'' command
As a beginner I am learning the basics use of command line. While exploring I get to know about "dd" command . I am not sure about the utility of this command as a beginner. Kindly explain ...
0
votes
0
answers
53
views
How do I run the Ubuntu startup command with commands to run within Ubuntu on the same line?
I can run ./start-ubuntu.sh in my (Android emulator) terminal and then run my commands cd code-server-4.5.2-linux-arm64 && cd bin && export PASSWORD="pass" && ./code-...
0
votes
2
answers
371
views
What is the command or script to add a part of folder name of that folder's filename?
Suppose I have folder structure like below
01. folder1
|- 1. video1
|- 2. video2
|- 3. video3
02. folder2
|- 1. photo1
|- 2. photo2
03. folder3
|- 1. doc1
|- 2. doc2
Now I want to ...
0
votes
0
answers
425
views
Error when using 'make install' command in qbittorrent installation
I am attempting to install qbittorrent software from tar.gz (https://www.qbittorrent.org/download.php) on ubuntu 22.04. I can unpack the zip files, run configure, and make executes just fine, but when ...
0
votes
0
answers
509
views
docker-compose entrypoint commands get stuck
I'm trying to add "curl" to a container permanently so it can do health checks like this:
healthcheck:
test: ["CMD-SHELL", "curl --fail -s -I https://localhost:...
3
votes
1
answer
188
views
What is the name of the "run command" program?
What is the name of the program that is invoked when Alt+F2 is pressed, in Gnome?
The grey dialog box presented here, where you can type in the command/program you want to run:
from this article on ...
0
votes
1
answer
222
views
FSL error: fsl_vbm_1 -b problem imglob not found
I am trying to run the command fslvbm_1_bet -b but get the following errors:
/usr/local/fsl/bin/fslvbm_1_bet: 1: /usr/local/fsl/bin/imglob: not found
/usr/local/fsl/bin/fslvbm_1_bet: 1: /usr/local/fsl/...
0
votes
0
answers
904
views
Script to show free memory (Ram) column on `free` command in linux?
I want to write a script that shows available memory in my system every second with the updated value.
I have some clues like I can use the free command with the -m option to show in megabytes.
I have ...
0
votes
1
answer
212
views
sudo command make child process to zombies
I'm trying to make a program that divides into child and parent processes with fork(). Child executes arguments with execv() and parent traces him with ptrace(). I made almost all parts of the program,...
0
votes
1
answer
28
views
give a program owner file access as well as user file access
I have an executable (created from python code) which I need it to access a file created by me as well as a file created by the person who runs the executable.
I am not allowed to change the ...
0
votes
1
answer
2k
views
How to configure .desktop file to run .jar file exactly as if run from terminal
I have a java program that works correctly when I run java -jar "lizzie.jar" from the terminal, but when I double click it in Nautilus it runs (i.e. UI shows) but returns the error "No ...
0
votes
0
answers
152
views
bash: ./prob: cannot execute binary file: Exec format error
I tried to run the binary given below but found the following error. May you kindly shed light on it?
ankur@ankur-G3-3500:~/Desktop/JUNO_Analytical_for_CC$ ./prob
bash: ./prob: cannot execute binary ...
1
vote
2
answers
8k
views
"Composer update failed: "/usr/local/bin/composer" could not be written." after installing Composer using the terminal
I'm on ubuntu 20.04 LTS and I have installed Composer directly using the terminal, but I'm getting this error:
[Composer\Downloader\FilesystemException]
...
0
votes
0
answers
171
views
How can I execute a command before login?
Ubuntu 20.04 LTS
I want to execute the command xdotool mousemove 960 540 to center my mouse pointer before login. I can do it just by adding the command to Startup Applications, but then it only runs ...
1
vote
0
answers
315
views
Fail to execute command on startup
I want to run a simple command after my ubuntu starts up and network services are established (it should do so no matter wheater I'm logged in or not)
If I run the command manually, it start's up the ...
1
vote
0
answers
98
views
Keyboard shortcut to convert simplified to traditional Chinese
I am trying to create a keyboard shortcut that runs a python script to convert selected simplified Chinese characters into traditional Chinese in the clipboard.
Here are the essential code:
s2t.py
...
10
votes
3
answers
729
views
Run command inside application
On Ubuntu 16.04, I had a keyboard shortcut (Alt+F1) that would open a menu to run a command of a specific application.
For instance, if I were using LibreOffice Calc's, I could do Alt+F1, type "...
0
votes
1
answer
80
views
Command date execution
I'm trying to execute this command date +'%-4.4h %2.1d %H:%M' however the output is not correct:
%-4.4h %2.1d 12:50
I believe that there is something wrong either with my ubuntu terminal or the ...
0
votes
0
answers
407
views
Command is not responding
I am trying to add ssh key to Gerrit account.
$ssh -p PortNumber [email protected]
After hitting enter, it becomes just standstill. Not seeing any progress, and even the command is not coming out after ...
1
vote
1
answer
2k
views
How to run an executable from any directory in terminal by setting path?
The executable file name is julia. This executable is located at /home/siva/juliapro/julia/bin.
I have set the path to this directory, but still, if I enter julia in the terminal, it says command ...
1
vote
1
answer
951
views
Execution gets stopped in ssh remote server
I am trying to run Quantum ESPRESSO on a remote server through SSH in the Linux terminal from my machine.
For this, I am running a binary executable program with a text input file as:
$ mpirun -np 20 ...
0
votes
1
answer
108
views
How do I find the location of a file?
I’m new to Ubuntu, and I don’t know how to find the location of a file to follow a tutorial for creating a luncher for Windows programs run through Wine.
This is the example I’m trying to follow
0
votes
1
answer
608
views
can't find executable file WSL2
i'm using WSL2 with Ubuntu 20.04. I installed a program libFM and followed the installation process (which is fairly simple). When I try to reach executable using ./libFM it fails, returning the ...
0
votes
0
answers
327
views
no execution (rights) at home / can not make /home executable (exec) when using encrypted (LUKS) / mounted home
The issue:
I do not have / lost executable rights in my /home.
Which is quite devastating for TOR onion use.
This pops up on increasing number of machines with Ubuntu 20.xxSome new set up and some ...
0
votes
1
answer
1k
views
How to correctly install LibreOffice using FlatPak to have libreoffice command in $PATH environment variable?
I have just removed deb-packages of LibreOffice from my Ubuntu 16.04 LTS system with
sudo apt purge --auto-remove $(dpkg -l | grep "^ii libreoffice" | awk '{print $2}')
To replace it with ...
0
votes
0
answers
114
views
Bash script launching bash script with ends in exec
In one script (A) I set some env variables, check for presence of other required binaries and at that end exec <mybinary>.
Now, new script appeared (B) which in similar way starts other binary. ...
0
votes
1
answer
85
views
How can I run an executable file named "c2p.i696"
I am trying to run a file name c2p.i686. This is an executable file, but I don't know how to execute this file.
0
votes
0
answers
3k
views
Using exec bash in bash script
I am trying to set up my environment using a bash script. One of the things that I need to do in the bash script is to restart bash, which I use exec bash for. Is there a way to have the script ...
0
votes
1
answer
250
views
Execute command in directories that DON'T contain a certain file extension
I'm looking for a way, to find all (sub-)folders that DO NOT contain a certain file type (*.log) and then execute a command within that folder. All my simulation folders contain three different files: ...
1
vote
1
answer
4k
views
Error when using 'make install' command
I am attempting to install the WRF weather software (http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP7) that requires the installation of certain libraries. I can unpack the ...
0
votes
0
answers
761
views
How do I execute a file as root using admin://
I have this executable: /opt/lampp/manager-linux-x64.run which needs to run as root.
If I execute this with sudo /opt/lampp/manager-linux-x64.run then it works fine.
I would like to add an entry to ...
0
votes
1
answer
596
views
Command output is not redirected to file
I want to execute the following command, which is related to Rational ClearCase. The output of this command should be redirected to the file
testout.
Command
rgy_check -vobs > testout
Output
...
-1
votes
1
answer
591
views
Disable root to execute normal user's file
vim mycheck.py
print('writing in normal user')
chmod 000 mycheck.py
ls -al mycheck.py
---------- 1 normal normal 27 Aug 23 11:01 mycheck.py
The file belong to the user normal and set mode as 000,...
0
votes
1
answer
931
views
Cannot execute screenfetch
I have downloaded screenfetch in one directory I make.
mkdir ~/screenfetch
wget -O screenfetch 'https://raw.github.com/KittyKatt/screenFetch/master/screenfetch-dev'
chmod +x screenfetch
./screenfetch
...
2
votes
3
answers
998
views
Why does ./a.out work, but a.out doesn't? [duplicate]
In my opinion, even a simple a.out on the terminal holds complete information about the file being in the current directory. Reiterating it with ./a.out seems superfluous.
Why do we need to specify ...