scp with a vertical line in directory [closed] - linux

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 8 years ago.
Improve this question
Suppose I want to scp from cluster to local;
scp id#nodename:"~/Main/56|75/test.pdf" .
Here, the | is screwing up the scp transfer. If I move test.pdf into /Main then it'll function.
How do I call scp in a way that works with a | in the directory?

Escape!
scp id#nodename:"~/Main/56\|75/test.pdf" .

Related

Delete file with # in Linux [closed]

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 want to delete a #tem.txt# called # that for some reason using emacs appeared
is between two # and I have not been able to remove it using rm, rm -f, unlink
See my file
Since '#' is a special character, you can try rm \#tem.txt\#

how to remove accidentally created ~ in my other linux directory while using wq~ in vi [closed]

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
when I exit my vim, I accidentally typed wq~, and it created my home directory in my other linux directory which I am working on, anyway to remove it?
Quote it
rm '~'
You can also rename it to the name you want:
mv '~' correctname

Location of .bashrc in linux [closed]

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 6 years ago.
Improve this question
I made some changes in the .bashrc file some time ago.
In which directory is this file supposed to be located exactly?
In your home directory:
# ls -la ~

Error while trying to copy file to many files using cp [closed]

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 7 years ago.
Improve this question
Error when running this command, i think the command is clear to get the idea.
cp file.txt /folder/*/*/*/file.txt
You need a loop to do that:
for dir in /folder/*/*/*/; do cp file.txt "$dir"; done

How do I copy a file to my server using scp [closed]

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 7 years ago.
Improve this question
I want to copy a file to my server. But, the only port open for ssh is 2232. I am doing the follwing at present, what am I doing wrong.
scp -P 2232 -l file.1 root#xxx.xxx.xxx.xxx:/~
scp [file_directory][file_name] #[server_ip]:[directory where you want to put the file] .For example:
scp example.txt #192.168.3.1:/home/ . Then do as the guide what system gave. I hope this can help you.

Resources