Questions tagged [Command line] (657)

1
answer

Backup or bash setup script macOS?

Hi. Have 3 Mac's, periodically you have to reinstall your system from scratch. Backups Mac do not. All data in iCloud automatically podtyagivatsya on all Macs. And soft I love to configure and download the new. The question is, is it possible to make a backup of the settings only Mac, no files, etc? Or tell me where to ...
Stanley_Hackett70 asked April 18th 20 at 13:08
1
answer

My first bash script -error-varname command not found?

wrote my first bash script, but there is an error - varname command not found ' line 9 #!/bin/bash echo 'please provide disk name' read varname sudo file-s /dev/$varname if [ "$(sudo file-s /dev/$varname)" = "/dev/$varname: data" ]; then sudo mkfs -t ext4 /dev/$varname sudo mkdir /mnt/$varname sudo mount /dev/$varnam...
nico asked April 18th 20 at 12:26
1
answer

Can I install lunix command terminal to terminal Qute?

Recently installed on my phone app Qute as an alternative to conventional termux. But then I realized that's not quite what I need... There's probably a command to control Android.. If is there command sh, etc, cd. Whether it is possible as realties set simple commands lunix type of curl, wget, apt-get, dpkg for installatio...
jack_Wiza asked April 18th 20 at 12:24
0
answer

What is the optimal utility for archiving append only with the increments in the cluster?

Context: a directory of files photos and videos (media files) which only adds new and when editing old ones. Interested in a complete system for linux management console which is able by itself: Incrementally creates daily backups which only include new files. Is able to create encrypted archives. Can work in cluster mo...
raleigh_Howell60 asked April 16th 20 at 11:20
0
answer

Not available symbols in the WSL are not displayed correctly?

How to fix the font?
Bessie_McDermo asked April 9th 20 at 10:49
4
answers

How to accept arguments when you run the shell script and pass them to the utility?

#!/bin/bash trim =$1 # how to get permission? . what if *.ui? how to send the output of ls in an array and all to handle it? pyuic5 -x $1-o $trim'.py' #and then add .py Interested in how to pass the first argument in the command(main.the ui with the resolution of the ui file ) and cut out .ui : ./build main.ui and pass it ...
Issac_Feest asked April 9th 20 at 10:48
3
answers

Can't run the code via command line. Asks what application to open the file. What to do?

Did the python code without errors(I'm new). Don't know how to run it. Write through ConEmu - cd c:/python test.py And for those asking me what app I want to open the file. Tried by ConEmu and SublimeText as well and using Python itself. Help please who knows what to do?
Jessy_Homenick asked April 9th 20 at 10:27
1
answer

What's not to like awk?

Command line awk '/including/ { sub(/^.*file: */, ""); gsub(/\/, "/"); if (!match($0, / /)) print "libavdevice/alldevices.o:", $0 }' what awk swears alldevices.o:", $0 } ^ syntax error pointing at a dot in front ".o" Someone can explain to me what exactly he doesn't like?
Cassandre.Dickens asked April 9th 20 at 10:27
1
answer

In macOS via terminal (command line) to connect to the proxy file with the configuration?

Is a proxy file, which is on the website: https://antizapret.prostovpn.org/proxy.pac How to connect to it via the terminal?
hans45 asked April 9th 20 at 09:59
2
answers

How to create a request for substitution expressions?

here is my expression grep '<a class="catalog-box__link" href="/"><i' -P-R -I-l * | xargs sed -i 's/<a class="catalog-box__link" href="/"><i/<a class="catalog-box__link" href="##"><i/g' here are the errors sed: -e expression #1, char 44: unknown option to `s' sed: -e expression #1, char 44: unkn...
arvel_Erdm asked April 9th 20 at 09:44