Delete file with # in Linux [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 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\#

Related

how to rename files and thank you [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
how I can rename several files (Q0138-9061933666_S5.fasta.db) in a folder and leave only the no as ca (Q0138-9061933666_S5.db) i.e. delete .fasta from all files
Assuming you are in the folder where the files are placed.
for i in *.fasta.db
do
mv $i ${i/\.fasta/} # remove "fasta" from file name
done
See Replace one substring for another string in shell script for details about string substitution

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

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

In Linux, how to unlink a softlink from the actual file if both have same names [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 9 years ago.
Improve this question
I have a softlink mistakenly created as this:
/backup_rmbeir1 -> /backup_rmbeir1
I want to delete the soft link now. If I do :
rm /backup_rmbeir1
will this delete the link, or the actual file ? If not what will be the best way to achieve this ? I tried the unlink command but didn't help.
The soft link is /backup/backup_rmbeir1, so delete that by rm /backup/backup_rmbeir1.

Delete folders irrespective of whether they are empty or not [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 9 years ago.
Improve this question
How to delete folders using single line command irrespective of whether the folder is empty or non-empty?.. Any idea?
The rm(1) command has the flag -r for that. You should not use the -f flag with this command, unless you know what you are doing, as placing a wrong * or space can have you deleting a lot more than you intended.

Resources