The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
34 views

Error finding preseed file when booting the UbuntuServer installer via iPXE through HTTP

I know the typical settings to run a PXE server is the combination DHCP+TFTP+HTTP/FTP/NFS... servers, but my setting must be only DHCP+HTTP, so my dhcpd.conf has these lines: subnet 192.168.1.0 ...
1
vote
2answers
136 views

How to move files based on first word in file name?

In a folder, I have thousand of files, such as: cat eats mouse.jpg cat chases mouse.jpg gorilla eats banana.jpg gorilla is sleeping.jpg elephant is huge.jpg elephant has trunk.jpg (and so on...) I ...
1
vote
1answer
39 views

Searching in Dash

What are the characters which the Dash search uses to split filenames into words? I mean, if you have a file some random.txt, the dash will show if you enter either 'some' or 'random'. But what if I ...
0
votes
1answer
37 views

How to select files/folders based on input name prefix match in nautilus instead of start searching? [duplicate]

When one types on the keyboard in a view of a directory in nautilus, it either starts searching or to select the first file/folder matching the input with a prefix in the file's/folder's name. I've ...
1
vote
0answers
16 views

Sort files alphabetically with _

From Windows I am used to have files and folders with names starting with the "_" character to be sorted on top, before letters and numbers (when alphabetically sorting). Is it possible to do the same ...
3
votes
2answers
91 views

How can I batch replace one string at start of filename with string from end of filename?

I am looking for a command that I can use with Kubuntu's terminal (Konsole). (Edit) I figured out how to remove the useless last 13 characters in the filename, so what would the script be if I want ...
0
votes
0answers
31 views

How do I cat / rm a file called “-v”? [duplicate]

I have a file named -v: $ls -hl (...) drwxrwxr-x 2 segticfnd segticfnd 4096 Set 28 2012 Ubuntu One/ -rw-r--r-- 1 root root 180 Fev 12 11:53 -v drwxr-xr-x 5 segticfnd ...
3
votes
5answers
3k views

How to mass add file extension?

My photo importer moved files from my camera and renamed them, but I forgot to specify that it should keep the file extension. So I have several folders with hundreds of JPG & AVI files that are ...
1
vote
1answer
85 views

Solving $PATH obfuscation by /bin/sh (dash)

This question is a follow-up from http://unix.stackexchange.com/questions/126955/percent-in-path-environment-variable. I post it here, since it is more distro-specific. The shell used by default for ...
1
vote
0answers
270 views

Cannot read filenames that are in utf8 encoding (Greek characters)

I've downloaded some files using "Download as .zip" option provided by Dropbox. The filenames contain Greek characters. I've extracted them and all I get is this: 2013 ΧειμεÏινÏ.pdf The files ...
0
votes
2answers
315 views

Rename command special characters in filename

I would like to remove [] in multiple file names. I get an error when doing it with the rename command. Is there another way to do this?
0
votes
0answers
120 views

How to increase XFS Max. filename length

How can I increase the maximum length of a filename of XFS? http://en.wikipedia.org/wiki/XFS I'm trying to download a torrent file, and apparently because it's Cyrillic, the file name hit's the ...
1
vote
2answers
309 views

How delete files - based on date in filename

I have some folder with files with the names as "example_YY_MM_DD-HH.zip" and I have 3 backups per day. I need this: 1) For backups older than 1 week I need only one per day (at midnight '00' at HH) ...
0
votes
2answers
487 views

In a cronjob copy files and change their names to unique values

