Questions tagged [filename]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
24 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 - ...
0
votes
2answers
31 views

Are file names allowed to use dots other then before the file extension?

I am checking file name validity on Ubuntu computers. I want to check whether the file extension is correct. Is separating the value after the first dot in order to get the file extension will do? if ...
0
votes
1answer
41 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
0answers
37 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 ...
8
votes
6answers
954 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 ...
0
votes
0answers
30 views

Change padding between icons and line spacing in filename

Trying Ubuntu 19.10 on an old PC. I want to change the padding between the icons and the vertical spacing between the lines so it looks more like Windows. Can't seem to find a solution on Google, ...
1
vote
1answer
199 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
0answers
25 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.
0
votes
0answers
243 views

Cannot update or upgrade: “files list file for package 'libbrlapi0.5' contains empty filename”

I cannot update, download, or uninstall anything. Any attempt to do so (In the software center or via terminal) results in the following unrecoverable fatal error: "files list file for package '...
0
votes
2answers
133 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
2answers
123 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
3answers
140 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. ...
0
votes
0answers
46 views

Uget error in files name

When I download a video from youtube the file name is Unknown.mp4, if a I have 2 or 3 simultaneos downloads and I pause then, when I try to restart them the latest downloads shoes the completed icon ...
1
vote
1answer
111 views

Sorting files to be used in for-loop in bash file

I try to remove duplicates from a directory with 20k files. I figured that duplicate files, although having different filenames, have the same filesize. So I want to sort them first on filesize and ...
3
votes
1answer
654 views

How do you get to show the full name of application in 'Show Applications' and 'Files?

In the image below, only "input method" has the full name; other applications' names are shortened with an ellipsis (…). Why is this? Can it be fixed?
0
votes
1answer
36 views

Move JPGs from a dir in home to a usb?

I'm using my raspberry pi to take pics of my 3d printer for time lapse. My only issue is that nothing I'm trying allows me to move them to the USB. My most recent line I've tried: ~/Desktop/gphoto/...
1
vote
0answers
80 views

How to add newline for the file/directory name in Nautilus?

I am trying to do this A and B are in different lines I know how to do it in terminal. mkdir 'A'$'\n''B' How to do it in Nautilus?
1
vote
0answers
68 views

How to copy a file with systemd mount unit escape in name on cifs mount?

I'm writing a backup with rsync and a file with the systemd mount unit escape \x2d for - on a cifs (protocol version 3) (/mnt/diskstation/backup in this example) causes the following trouble: > ...
1
vote
1answer
315 views

Why do files created by Mousepad or Leafpad not have extensions by default?

Normally, every text document has an extension. With LibreOffice Writer, the extension could be .odt or .doc, etc depending on your preference but mousepad and leafpad don't provide extensions ...
2
votes
3answers
2k views

How to change names of files in a directory to random generated names?

I have many files with different names of different lengths. Extension of these files are jpeg. How to change names of the files to random generated names?
1
vote
0answers
47 views

Change number of characters per line in a folder's name

I have noticed that the number of characters allowed per line in a folder's name is lower in Ubuntu 18.04 than it was in Ubuntu 16.04. This causes some long words to be forcefully split between two ...
0
votes
0answers
102 views

'gpg' error during installation of skypeforlinux [duplicate]

enter image description here W:Ignoring file 'some-ppa.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension, E:Type 'gpg' is not known on line 1 in source list ...
1
vote
2answers
389 views

Cannot open files with spaces in names by double clicking, but can from terminal

I am running Xubuntu 18.04 in a desktop computer, installed last week. I am having problems to open files if the path has a blank space and I believe this is producing other problems too (for example ...
0
votes
0answers
367 views

mget `*.*` doesn't work

I want to download all files in a folder with ftp. But mget *.* isn't accepted. Here is the terminal output: ftp> ls 200 PORT command successful 150 Directory listing for /DCIM/Camera/ -rw-rw-rw- ...
8
votes
1answer
3k views

Changing first letter of a filename to uppercase

How can one change the first letter of a filename to uppercase using a command line? IS there any command line to do so?
1
vote
2answers
100 views

How do I delete file named -?]d?j??.? from system? [duplicate]

I cannot remove such file, I get error message. file name is -?]d?j??.? and I want to remove it. I try rm -?]d?j??.? but it gives error.
1
vote
3answers
642 views

Truncating file names

I am trying to truncate file names down to the last 4 digits (example: 941_S_5193 to become 5193). What would be the most straightforward way to loop this command to apply to roughly 600 files? Thank ...
0
votes
1answer
535 views

youtube-dl preserve slashes in video title

If a video is titled "5/12", then using %(title)s produces "5_12". Is there any way to preserve special characters in the filename? I would be okay with something like "5%2F12". Alternatively if ...
2
votes
1answer
97 views

Remove date in desktop icons' name

How to remove date (most probably the last modified date) from the desktop icons' name? I tried renaming it but the date still does not go. I have dragged the folder from nautilus to desktop. I am ...
18
votes
2answers
5k views

