The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
12 views

Opened file Highlighting in Linux Ubuntu console

First(I am using linux in terminal, (console mode),(no graphical extension), like on server. The question is following: Is it possible to install some kind of script, that highlights "opened file", ...
0
votes
0answers
29 views

Rename Files To Be Windows Friendly

I am having difficulty trying to create a back up of my personal files on Ubuntu as I am installing windows on my laptop (the restore disk will likely wipe the ubuntu), and I am trying to move about ...
1
vote
0answers
35 views

Sorting files by name [duplicate]

Is there a way I can change the way files are currently "sorted by name", to include common non-alphabetical characters like +-_? I don't mind getting my hands dirty if someone can point me to the ...
2
votes
1answer
217 views

Shell script with select command to show a list of files

I've written the attached bstls.sh shell script which uses the command select to choose the subfolder or file in a folder passed as argument on which execute the ls command. #! /bin/bash #Personal ...
1
vote
5answers
74 views

Delete pattern of names from files [duplicate]

I downloaded some files with youtube-dl. The name is always like this foo - baar -PSUHDUWHDAIHDWU.ogg/mp3/... How can I remove this random letters (cut the last '-*') at the end from all files of a ...
7
votes
4answers
337 views

How can I change the filename timestamp?

I have dat files' names in chronological order: FileName_YYYY_MM_DD_HHMM.dat Is there any commands for adding 30 minutes to each timestamp?
1
vote
3answers
41 views

How do I direct a file to be stored in a different folder?

So I'm trying to direct a file to be created in another folder (let's say on my Desktop) from my bin directory. I made a text file with all the files in the directory using ls > textfile but this ...
0
votes
1answer
23 views

Renaming png fails with shutter

I am learning to use shutter and from the CLI I was trying to take 10 screenshots at 1 second interval and to rename them, however when I try I get an error message that says: "There was an error ...
0
votes
0answers
31 views

Firefox: don't rename files with “filename(1)”

If I download two files with the same name (or even the same file twice by mistake), Firefox appends "(1)" to the filename (or "(2)", etc). I find parentheses in filenames annoying, especially ...
1
vote
1answer
66 views

Error: object “ip” is unknown , try “ip help”

I am trying to run trusted executables through a script. I copied the binary executable /bin/ip to a directory called Tools. I renamed the binary to eip. I have navigated to the directory tools and ...
0
votes
3answers
57 views

Substitute specific char sequence inside filenames

A friend of mine grouped tons of files in this way on windows After I made him switch to Ubuntu, files are no more ordered based on the number of exclamation marks in front, so I would like to know ...
0
votes
0answers
30 views

Detect & Convert encoding for broken file names

I downloaded some mp3 files that has Japanese character in its name and now the file name is broken. I tired convmv to convert encoding, but i cannot seem to find in which encoding the filename is ...
0
votes
3answers
54 views

How to Search for multiple words (in any order) in filename - GUI (or terminal)

I'm looking for a search tool (from Ubuntu 14.04 desktop) or method/command (Terminal) that will allow me to search in filenames for full or partial words, in any order, regardless of capitalization. ...
-1
votes
1answer
55 views

What happens with the case sensitive directories and files in an NTFS partition under Windows?

I use Ubuntu since 1,5 years. I upgraded my computer so that's the time for backup, fresh install, etc. I will make a dual boot system, so here is my problem: I have some (i don't know exactly how ...
0
votes
1answer
190 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
373 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
54 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
61 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
28 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
137 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
4k 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
169 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 ...
2
votes
1answer
396 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
461 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?
1
vote
2answers
428 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
777 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
187 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
257 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.
3
votes
3answers
896 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
1k 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
423 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
52 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
1k 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.
6
votes
3answers
27k 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
519 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
135 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
379 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
396 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
244 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 ...
16
votes
2answers
437 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
145 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
432 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
419 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
993 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
463 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
815 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
170 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 ...
2
votes
1answer
801 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?
6
votes
2answers
9k 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?