The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
22 views

File disappeared after cutting name when renaming

I use Ububtu 15.04 with Unity interface. While I was editing a file's name, I accidentally selected the entire name (without the extension) and pressed ctrl+x and Enter. The file disappeared. Where ...
0
votes
2answers
37 views

Cannot open zip created with shell script [duplicate]

I try to make a backup script, but when i create a zip with the script, and use cd myzip it sais that it dosnt exitst even when i can see it on the server with FileZilla. This is my script: ...
1
vote
1answer
70 views

how to handle file names with spaces

I am developing a GUI search program. I need help to handle filenames with spaces. I just can't figure it out. Here is my code: #!/bin/bash USERNAME=$(whoami) INPUT=$(zenity --entry) updatedb ...
2
votes
1answer
16 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
37 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
305 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
82 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
493 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
50 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
32 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
46 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
99 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
61 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
53 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
69 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
66 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
223 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
418 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
56 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 ...
1
vote
1answer
69 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
31 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
150 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 ...
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
193 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
433 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
515 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
507 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
875 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
207 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
270 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
1k 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
2k 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
447 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
56 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
32k 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
580 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
143 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
393 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
413 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
251 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
446 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
157 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
453 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 ...
1
vote
1answer
1k 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
479 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
845 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
906 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?