For questions concerning specifics about the files on Ubuntu. If your question is about the file manager called "Files" in Ubuntu, use the [nautilus] tag instead.

learn more… | top users | synonyms (2)

51
votes
8answers
5k views

How can I open a file in my terminal, like nautilus does it?

I want to be able to open files like my operating system does from console. e.g. a .pdf file should be opened with evince or whatever the default application to open pdfs is. All the other things ...
38
votes
16answers
51k views

How do I open a text file in my terminal?

There is a file named RESULTS.txt and I want to open this file in my terminal. (I mean I want to see the file contents be displayed in the terminal and not in some text editor) How do I do that ?
36
votes
3answers
28k views

How can I get octal file permissions from command line?

There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
34
votes
6answers
15k views

How to find (and delete) duplicate files

I have a largish music collection and there are some duplicates in there. Is there any way to find duplicate files. At a minimum by doing a hash and seeing if two files have the same hash. Bonus ...
32
votes
6answers
46k views

How to split larger files into smaller parts?

I have a large file (8GB for Example). How can I split it into multiple parts, let's say 3 equal parts, and after that how do I integrate them later?
31
votes
4answers
20k views

Where are file associations stored?

How does Ubuntu or any other Linux systems store file associations? Is there some /etc/asscociations file or something? I know that I can right click on file and change it via "open with", but I'm ...
28
votes
4answers
178k views

How to run .sh file [duplicate]

Possible Duplicate: How do I run .sh files in Terminal? I want to download JDownloader from the internet for Linux. But the file is .sh and when I tell ubuntu to open the file it uses some ...
26
votes
2answers
59k views

How do I increase the open files limit for a non-root user?

This is happening on Ubuntu Release 12.04 (precise) 64-bit Kernel Linux 3.2.0-25-virtual I'm trying to increase the number of open files allowed for a user. This is for an my ecplise java application ...
24
votes
3answers
65k views

No such file or directory? But the file exists!

I've downloaded a game (Shank) but the bin file doesn't run. The error that is shown when I try to launch the executable is: bash: ./shank-linux-120720110-1-bin: No such file or directory
23
votes
7answers
24k views

How to search entire hard drive for a file?

Trying to locate a file, how can I search the entire hard drive for a file?
23
votes
5answers
7k views

Is there a file explorer/manager for the command line?

I would like to know if there is something like DOS interface for Ubuntu. I mean a "GUI" that can run from the console (for example if you are using Ubuntu Server). Some file explorer like Nautilus ...
22
votes
15answers
56k views

How to transfer files from/to an Android device?

Do you know if there is a ubuntu program (possibly a Nautilus plugin) to transfer files from/to an Android device? What is my mind is a program which does adb push, adb pull, and adb shell ls in the ...
22
votes
2answers
908 views

What's wrong with my cat command? [closed]

I lent a friend a computer with Ubuntu 12.04 LTS on it, and he messed up the cat command. $ cat testfile.txt cat: meow! $ Can someone tell me how to fix this? please? Output of which cat: ...
19
votes
12answers
12k views

What mass file renaming tools are available?

I need to rename a bunch of files in order to fix their sort order, therefore I need to be able to do a sort of "find and replace" so I can replace chunks of the filenames at a time. What tools ...
18
votes
3answers
3k views

How can I quickly make a large file?

What is a quick and easy way to make a file that is, say, 2 GB in size?
18
votes
5answers
22k views

How can I open a .dmg file?

I've got a .dmg file, and I can't figure out how to open it. How can I open it?
18
votes
5answers
14k views

Text editor to edit 4.3 GB plain text file

Is there any text editor, which can edit such file? I've tried: gedit kate nano vim mcedit without success.
17
votes
1answer
2k views

How does Ubuntu know what file type a file without extension is?

As the question goes, how does Ubuntu know what file type a file without extension is? When I save a file as "Untitled Document" without any extension, how does it know? Same thing for video and ...
15
votes
5answers
17k views

