Skip to content
Advertisement

Tag: linux

How to download URLs from the website and save them in a file (wget, curl)?

How to use WGET to separate the marked links from this side? Can this be done with CURL? I want to download URLs from this page and save them in a file. I tried like that. wget -r -p -k https://polsatboxgo.pl/wideo/seriale/pierwsza-milosc/5027238/sezon-44/5027472/pierwsza-milosc-odcinek-2984/585ddf5a3dde69cb58c7f42ba52790a4 Link Gopher separated the addresses. EDITION. How can I download addresses to the file from the terminal? Can it

slcand error : Inappropriate ioctl for device

I want to use can interface with slcand, but I have a problem. To link can device(canable) with slcand, I make symbolic link with udev-rule SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, ATTR{product}==”canable gs_usb”, ATTR{serial}==”002900355934570820373433″, SYMLINK+=”cantest2″ It successfully made symbolic link “/dev/cantest2”. However, when I use command “sudo slcand -o -c -s8 -F /dev/cantest2 can8”, I got a error message enter image description here I

Php Imagick error: undefined symbol FT_Done_MM_Var, how can i fix it?

Complete output: Warning: PHP Startup: Unable to load dynamic library ‘imagick.so’ (tried: /opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/imagick.so (/lib64/libharfbuzz.so.0: undefined symbol: FT_Done_MM_Var), /opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so (/opt/lampp/lib/php/extensions/no-debug-non-zts-20190902/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 My OS: Fedora 36 Installed packages: ImageMagick ImageMagick-devel ImageMagick-perl php php-common php-pear php-devel gcc php-imagick. Imagics.so installed via pecl in xampp Answer Ok, to install imagick

create multiple file with content in linux with user input

I’m new in bash scripting and I’m trying to create a bash script which can create multiple file with content (around 10000 lines [no matters what text]) but with user input. I made a script which create files (see below) but how can I fill each file with 10000 lines? Thank you in advance! Answer Replace your touch command with

Docker mount volume specify path

please I really need help creating a docker volume. By default, when I create a volume, its location will be /var/lib/docker/volumes/ I need to change this default location to my SSD disk, specifically /media/username/T7/docker/volumes Please how do I make sure the docker I run will be stored in my SSD rather than the default location? I will be using this

How to sort files by word count in linux?

I have to sort files in current directory based on word count by using command wc and pipe | necessarily. What command do I have to use? I thought I had to use a command sort | wc -w, but I failed. Answer I think this can help. The ls -1 will list all files of the current directory, and

Formating window values with jq

I would like to take the json output of window values from a program. The output of it currently is: But I need it to be formatted like: 3067,584 764×487. How would I go about doing this using jq or other commands? I’m not very experienced with jq and json formatting in general, so I’m not really sure where to

Using sed regex for string replacement

I am trying to replace a string in the config file. I would like to run something like this: OS (docker image php:8.1-apache-buster) Debian GNU/Linux 10 (buster) sed (GNU sed) 4.7 Packaged by Debian Possible inputs: Example output (any user given value): Example cmd: Joining regex with strings does not work here. It works when I run string replace without

Advertisement