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)

53
votes
8answers
7k 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 ...
46
votes
3answers
36k 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?
40
votes
16answers
72k 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
6answers
56k 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?
32
votes
6answers
17k 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 ...
31
votes
4answers
23k 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 ...
30
votes
4answers
208k 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 ...
27
votes
4answers
81k 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
26
votes
7answers
31k 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?
25
votes
5answers
8k 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 ...
25
votes
15answers
67k 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
1k 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: ...
21
votes
6answers
26k 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?
20
votes
6answers
16k 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.
19
votes
12answers
14k 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
5answers
21k 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 ...
18
votes
3answers
4k 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
4answers
3k 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 ...
17
votes
1answer
80k 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)?
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 ...
16
votes
1answer
4k 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 ...
16
votes
5answers
4k 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 ...
15
votes
4answers
58k 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 ...
15
votes
3answers
5k 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/"? ...
14
votes
7answers
12k 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
2answers
51k 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 ...
14
votes
3answers
631 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
2answers
43k 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 ...
13
votes
2answers
564 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 ...
12
votes
3answers
946 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 ...
12
votes
4answers
22k views

How to find owner and group of a directory?

How can I find out owner and group of a directory in Ubuntu?
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
6answers
4k 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
35k 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
4answers
12k 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, ...
11
votes
5answers
2k 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
5k 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)?
11
votes
2answers
848 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
1k 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
12k 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
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 ...
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
6answers
22k views

How to list recursive file sizes of files and directories in a directory?

How do I list all the files in a directory and their recursive file sizes? ---edit I want to see the sizes 'rolled up' to the parent directories in the directory listed. I don't want to see the ...
10
votes
4answers
731 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
3answers
635 views

How to find the difference between a script file and a binary file?

$ ls -l /usr/bin total 200732 -rwxr-xr-x 1 root root 156344 Oct 4 2013 adb -rwxr-xr-x 1 root root 6123 Oct 8 2013 add-apt-repository list goes long --------- In the above adb is ...
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
2answers
568 views

What are = and | in the output of “ls -F”?

I am working on creating a 'cheat sheet' of shell commands. I am currently researching the ls command and its flags. For the -F flag I know what the majority of the appended indicators mean but for; = ...
10
votes
1answer
11k views

How to unmount after using mount --bind option?

I have mounted a hard disk /dev/sda1 on /media/backup. Further, I have issued the following command: mkdir /home/users/Desktop/backup sudo mount --bind /media/backup /home/users/Desktop/backup This ...