All Questions
374
questions
0
votes
1
answer
56
views
Desktop shortcut with a command line argument which contains filename with random numbers
I'm trying to create a desktop shortcut which launches a terminal app with commandline arguments which contains a path to a file with a randomly generated number in the filename.
I've tried everything ...
1
vote
1
answer
45
views
SSH from A through B to C, using private key on B
Schematic:
ssh ssh
A ------> B ------> C
^ ^
using A's using B's
ssh key ssh key
Preconditions:
A is running ssh-agent
A can access B
B can access C
A can't ...
0
votes
1
answer
24
views
changing the directory a tarball decompresses to
When I do wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz and then tar xvzf install-tl-unx.tar.gz the files get extracted (right now) to install-tl-20240521. On the CLI it's ...
0
votes
0
answers
26
views
How can I execute a command whenever I change the PowerDevil power profile?
I have a laptop with a variable refresh rate (up to 120Hz) monitor. I want to change the refresh rate to 60 whenever I switch the power profile to "Power Save" in Powerdevil, and change it ...
0
votes
1
answer
144
views
Linux Bash Wait Command Not Working
I am trying to use and bash file .sh to start other bash files in seperate terminals.
I want them to run one after the other as I use them to copy large numbers of files to the same Hard Drive. ...
1
vote
0
answers
94
views
ls in Docker on Windows not showing one directory
I'm running Windows Server 2016 Datacenter version 1607 (build 14393.6614) with Docker Desktop Community Version 2.0.0.3 (31259).
I'm running an Ubuntu docker container in an interactive mode with my ...
0
votes
1
answer
89
views
anacron doesnt work as expected
Trying to schedule a job to run every day with cron or anacron. Search the forum for resolution but still without any success.
Changing shell=/bin/bash or bin/sh didnt do anything.
My system lubuntu
...
0
votes
1
answer
255
views
google-chrome, when ran in the background through bash, still outputs errors, despite 2>&1 > /dev/null
When I run google-chrome 2>&1 > /dev/null & and then go back to the prompt and then visit a website with, say, an invalid cert, I still get errors output to my console's screen. eg.
...
0
votes
0
answers
22
views
How to output disk size in GB only with no rounding error? [duplicate]
Output disk size in GB only. Giga Bytes only.
Not MB. Not Mega Bytes.
Not TB. Not Tera Bytes.
Tested thus far:
sudo blockdev --getsize64 /dev/sda
1000204886016
sudo blockdev --getsize64 /dev/sda |...
0
votes
1
answer
133
views
How to output disk size in GB only with no rounding error?
Output disk size in GB only. Giga Bytes only.
Not MB. Not Mega Bytes.
Not TB. Not Tera Bytes.
Tested thus far:
sudo blockdev --getsize64 /dev/sda
1000204886016
sudo blockdev --getsize64 /dev/sda |...
0
votes
1
answer
67
views
sudo for just one command IN lost+found folder, not more
I have this script
# check lost+found folders
function chklnf {
#DOC echo "chklnf - list any files in lost+found folders on mounted devices"
x="lost+found/"
if [ "$EUID" != 0 ] ;then
...
1
vote
2
answers
1k
views
Running shell Script via Crontab
So I've tried to run a shell script via crontab.
My Crontabs look like this:
00 20 * * * $HOME/Bilder/Hintergründe/.background_skript/background_night.sh
and my background_day.sh looks like this:
`#!/...
0
votes
1
answer
2k
views
How to modify Linux ISO (like Ubuntu) and add my custom bash to it
I googled and I see something like Cubic but I don't think it fits my problem.
What I want to do is (suppose the talking .iso file is an Ubuntu):
During the installation, it does this:
> echo I'm ...
0
votes
1
answer
80
views
How to move files containing NULL to a separate folder?
I have over 10000 files in a folder. I was using an Rscript to preprocess the files. It displayed an error:
Error in read.table(wd, comment.char ="#", header=T, sep='\t'):
empty beginning ...
1
vote
2
answers
2k
views
Bind command not found in Linux Mint/Ubuntu terminal
I need to use this "bind" command described in articles like:
https://www.computerhope.com/unix/bash/bind.htm
https://www.gnu.org/software/bash/manual/html_node/Bash-Builtins.html#Bash-...