Questions tagged [filename]
The filename tag has no usage guidance.
179
questions
0
votes
0
answers
23
views
Ubuntu 22.04 efibootmgr from terminal 'eats' slashes
I'm running ubuntu 22.04.3 + maintenance on a DELL XPS 9320 (unix variant), efibootmgr version 17, GNU bash version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Here's the output from my last attempt to ...
0
votes
0
answers
54
views
Fixing the wrong encoding of filenames
I have a Linode server running Ubuntu 22.04. When I log in through SSH and download files with "Sinhala" language in their names, they show up correctly in the terminal, and I can compress ...
0
votes
1
answer
87
views
`-bash: No such file or directory` When there is very mutch is file there
I am trying to install sdr++, but I dont think that matters. after installing the nightly apt package on my rpi 4, I attempted to run the main bianary sdrpp but got a file not found error:
pi@sdr:~ $ /...
-2
votes
1
answer
67
views
On ubuntu while using JavaScript, what command should I enter to delete my files having a common name in them? You can also use wildcards to help me
For example, I have four files with the names as "one-beta.txt" , "one-alpha.txt" , "two-beta.txt" , "three-gamma.txt". Now I am supposed to delete my files ...
0
votes
0
answers
96
views
ubuntu 20.04 share folder with non-ascii filenames
I just installed Ubuntu 20.04 on my new machine. I'm trying to share my external drive with non-ascii file names. I get:
'net usershare' returned error 255: [2023/04/30 09:30:13, 0] ../../lib/util/...
1
vote
0
answers
56
views
Be directly in file name when saving an image
Version: Ubuntu 22.04.1 LTS
Hey there! Whenever I download an image using the Firefox Web Browser, I get presented with the following screen:
When I donwload something, I usually want to change the ...
0
votes
1
answer
65
views
Does grep and friends have a way to match strings as if shell file name globbing in stead of regex
Effectively I'm trying to search a text file containing "file names" and want to match as if shell file globbing were in effect.
Shell file globbing is much simpler than regular expressions, ...
1
vote
1
answer
264
views
What does blue highlighted text mean?
This is what I see when I run ls in /var/mail:
I am asking about those vbk files in particular.
Google is telling me that it's an executable, but it can't be. They should be log files. All the other ...
1
vote
0
answers
215
views
Google Drive filename issues in Ubuntu 22.04
This may not be an issue particular to Ubuntu 22.04 but rather simply the way Google Drive works, but I would like to find a workaround somehow. I am new to Ubuntu, so apologies if I cannot give more ...
0
votes
1
answer
1k
views
Gimp: Exporting each layer as separate image BUT keep original file name
Variations of this question have been asked, so hopefully I can get some help.
I open as Layers several dozen images at a time. I am doing this so I can crop them all at once to a certain size.
Now I ...
1
vote
1
answer
49
views
Passing filenames with spaces into linux functions using variables in bash script
I am using the following bash script to retrieve execution status of the 'cmp' command:
a="./textX"
b="./textX"
comm="cmp ${a} ${b}"
""${comm}""
...
0
votes
0
answers
66
views
Filenames garbled and truncated when accessed through cifs mount
I have multiple machines all running Ubuntu 20.04, accessing a shared drive in the form of a Synology NAS. There appears to be a bug in the way character encoding is treated by one of the machines.
...
-3
votes
1
answer
194
views
Filename aux not allowed in NTFS filesystem?
In Ubuntu version 20.04.4 LTS i cant put characters like ? or " in my filenames and write them to my external hardrive because the NTFS filesystem doesn't allow them to be in the filename.
In ...
1
vote
0
answers
34
views
Why was this file (corrupted name) created?
I was taking a break from a project, doing something else. In the mean time this file was created in the project directory: ''$'\376''}Y'$'\016''+_'$'\356\245''1'$'\313''Y'$'\312''+'$'\270''>^'$'\...
0
votes
0
answers
244
views
How are spaces in path and/or filename handled?
I have hundreds of files that I import often, so the directories contain some spaces in addition to filenames with spaces. Each file has a 4 digit prefix (seq #) that I need to strip off. I am writing ...
1
vote
3
answers
248
views
How to delete a bunch of files in a folder knowing a part of their filename?
I have a folder of Markdown files. The files use the following filename convention: [Time-based ID] [Title]. With this convention, you have filenames such as 202204101548 Banana bread or 202204101549 ...
2
votes
0
answers
38
views
Selected filename of downloading file is not directly editable
Every time I download a file in Ubuntu 21.10 with Chrome 100, the nautilus windows opens with the filename selected (highlighted in orange), but the filename is not directly editable. I have to click ...
1
vote
2
answers
399
views
Ubuntu CLI, replace a long filepath/filename with a shortcut
I have a long path to some of my files and I don't want to type and/or use the Tab-key as much when using it with commands in the Terminal.
So I want to add "shortcuts" to some of them (both ...
1
vote
0
answers
532
views
When I mount my USB drive, all Chinese characters of names of files/directories are displayed as question marks
When I create or rename a file with Chinese characters(like 我的源程序.c) on Windows, and reboot it to Ubuntu 20.04.2 LTS, and mount it with sudo mount /dev/sdb4 /mnt, and use ls /mnt command, it shows ????...
1
vote
3
answers
237
views
How do I perform a loop on files that have the same string before the first underscore?
I am trying to perform a loop on Ubuntu in which I concatenate two files into one single file. The directory has thousands of files, which all come in pairs that have the same string of characters ...
2
votes
0
answers
52
views
Attempting to clone a musical instrument HDD but all file names are shortened to 8 characters when viewed in Ubuntu Studio 20.04
Edit: Thank you all for the suggestions! It has given me a lot to chew on. I guess I'll start with refining my original question: I am at present trying to browse directories on a hard drive via ...
1
vote
1
answer
624
views
Show input filename within output filename — after ghostscript command
I use this script (from here) in order to reduce the size of a pdf file:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \ -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input....
7
votes
1
answer
2k
views
Why are my file names hashed when I access them from my Google Drive Files on text editors?
When I try accessing my Google Drive folder on VS Code, the file names seem to be hashed and do not appear by their name. This is very annoying. I have tried different editors as well.
I have tried ...
0
votes
1
answer
28
views
Discs burned in Windows have different language filenames in Ubuntu
I've browsed these backups before and not had an issue with them [other than the rate a disc spins up, if at all], but now they're all given Chinese character filenames - it's probably a simple thing, ...
1
vote
1
answer
277
views
Letters all scrambeld - only 4
I have latest ubuntu release (20.04) with gnome fallback session. After reboot I got all letters scrambled. On desktop, in terminal, in explorer all files have only first four letters. I don't know ...
0
votes
1
answer
330
views
Dealing with spaces in filenames
I have written the following bash function to easily open files from the command line with their default application:
## Open files with their default application
function open {
# If no arguments ...
2
votes
1
answer
170
views
How to grep series title from list of paths?
I have the following command:
find /home/cas/plex-media/series/ -type f -name '*.srt' | grep -v .en.srt
Which will find all .srt files, that are not .en.srt in the directory and subdirectories of ...
0
votes
0
answers
60
views
How to have files appear in alphanumeric order? E.g. 09, 0A, 0B, 10, not 0A, 0B, 09, 10
When I use both numbers and letters in filenames, they do not appear in the correct order.
Correct example:
00.jpg
01.jpg
02.jpg
03.jpg
04.jpg
05.jpg
06.jpg
07.jpg
08.jpg
09.jpg
0A.jpg
0B.jpg
10.jpg
...
0
votes
3
answers
2k
views
How to copy a file with a filename containg a ":"?
I have an external usb-drive where some of the filenames contain a ":", e.g.. Screenshot-08-09-12 -08:10:45.png (Old screenshots). I can copy these files towards the hard-disc of my computer,...
0
votes
3
answers
234
views
How to rename archives in Ubuntu's terminal? [duplicate]
I have the following files:
/home/wiki/15000_20000/xx00
/home/wiki/15000_20000/xx01
/home/wiki/15000_20000/xx02
...
/home/wiki/15000_20000/xx4686
How do I rename xx00, xx01, ..., xx4686 to 152000, ...
0
votes
1
answer
36
views
How do I rename *.faa filenames for an expression located inside each file in [brackets]?
I would like to rename the filenames *.faa (a typical name is protein-176.faa) for a name that is located inside each .faa file in brackets [Escherichia coli DSM123].
For example the file protein-44....
0
votes
1
answer
544
views
Bash Script to rename or remove punctuation (? !) & string in filenames of files, subdirectories and directories recursively in Ubuntu 16.04
I am new to using Bash scripting, but I have discovered a few solutions that use it to either remove or rename the filename for files within directories and sub-directories in Ubuntu 16.04. For ...
2
votes
1
answer
62
views
Why do Filenames created under UTF-8 not match the UTF-Codepage layout?
According to Wikipedia's utf-8 Codepage Layout, its character-set is as follows:
! " # $ % & ' ( ) * + , - . / 0-9 : ; < = > ? @ A-Z [ \ ] ^ _ ` a-z { | } ~
But (excepting /), ...
1
vote
1
answer
1k
views
File name error in Ubuntu 20.04.1 [closed]
I just installed Ubuntu 20.04.1 by getting rid of Ubuntu 18.04.2. I had backed up my data on an HDD before installation because I intended to wipe it all out.
There were no issues while transferring ...
3
votes
2
answers
536
views
Store sha256 hashes into relatives files
I would like to generate sha256 hash for each log file in a folder and store that hash in a file named by the original file name suffixed with ".sha265" int he same folder.
For example, I ...
3
votes
1
answer
172
views
Zip certain files having filenames alphanumerically bigger than others
I gzipped files in a slurm job. But job canceled before it is done. It takes so long(~10min for a file, and there is 200 files). How can I zip only the remaining files which are not zipped yet?
$ ls
...
1
vote
0
answers
246
views
locales (UTF-8) are not set as expected
Ubuntu 16.04.6 LTS is installed on my virtual machine. When I use PuTTY to login, I get the following output:
karsten@v38xxx:~$ who am i
karsten pts/0 Jun 26 10:14 (87.175.23.xx)
karsten@...
-1
votes
3
answers
570
views
Is there a way to remove a character from multiple file names
I have a client that gave me an ancient PowerMac G4 with a non-booting OS and dying hard drive to retrieve files from. I've been working on that all day and have his files successfully retrieved, but ...
3
votes
4
answers
4k
views
Combine two commands into a single command
I'm looking for a way to combine these two so I can do it in one step from the command line. (I think %1 would be in the command.)
convert Tess.jpg tess.tif
tesseract tess.tif tess
For example:
...
0
votes
0
answers
163
views
Checking for illegal/duplicate windows file names in NTFS
Is there a command line tool for checking if a file name is illegal on windows? Similarly, is there a command line tool for checking if file names will clash when case insensitive? I know how to check ...
0
votes
0
answers
2k
views
mv: missing destination file operand when special characters are involved [duplicate]
This one's silly. I saved my vim session with :Obsess -S Session.vim instead of :Obsess Session.vim, so now I have a -S/ Session.vim file in my project and can't open it with vim as the following is ...
1
vote
1
answer
82
views
How to move files from directory /foo (1) to directory /foo
I know this is basic, but I'm failry new to bash.
Due to some duplication I have many photos in many folders and I'd like to clean them up. Here is an example of my file structure
- 12-30-14
- ...
1
vote
1
answer
925
views
Lubuntu is not able to read file names with cyrillic characters
I would be grateful for helping in resolving the following issue. Cyrillic characters in file names are rendered with octal escape sequence codes in Konsole. For example, the file name
Тест.txt
is ...
1
vote
1
answer
304
views
Make KDE ignore file extension and run an .exe as a Linux executable
I'm sure you're wondering why the hell I'd want to do that. I'd like to run a Steam game (Doom 3 to be specific), and I can force it to download since Steam now uses Proton to be compatible, but I ...
13
votes
6
answers
7k
views
Rename multiple files at the same time
I have around 180 files with the same structure: 000-aaaaaaaa.txt.
Regular expression for a file name: /^[0-9]{3}\-[a-zA-Z]+$/gi (3 digits + - + letters + .txt).
I would like to cut of the numeral ...
2
votes
1
answer
1k
views
Find and replace folder and file names with Windows incompatible characters
My Ubuntu (18.04) drive is synchronised with a Windows drive. Some of my folder and file names in Ubuntu contains characters not allowed in Windows and this causes issues during sync. I want to find ...
0
votes
0
answers
48
views
Handling filenames in ubuntu not working!
I am trying to manage a Windows file named “- – file.txt” from the Linux command prompt but using “./- – file.txt” or “– – – file.txt” does not work
any suggestions?
I tried googling but no good.
1
vote
2
answers
4k
views
How to remove end of file names?
I want to rename a lot of files like 1_16_video1.mp4?1578683110081 & 54_127_video7.mp4?168302 to 1_16_video1.mp4 & 54_127_video7.mp4.
How can I rename them?
2
votes
2
answers
491
views
Create a function to extract filenames from multiple filenames using delimiter in bash
e.g.,report jpg will display about all the files that are called something.jpg.
Here's a code I'm working on including my questions.
function report {
x=`ls *.$1`
num=`ls *.$1 | wc -l`...
0
votes
3
answers
1k
views
Customary format for multi-word filenames? [closed]
Is there a preferred/customary way of formatting a filename that contains multiple words? Or is it a matter of personal choice? I'm trying to make more use of command line, if that makes a difference. ...