Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [filename]

The tag has no usage guidance.

1
vote
0answers
27 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
99 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
votes
0answers
45 views

Transmission “Error: Unable to save resume file: File name too long”

Got a download error of "Error: Unable to save resume file: File name too long". When downloading a magnet using Transmission. I tried to fix it by downloading the torrent and changing the filename of ...
1
vote
2answers
65 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
28 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- ...
7
votes
1answer
600 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?
8
votes
2answers
66 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
137 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
117 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
47 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
4k 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 ...
0
votes
1answer
471 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
133 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 ...
6
votes
1answer
363 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 ...
0
votes
0answers
40 views

bash: how to replace recursively a pattern in filenames from current directory? [duplicate]

I'm looking for a command in bash which can do the following replacement. From: /path/filename.txt /path/subdirectory/otherfilename.txt ... To: /path/filenameOld.bak /path/subdirectory/...
2
votes
3answers
214 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 ...
16
votes
2answers
2k 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 ...
1
vote
1answer
227 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
700 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
1k 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
2k 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: ...
2
votes
0answers
57 views

special characters problem in ubuntu 16.04 [duplicate]

Ubuntu 16.04 does not correctly display file names with non-latin characters in the GUI. Instead, there's a diamond-shaped question mark symbol in place of the special character and the string "(...
1
vote
0answers
70 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 ...
6
votes
3answers
202 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 ...
7
votes
1answer
3k 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
56 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
220 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 ...
4
votes
1answer
6k 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
39 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
150 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
81 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
340 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.
4
votes
1answer
3k views

apt update message : /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist - invalid file name extension

When I run sudo apt update I receive the following message: /etc/apt/apt.conf.d/20auto-upgrades.ucf-dist has an invalid file name extension. This has also started giving me an error message every now ...
0
votes
2answers
94 views

Rename files to their BASE64

I want to rename only filenames to their BASE64, not extension. So I created this script which doesn't work. Can anyone tell its problem please? #!/bin/bash #initialize with random text onlyfilename="...
0
votes
1answer
304 views

I need to md5 the filename of a directory of files

I need to get the md5sum of the filename of a directory. Maybe something along the lines of: mv *.html md5sum(*).html Can anyone point me in the right direction as to what kind of command I need to ...
2
votes
1answer
62 views

Can I restrict file names to be valid on Windows?

I sync certain folders to Windows and to One Drive, and if I have a file with invalid characters like \/:*?@<>| or I have two files in the same folder with the name Cube.png and cube.png it ...
3
votes
2answers
500 views

How to delete all first-level subfolders that do not have a specified string in their names

I know that there are quite a lot of answered questions about how to delete all files with or without a certain string in their names, as well as ones about how to delete all subfolders with a certain ...
0
votes
1answer
223 views

Encrypted home folder is only partially decrypted by ecryptfs

I'll make this as brief as possible: -Following an upgrade, lubuntu no longer boots -I installed ubuntu gnome on a separate partition -Within the new partition, I mounted the other (lubuntu) ...
16
votes
3answers
403 views

How to name a file to be the very first in Nautilus?

New versions of Nautilus are cool, because they skip nonalphanumeric letters at the beginning of any file name and sort files according to the first alphanumeric letter (if any). But how to name a ...
2
votes
2answers
82 views

Thumb drive doesn't distinguish case in file names on Lubuntu

Using SanDisk ExtremePro 128GB usb3.0 thumb drive to copy files between Lubuntu 13.10 systems, also sometimes from Mac or PCs. Formatting is standard off-the-shelf, I believe, although I did run a ...
2
votes
2answers
665 views

How to save the file name with current date and time?

I want to save the filename with current date and time by using a keyboard shortcut, is that possible? Example: array_12:35:16 28-05-16.php somename_currentdatetime.php
1
vote
3answers
614 views

How to rename photo filename to include the date?

I have a group of photo files that are named with only a sequence number like: Imagexxxx.jpg (xxxx is just a sequence number) what I am trying to search but sadly no results, is to add the date of the ...
1
vote
3answers
976 views

Rearrange the components of filenames for a group of files

I have a group of photo files that are named: ddmmyyyyxxxx.jpg (xxxx is just a sequence number) that I am trying to search but sadly no results, is to rename the filename to yyyy-mm-dd-xxxx.jpg. All ...
1
vote
0answers
668 views

Arabic file names changed to unicode

Copied zip file of site backup from old host which had Arabic file names, when unzipped on new installation of Ubuntu file names are somehow changed to unicode. Original file name : إدارة-المكتب-...
1
vote
2answers
1k views

How to make aliases for file paths?

I have many folders on my machine, many of those folders have more folders within them, more folders within those folders, and so on... Now when I am doing certain cd and cp operations that I do every ...
0
votes
1answer
54 views

How to move data to Windows reliably?

I have a laptop which has Lubuntu installed and I have about 30-40GB of videos, documents, pictures and music files on it. I would like to move the data to another hard drive/pendrive and use it on a ...
0
votes
1answer
342 views

What to write instead of \x20 in path name in Bash?

I have an external hard drive called "My Book". When I used the command: find /dev/disk/ it shows me that it is under /dev/disk/by-label/My\x20Book However, when I type in find /dev/disk/ | ...
1
vote
2answers
362 views

How to change the file naming scheme for screen shot [duplicate]

I use Ubuntu 14.04 LTS, and when I take the screen shot, the default file name is given like Screenshot from 2016-02-29 11:08:10.png. I do not want the file name to have a space () and a colon (:). ...
9
votes
1answer
3k views

How can I increase Ubuntu's 143-byte file name limit for encrypted directories?

In encrypted directories, Ubuntu (at least 15.10) seems to have a file name byte limit of 143 B--much smaller than the ext4 file system's limit of 255 B. Where is this special limit set, why is it set ...