I have a script - run from cron.daily that gathers SMART stats from two identical SATA SSD's.
However, smartctl -A /dev/sda sometimes returns the stats for /dev/sdb - and if does so smartctl -A /dev/...
I am quite new to Unix and would like to convert a script I previously had in R. For this I have three different files (of equal lengths) with different variants of file names. I would like to iterate ...
I have a servicemenuitem for KDE which copies the selected file to the desktop.
It works when one file is selected on the desktop, but when multiple files are selected, they are not copied.
The -exec ...
I need to use while loop with If statements to store only 1s and 0s, then check which one is more popular than other.
I am encountering a problem when I try to execute the script:
bash vote.sh ...
Does escaping bash aliases make any sense in any - not sourced and normally run - shell scripts?
Consider the simplest situation with ls for which many users have re-defined its functioning with an ...
I'm trying to run a shell script via php but I'm getting a permission error, however I'm trying to add permission to my www-data user to use the sudo command without a password, but it's not working, ...
I found this line in one of our repositories without any comments explaining what it does. I am fixing a bug that I found in this repository and don't know what to make of this line. I am unsure of ...
Writing a script to ssh into multiple machines and running multiple commands. However once the ssh is successful I get the following from each host without a single commands executing, the for loop ...
I'm trying to execute a bash script on Linux startup, but it doesn't work. I have tried all of these commands in the crontab:
@reboot bash /home/user/mysqlamazon.sh
@reboot sh /home/user/mysqlamazon....
I am having file with date format YYYYMM. I need to do two operation addition and subtraction.
for Addition in existing input file i need to do add(+14).( For example if i am having date 201610 means ...
With a single argument, ln -s will create a symlink in the current directory:
$ ls /opt/my_tests
$ echo $PWD
$ ln -s /opt/my_tests/hello_world.c
$ ls -...
I am brand new to Linux (Kali) and coding in general. In an assessment I have due I need to write a bash script in Terminal. The requirements for the script are as follows:
Create a directory named ‘...
I have a small script (basically very easy this is the first I wrote) and likes to know the elapsed time, how long it takes when it is finished.
Is it possible to count the difference between the two ...
I'm using bspwm and I would like to write shell script that sets up layout of two external displays and moves all desktops from laptop monitor to them or vice versa, moves all desktops from external ...
I have multiple files(text file) in a folder like below where the 1st file contains some paths as a string and the other with path+file_name.
[root@centos7 test]# pwd
I have two csv files: a.csv and b.csv. Both these files contain same set of rows. For example:
I need to compare these two ...
I'm trying to use find with globs in a Bash shell script. I've tried to both sourcing it and running it, but the command fails every time.
# glob-test.sh - a script to test globs ...