I want to make a cronjob that makes a copy of every file in /var/log, and puts it in /etc/bak. That i do by making an sh file saying cp /var/log/*.* /etc/bak I would like these files not to be ...
1
vote
3answers
145 views

How can I prepend a random letter/number to the beginning of each filename?

I'm working on a system where I'd like the first letter of each filename to be random - not necessarily unique, just random. I'd like to be able to run this from a cron job. For example, I would be ...
2
votes
1answer
177 views

Nautilus is not showing the full or folder file names

When my folder location is too long, I can't view the full file or folder names. Double clicking on the name field or in between name and size doesn't work either.
4
votes
3answers
577 views

Find files with a minimum filename length

I'd like to find all files in a certain folder which have a filename of at least n characters (extension included). Is there any way to achieve this with find?
3
votes
1answer
994 views

how to detremine why unrar is failing // file name restrictions

I installed ? (at least I hope so !!) unrar with sudo apt-get install unrar-free I tried from Archive Manager Archive Manager displays the existence of files inside the Archive.rar After the ...
8
votes
2answers
362 views

Nautilus - How to apply Zoom on the filenames? Not just on the thumbnails

I'm looking to edit the way for nautilus to handle the zoom. Since Ubuntu 13.04, when you use the zoom in nautilus it only changes the thumbnails/icons size, and the filename text stay the same. Is ...
2
votes
0answers
38 views

How to mount so spaces in filenames are replaced

I know that there are many ways to replace spaces in filenames with underscores by renaming the file. But what I am searching for is a way to access the untouched files with a different filename (a ...
0
votes
2answers
845 views

how to print a file in ubuntu terminal using cat that spaces in its name

Suppose my file name is äbc def When I type in the terminal like cat ¨abc def¨ it shows error. Can anybody tell me how to print this file that has spaces in between the name.
5
votes
3answers
13k views

How to find all files with the same extension within a directory

I am beginner in linux and I want to search for all .conf files in /etc/ . I tried grep -r *.conf /etc , but the result isn't the right one, what I am doing wrong.
2
votes
2answers
377 views

Invalid filename issue when I transfer files on Ubuntu to the external drive

I backup files on Ubuntu 12.04 to the external drives. The WD external drive works well. But the Maxell external drive cannot recongnize some files names, such as the saved .html files with '|' or ...
1
vote
1answer
124 views

not what I expected from shred - help to interpret output

I have a windoz xp disk that got infected by a virus, a particularly nasty one that hides in a gazillion places and 'activates' on many actions including plugging in any usb device, file writes, etc. ...
3
votes
2answers
315 views

rm if there's a file with same basename

Say I have the following files: foo.coffee foo.js bar.js Is there an easy way how to rm *.js if there's a corresponding .coffee file? In the example such a command would remove foo.js leaving: ...
3
votes
1answer
295 views

Samba CATIA filename mapping

I'm running Ubuntu Server 12.04.2 LTS as an ActiveDirectory connected mail server using dovecot and postfix. All works fine on this part. Now we want to export the mail storage for backup purposes. I ...
0
votes
1answer
190 views

How can I remove this file?

I'm using an Apple Timecapsule mounted via gvfs-mount (I tried cifs too) which contains a file named Capitoli 3:5.odt I definitely want to remove that but I had no luck. From ubuntu the most i ...
15
votes
2answers
398 views

How to use commands with parameters that start with a dash “-”?

This may be a simple question, but how do I use files starting with "-" with command line programs? For example, I am trying to use pdfgrep on a file named -2013-01-01.pdf but it complains that ...
2
votes
1answer
121 views

How to run a cron entry periodically?

I have a line of script that works through terminal and works through cron to run one time: it downloads a file from the internet and saves it in a specific place named as the date it was found: cd ...
1
vote
0answers
367 views

Can't work with files named with russian characters

After saving file in LibreOffice with russian name it displays in Nautilus like "??????.odt". This file correctly opens in LibreOffice, but with "??????.odt" title in titlebar. Another side of ...
2
votes
1answer
335 views

How to make archive manager recognize Cyrillic chracters?

I have some files with Russian titles that are archived in a .rar file . When extracting them with the archive manager in Lubuntu, their names contained odd characters and the comment(invalid ...
1
vote
1answer
849 views

How to resize a folder name area in Ubuntu 12.04?

I am having folders on my desktop. The folders names exceed the folders icons. So that makes me difficult to read the folder names whenever I align all folders in a same line. What I want is to ...
3
votes
1answer
397 views

Can I do filename pattern matching in a bash script?

Can I do filename pattern matching in a bash script? test is a directory with the following files ... bob@bob-laptop:~/test$ ls exclude exclude1 exclude2 include1 include2 From the ...
1
vote
1answer
633 views

Is it possible to increase the size of thumbnails in the filename conflict dialog?

When the files being moved or copied are images, bigger thumbnails would make it easier to see the file contents and decide on how to solve conflicts. Is there any way the default thumbnail size in ...
3
votes
1answer
167 views

What happens when you change the name of a file or folder that is synced to Ubuntu One?

I've been using Ubuntu One for the last year or two to sync/backup specific important files and folders on my computer. Rather than just using it like "Dropbox" (i.e., putting files I want to sync in ...
1
vote
1answer
492 views

How to download torrents with long filenames?

There is a known problem with transmission: it can't download torrents with filenames longer than 255 bytes. What are the workarounds?
4
votes
2answers
6k views

How long can file names be?

How long can be files names and folder names in Ubuntu Linux and what characters are allowed in file name and folder name in Ubuntu Linux?
0
votes
0answers
34 views

Is it possible to search for a package by filename? [duplicate]

Possible Duplicate: How do I figure out what package something is in without resorting to Google? Sometimes it is useful to search for a package that contains a certain file? For example, ...
3
votes
2answers
1k views

How to use find when there are spaces in the directory names?

I need to find all .nfo files in my media directory so I can use sed to change some parts. The problem is my folders have spaces in the names. find /media/media1/HDTV -name \*.nfo -type f ...
1
vote
1answer
386 views

Why does japanese filenames not show on ubuntu server and samba?

I've installed japanese fonts sudo apt-get install ttf-takao-mincho and I mounted my drive specifying utf8 sudo mount -t vfat /dev/sdc1 /media/HERMES -o ...
12
votes
3answers
1k views

Where do files ending with a ~ come from?

Sometimes duplicate filenames occur while working on Ubuntu which differ only by a ~ from the original filenames. I know kate generates backup files and calls them your_file.py.swp. Is this ...
19
votes
5answers
2k views

Why is there 'amd' in the ubuntu iso filename?

If you download iso file with ubuntu you will get something like this: ubuntu-10.04.3-server-amd64.iso ubuntu-11.10-desktop-amd64.iso Every part in the file name is pretty clean to me, except ...
2
votes
1answer
1k views

What's the maximum filename length in encrypted ext4 partition?

I'm using a two-partition setup with ubuntu (one partition for the system, one for my home directories). Until now I had an ext3 formatted home partition, which I'm currently trying to migrate to an ...
2
votes
4answers
8k views

Get todays date and use it in filename

Using the command-line, I want to create a log file with today's date in the name (for example, today is 05/17/2011, so the filename would have to be log051711). I know how to create the file (touch ...
2
votes
0answers
201 views

How can I stop Banshee from renaming files during a sync? [closed]

Currently I have sync set automatically and to transcode my flac files into mp3. For multi-disc albums I have my tracks sometimes like "1-01 First Song First Disc.flac" and "2-01 First Song Second ...
1
vote
2answers
702 views

how to use grep in a conditional search previous to a sed text replace command

I am trying to change the path in whole lot of m3u files. I know I can do it with regexxer f.e. but I'm trying to learn bash. This is the command I figured out, but it is not working. grep -lr -i -e ...
2
votes
3answers
669 views

Automatically insert date into filename

Is there a simple way (maybe a script), to automatically insert the current date into the filename of a newly created document either in nautilus or in Libreoffice? A function like that would be ...
7
votes
7answers
2k views

How can I change all files prefixes in one command?

I need to change the postfixes of all files (all the same .JPEG) to .jpeg (Capital vs. lower case). Is there a quick way of doing so?
3
votes
2answers
2k views

Strange file exist with name '* (star, asterisk)'

What is this strange file with name '*' I cannot even guess.. $ ll total 549M -rw-r----- 1 jaewan eng 0 Apr 29 18:37 * drwxr-x--- 21 jaewan eng 4.0K May 20 08:21 ./ drwx------ 19 jaewan eng ...
6
votes
1answer
114 views

How do I remove a file with 2 hypens in the name, like --karmic.list [duplicate]

How can I read, write, or delete a file which has a name beginning with a pair of hyphens? In my /etc/apt/sources.list.d/ there is a set of files whose name starts with --karmic.list . When I try to ...