How to customize (add/remove folders/directories) the “Places” menu of Ubuntu 13.04 “Files” application?

I can't seem to find a way to customize (add/remove folders/directories) the "Places" menu in the most recent "Files" application of Ubuntu 13.04. The procedures used with "Nautilus" in the previous ...
15
votes
1answer
3k views

How many files I can have on a single directory?

This question is related to this one. I work with animation, which generates a LOT of files (+/- 1,000,000) typically stored on a single directory. On Mac Os X, some bugs came up with more than ...
14
votes
7answers
10k views

How to list all the files in a tree (a directory and its subdirs)?

For a task of mine I need to list all the files in a tree (a directory, all its subdirs, all subdirs of those, etc.). I'd prefer to see them in Nautilus or Krusader, but a command-line solution is ...
14
votes
6answers
1k views

How can I protect a file from user changes?

I am using Ubuntu 12.04 and I want to protect some pictures of another user using the su command (I have admin privileges). How can I protect a file using the terminal while still allowing the rest of ...
14
votes
4answers
52k views

What's the easiest way to mount Windows share as a local folder in home directory?

Via Gnome Nautilus I can easily mount Samba shares from my Ubuntu Server. However, these "mounts" are kinda of fake. Many applications I run do not recognize that Gnome has mounted these server ...
14
votes
3answers
612 views

how do I make nautilus to automatically suggest the folder 'Documents' for pdf files?

In Ubuntu 11.10, how can I set up nautilus so that when I select "Save as..." on Evince or some other PDF viewer, for a PDF I downloaded with the browser, it automatically suggests the folder ...
13
votes
1answer
56k views

How to rename a file in Terminal?

I have: /home/user/my_static /home/user/static/ How do I rename my_static to static and remove static(2)?
13
votes
2answers
537 views

How to see the contents of a file with blank filename?

drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 19 07:30 xxxxx -rw-rw-r-- 1 ubuntu ubuntu 580 Mar 20 07:24 -rw-rw-r-- 1 ubuntu ubuntu 27137 Mar 20 09:10 xxx.js Here there is a file on the second line but ...
13
votes
2answers
42k views

Bash: ./filename : Cannot execute binary file

I couldn't execute a fortran compiled code in ubuntu 11.10 32 bit. Error message is Bash: ./filename : Cannot execute binary file. I've installed the gcc and gfortran libraries too. Could anyone ...
13
votes
4answers
3k views

How can I add an application to the list of Open With applications?

