Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I am trying to do the raspberry pi project Pacman Treasure and on the first step it says to use the command wget -O - http://rpf.io/pacmanstart | bash and when I tried, the terminal gave me an error saying that '0' was an invalid option. I double checked my command and tried again. It still didn't work. I used wget --help and used man wget but I didn't see any problem. Has anyone else had this problem? I am using Raspbian Jessie.
It should not be zero 0 = 0 but big o = O O. wget -O - not wget -0 -.
O like Output, -O - means wget should output downloaded files to stdout.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I want to move/copy a file from the Documents directory into /etc/bind I tried:
sudo mv ~/Documents/Config_Files/db.example.lan /path/to/etc/bind/
I also tried:
sudo mv ~/Documents/Config_Files/db.example.lan /path/to/~//etc/bind/
But also got the error: "No such file or directory"
I am probably being dumb but I double checked spelling capitilisation and everything is correct but still won't come up as a directory.
I can't guide you much but, as you can see we use 'sudo mv' and this means we tell root to move it and you type '~' which means home directory...
So if you type:
sudo mv ~/Documents
this means
sudo mv /root/Documents
instead of
sudo mv /home/<xyz>/Documents
Try to give proper path and let me know if it works.!
example:
sudo mv /home/<username>/Documents/Config_Files/db.example.lan /etc/bind/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I would like to download all the audio files on this VoxForge web page. Unfortunately I don't understand how to download them all in a folder of my choice with a single command from the terminal using wget or alternatively curl. I tried wget like this without success:
wget http://www.repository.voxforge1.org/downloads/it/Trunk/Audio/Main/16kHz_16bit/ -P / home / user / download /
doing this way I get only an html index file
curl http://www.repository.voxforge1.org/downloads/it/Trunk/Audio/Main/16kHz_16bit/ | awk -F \" '/tgz/ { print "http://www.repository.voxforge1.org/downloads/it/Trunk/Audio/Main/16kHz_16bit/"$6 }' | xargs wget '{}' \;
Curl the link and parse the output with awk to get the full download address of each tgz file. Pipe this through to xargs and wget to download the links
The following command should work for you.
wget --directory-prefix=download_folder --no-directories --mirror --no-parent http://www.repository.voxforge1.org/downloads/it/Trunk/Audio/Main/16kHz_16bit
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I tried doing something like
mv --backup=numbered KeyStoreAll.jks .old/KeyStoreAll.jks
which works flawlessly on Ubuntu 18.04.
But when I'm trying the same on CentOS 7 it asks me
mv: overwrite ‘.old/KeyStoreAll.jks’?
Why it does not work for CentOS 7?
mv help/syntax looks the same.
Check your aliases definition:
$ touch source
$ touch target
$ mv source target
$ alias mv='mv -i'
$ touch source
$ mv source target
mv: overwrite ‘target’?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
After running a bad command my computer generates folders that start with "--". When I run ls I get something like:
workspace
--workspace
I don't know how to delete these folders through the command line.
rm -r --workspace does not work. I only have access to this machine through CLI so I can't delete them using the gui.
My OS is Linux 18.04
You need to tell rm to stop parsing and use your arguments verbatim. You do this by passing a final -- argument before the file or folder name.
rm -r -- --workspace
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using some tcsh code that uses a command called shuf:
shuf $file_name > out.txt
http://tuxthink.blogspot.ca/2012/06/shuf-to-shuffle-contents-of-file.html
but seems my linux/bash version does not have it. Does anyone knows a way to install it?
My linux/tcsh is:
$ echo $version
tcsh 6.14.00 (Astron) 2005-03-25 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec
$ uname -mrs
Linux 2.6.18-194.8.1.el5 x86_64
Also, I am a user of the server but I do not have super user permission, can only perform local installations in my user folder.
Thanks!
Try your package manager or sudo apt-get install shuf