I have plenty of files in a folder with extension of .dep, I want to hide these files. But I don't want to change their names such as adding a dot ahead of them.  What would be the best way to do this?  Thanks!
40075
I have set of temp files created in my folder with .bak extensions. How can I make them hide by default in Ubuntu?  I tried adding a .hidden file with *.bak as entry in the file, but that is not working. Any help is very appreciated...
31301
I have some files and each files have distinct name but all of them have the same "-statement" at the end like this:  flower-statement.mp3 leave-statement.mp3  ball-statement.mp3 goal-statement.mp3   So I want to remove this: -statement  Is that possible?
68694
Before I run this, I want to make sure it is correct. I want to delete any .deb files. find /home/andy/.local/share/Trash/expunged/ -type f -exec rm *.deb  This works on all files except .deb files. #!/bin/bash find /home/andy/.local/share/Trash/expunged/ -type f -exec rm {} \; find /home/andy/.local/share/Trash/files/ -type f -exec rm {} \; find /home/andy/.local/share/Trash/info/ -type f -exec rm {} \;  And it works completely with UM 20.04.
1807
I've got bunch of files with ill-formed numbering:  prefix-#.ext       | for files with number 1-9 prefix-##.ext      | for files with number 10-99 prefix-###.ext     | for files with number 100-999   Due to further processing I need all of their names to be in format: prefix-###.ext. Is there any easy way to do that?
31242
How to match the hidden files inside the given directories   for example   If I give the below command it's not giving the result of the hidden files,     du -b maybehere*/*   how to achieve this simple using a single command instead of using   du -b maybehere*/.* maybehere*/*   as I need to type maybehere twice.
83439
I have a directory full of files with names in this format (with numbers as the start of each filename):  102_file.txt 104_list.txt 242_another_file.txt   I would like to rename them as follows (i.e. removing the numbers):  file.txt list.txt another_file.txt   Can anyone suggest a way to do this (presumably from the terminal)?
5891
I would like to change a file extension from *.txt to *.text. I tried using the basename command, but I'm having trouble on changing more than one file.  Here's my code:  files=`ls -1 *.txt`  for x in $files do     mv $x "`basename $files .txt`.text" done   I'm getting this error:  basename: too many arguments Try basename --help' for more information
51192
Is there a way to remove the full file path from the title in Notepad++?  Let's say I only wanted the file name to be displayed there. How can this be done?
57357
How do I safely delete all files with a specific extension (e.g. .bak) from current directory and all subfolders using one command-line? Simply, I'm afraid to use rm since I used it wrong once and now I need advice.
112078
I am trying to determine a perl method to add an extension to a list of files. I can already rename a list of files with a certain extension to some other extension, but I need to be able to do this for any file name, whether or not it already has an extension.  For example, I have a list of files such as:  file1 file2 file3 ps.dir   And I want to rename them ALL to filename.extension:  file1.bad file2.bad file3.bad ps.dir.bad
91095
Suppose that I have a folder containing .txt, .pdf, and other files.  I would like to list the "other" files (i.e., files not having the extensions .txt or .pdf). Do you have any advice on how to do this?  I know how to list files not having a given extension.  For example, if I want to list all files except the .txt files, then either   find -not -iname "*.txt"   or   ls | grep -v '\.txt$' | column   seem to work.  But, how can I list everything except .txt files or .pdf files?  It seems that I need to use some sort of logical "or" in find or grep.
89541
I would like to rename all files in a folder so to have consecutive numbers. For instance:  1.png 2.png 3.png etc   I know there is the rename command and I know there are DOZENS of similar questions in here but I can't find the way.  NOTE: Suggested duplicate doesn't contain a solution specific for my case. Please stop flagging this as duplicate, because suggested duplicate does not answer my question
79503
I have a set of files on which I would like to apply the same command and the output should contain the same name as the processed file but with a different extension.  Currently I am doing rename /my/data/Andrew.doc to /my/data/Andrew.txt I would like to do this for all the .doc files from the /my/data/ folder and to preserve the name.  I tried several versions but I guess I have something wrong in the syntax as I an new to linux.
448
I have some files with different extensions such as *.pdf, *.mp3, *.jpg and a few others. All of them are stored in a parent directory.  How can I get a list of all extensions, create some folders based on these  extensions and then move all files into their relevant folders?
77905
I downloaded  to my webserver and unzipped it.  It contains a folder named -. I assumed I know how to deal with that, but I don't.  I tried cd -- -, but that doesn't have the desired effect. Using quotes doesn't seem to affect it either. I put slashes all over the place, to no avail.  What's the proper way to change into this folder?
74364
I have files ending in ~ in my home directory, and I want to delete them. How do I do that? How do I prevent this backup functionality?
3991
Why in Windows, can't you name a folder 'con'?  Whenever I try to name a folder as "con" (without the quotes) it defaults to its original name.  Why does it do this?