Why not make .txt file executable instead of .sh file to run scripts?

I was wondering what's the need to put executable commands inside a .sh file to make a single script, since I can do the same by putting the commands inside a .txt file and making it executable using ...
3
votes
1answer
6k views

rename not working [closed]

I have a bunch of files with names like ... (Karton 1).jpeg and would like to rename them recursively to: ... (brauner Karton).jpeg I tried the following commands, which didn't work: rename -v 's/...
0
votes
2answers
247 views

Inserting file name in first line of merged txt files

I want to combine multiple txt-files using the paste-command and I want the names of each txt file as a part of the newfile. The Txt-files (ie. 01.txt) look like this: X936 X937 X938 ...
7
votes
1answer
731 views

'echo [A-Z]*' matches lower-case filenames as well?

I am working on the root directory and want to print directory entries starting with an upper-case letter. $ echo [A-Z]* Applications Library Network System Users Volumes bin cores dev etc home ...
1
vote
3answers
228 views

Swapping file and directory names

I have a collection of files at ./date-and-time/fixed/path/filename where date-and-time and filename are variable. I would like to move all these files to ./filename/date-and-time. The former path is ...
18
votes
2answers
4k views

Cannot delete/move files with special characters in file name

As you can see below the files have uncommon characters. Deleting them either in the terminal or Dolphin returns the error: No such file or directory Running ls -la on the directory gave me this ...
2
votes
2answers
325 views

Home directory or disk encryption without filename encryption

Is there any way to use ecryptfs to encrypt the whole disk or only the home directory without simultaneously encrypting the filenames? I'm asking this question because I have to get rid of the ...
3
votes
1answer
3k views

How do I fix invalid filename extension?

Ignoring file 'sublime-text.lis' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
1
vote
1answer
5k views

How do I write a function in Python with a filename as an argument? [closed]

**EDIT: Sorry if I was unclear. Let me clarify: I'm trying to write a function that takes a filename and a number i as arguments, loads the file specified by the filename with numpy.loadtxt(), and ...
-1
votes
1answer
7k views

filename of video downloaded using youtube-dl consists of random characters at the end of filename.name [duplicate]

There has been a consistent problem with downloading videos from youtube using youtube-dl. The filename has random characters at the end. e.g, original filename of the video is Scala Monads: ...
1
vote
0answers
151 views

No filename globbing in FTP whith special characters

I want to upload a bunch of files from my box to my FTP server. There is no problem if I send the by complete filename, but it seems that ftp command can not send files with filename globbing. Here is ...
5
votes
3answers
329 views

How to obtain the correct vfat path translation for my floppies?

My father left me a batch of 3.5 inch "floppy" disks created with Windows 95 (Dutch). I want to copy their contents. My only computer with a floppy drive runs Ubuntu 12.04.5 LTS. After installing ...
11
votes
1answer
6k views

How to rename/extract files with long names in zip archive

I have a zip which contains files with very long names. If I try to extract on the command line, I get the error "File name too long". If I use the graphical archive manager it will not extract the ...
0
votes
0answers
70 views

My desktop Icons and files are showing full path after the name. How do I remove the path?

For example: if folder is called Books, now it is displayed as Books/home/ivan/Desktop. All happened after trying to install different file manager than Nautilus. Very confusing and clattering.
5
votes
1answer
227 views

Finding files/folders containing 3 items of text

I'm running Ubuntu 14.04 and currently trying to search for files and folders containing "hello", "165" and "920" (in their names - not within the files) using the command below: find . -name "...
15
votes
3answers
1k views

How do I copy the contents of every file in a list into another file?

I have a list of filenames inside a file called list_of_files.txt. I want to copy the contents of each file in that list into another file called all_compounds.sdf. How should I do this from the ...
9
votes
4answers
13k views

What is the maximum length of a file path in Ubuntu?

Having used Windows systems for a long time, I know that at a certain point, an error window can appear when files and folder names become too long. This happened to me when I tried to backup files ...
0
votes
1answer
41 views

Is there are tool for recursively converting 64-bit filenames to 32-bit filenames?

I have a flash drive that I want to put a bunch of files on, but they have 64-bit filenames (they're on an EXT4 filesystem currently), and the flash drive needs to be FAT32, which doesn't accept some ...
3
votes
3answers
222 views

How to rename a file which seemingly has no name

I seem to have discovered a bug in Filezilla whereby a file with nonstandard characters its in name will, on copying to a different server, have no filename: The " is the file in question (for ...
0
votes
0answers
121 views

How do I undo or fix a bad batch file rename for stripping characters

I used the following command to attempt to remove special characters and replace them with a "." how can I undo this action? find . -type f -exec rename 's/[^A-Za-z0-9._]/./g' {} + I have used ...
0
votes
1answer
683 views

Checking filenames and folders for spelling mistakes

Is there is a way to check the spelling of multiple filenames and folder names with one app or command? I'm using Ubuntu 16.04.