I installed Komodo Edit from a download (wasn't available in Software Center.) I want to be able to open .php files in Komodo, but when I right-click and choose Open With Other Application, Komodo ...
13
votes
4answers
2k views

Use path bar and address bar in Nautilus

By default, Nautilus use/show the path bar: Using Ubuntu Tweak I managed to set by default the address bar: Is it possible to set both of them as default (show both: the buttons and the text ...
12
votes
6answers
5k views

How can I recursively delete all files of a specific extension in the current directory?

How do I safely delete all files with a specific extension (e.g. .bak) from current directory and all subfolders using one command-line? Simply, I'm afraid to use rm since I used it wrong once and now ...
12
votes
4answers
1k views

Tailing two log files

I have a web application that outputs to a number of log files with performance information. One log file outputs code execution times and another outputs SQL timings. I have no control over the ...
12
votes
7answers
3k views

Show current folder size in Nautilus

I would like to know if it's possible to display the current folder size (in MB or GB) in Nautilus at the status bar. Here's a screenshot: as you can see, (in this case) I have 7 items, and I have ...
12
votes
4answers
29k views

How can I change permissions on external drives?

I wanted to change permissions on my external drives that are automounted however I have tried by sudo nautilus and then going to gui and permissions and changing it however it does not let me. I ran ...
11
votes
2answers
35k views

How to find a text file which contains a specific word inside (not in its name)

I want to find a text file in my hard disk which contains a specific word. I want to use a graphic application. I'm on 12.4 "Precise Pangolin". Prior to Ubuntu 12.4 I used to start in the dash an ...
11
votes
3answers
901 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 ...
11
votes
5answers
867 views

Is it bad practice for folder name to contain dot (.)? How about file name with multiple dots?

Sometimes it makes practical sense for a folder name to contain a dot (.). For example, you are storing data for an experiment conducted at L=0.5. So the folder might be named: experiment_L0.5 A ...
11
votes
2answers
730 views

How can I programmatically change a file's icon?

If I select an icon in Nautilus and select Properties, I can click on the icon presented there. This gives me a file-chooser dialog to select a new icon image. I would like to do this via a script of ...
11
votes
4answers
963 views

How do I integrate my Windows filesystem with Ubuntu?

I recently got a new Windows computer and would like to dual boot with Ubuntu. I don't really want to have 2 separate file systems (with mounting) but would like to integrate the two, if it is ...
11
votes
2answers
10k views

How can I email an attachment from the command line

Is it possible to email attachments from the command line? If possible, I'd like something as simple as: mail -a myfile.txt -t me@example.com -s "Here's my file"
11
votes
1answer
2k views

Is there a Ubuntu sanity check

Is there a standard procedure to 'unit test' an Ubuntu system against the deb packages? Assume, a system has ubuntu-desktop installed according to the package manager. Can I find out, whether the ...
11
votes
3answers
3k views

How to search for files by tags?

I can tag files with nautilus but haven't found a solution to find files by tags so far. Tracker-search-tool doesn't offer to search for tags, nor does Nautilus, nor any other application I'm aware ...
10
votes
4answers
9k views

Opening a file from terminal

When we want to open an application or file from the terminal, we type, say, okular file.dvi This opens the application, but also shows the status of the application. We cannot close the terminal, ...
10
votes
4answers
503 views

What does the first character of UNIX mode string indicate?

I'm very familiar with linux file permissions, and special perms (sticky bit, suid, guid) But I don't know what the c stands for? Is it a permission, or something else? I've done some googling with ...
10
votes
2answers
4k views

Split a large file into smaller files and then integrate them to get the original file

How do I split a 7GB (movie) file into smaller files of (say) 1GB, and then (in another Ubuntu computer) integrate them to get the original file (using just bash commands)?
10
votes
2answers
4k views

What is the relationship between .gconf, .gnome2, .cache, .local, and other dot-file hierarchies in my home directory?

According to this answer, .local .cache and .config are, by convention, configuration storage locations adopted by Gnome and Ubuntu. Are .gnome .gnome2 and .gconf therefore legacy configuration ...
10
votes
5answers
2k views

Is there a way to recover files from a storage device partially overwritten with dd?

I'm an idiot, I was writing an image to a USB drive using dd when instead of typing /dev/sdb I typed /dev/sdd and wrote the 135mb image to my 750gb External Hardrive full of files. Is there ANY ...
10
votes
3answers
4k views

Use “locate” under some specific directory?

I was wondering how to restrict the search range of "locate" to some directory? For example, how to find files/directories with string "math" in their names under some directory "/home/tim/science/"? ...
10
votes
2answers
1k views

Can Nautilus display a .desktop file by its real name?

The ability of a .desktop file to display a "human-readable" alias rather than its (perhaps) clinical real name, has merit... and as the .desktop filetype suggests, I assume that this ability is ...
10
votes
0answers
3k views

Can I use Ubuntu as a file server? [duplicate]

Can I use an Ubuntu desktop system as a file server or is Ubuntu Server better suited for that, and how about the permissions per folder and file? Sorry but this is my first time to use Ubuntu. I'm ...
9
votes
2answers
13k views

Where are bluetooth received files saved

I have used Blueman and the default Bluetooth manager an every time I accept the file transfer from the Phone to the PC, it shows that it is transferring and even notifies me that the transfer was ...