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)

18
votes
9answers
62k 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 ...
1
vote
1answer
7k views

Does anyone know of any alternatives to recuva for file recovery? [duplicate]

I was using recuva to find pictures and videos on a windows xp hard drive, but I keep getting an internal error message. Does anyone know of an alternative program for recovering broken and damaged ...
1
vote
2answers
39 views

How to know the home directory size limit?

Is there any way to know how large my home directory is allowed to be?
44
votes
7answers
75k 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?
0
votes
0answers
77 views

file manager permission based on users on Ajenti

I installed Ajenti-v on my Ubuntu server 15.10 and I want to create multiple users with specific access to their home directory. Currently, whenever I create a new ajenti user (which is synced with ...
-1
votes
2answers
51 views

How to get file size in terms of bits?

The best I seem to be able to get from Nautilus and ls is the file size for a given file in bytes, however I would like to be able to view the exact file size of a given file in terms of bits, how can ...
8
votes
4answers
5k views

How to “search and replace” many files?

I use the grep command to search for a string in many files. Is there something similar to "search and replace"?
12
votes
2answers
3k views

Placing many (10 million) files in one folder

I've just added a predictive search (see example below) feature to my site that runs on a Ubuntu Server. This runs direct from a database. I want to cache the result for each search and use that if it ...
1
vote
2answers
1k views

How to sort by type and then by modified in Nautilus?

How to automatically sort by type and then by modified in file manager? Using 13.04 and Gnome 3.8
0
votes
2answers
63 views

How to open xz file into movie player program

my friend sent me film with xz format and that file can't open. How to open that xz file in movie player program?
0
votes
0answers
32 views

Opening files without or unknown extensions from a remote server

When I try to open files without or unknown extensions, for example .bashrc from a remote server (via sftp), I get this dialog: I would like to be able to select my text editor in the context menu ...
3
votes
2answers
65 views

What tools are available for determining a files type other than the file command?

I am trying to figure out how Football Manager reads its save games. The files have .fmc extension and if I run the file command it just returns data. I suspect the save game file is a database of ...
0
votes
1answer
20 views

Do I need unencrypted files underneath encrypted overmount?

I have unencrypted files in my /home/user dir (likely fallout from moving my home dir to a different partition). /dev/sda1 440G 137G 282G 33% /home /home/user/.Private 440G 137G ...
11
votes
7answers
12k views

Why do I get “Directory not empty” when I try to remove an empty directory?

I have this empty directory, but I keep getting the following error message: Cannot remove test: Directory not empty I know this question has been asked plenty of times but none of them helped. I ...
3
votes
4answers
720 views

Why doesn't ls combined with awk show exact sizes?

I am trying to find the size of the files on my hard drive in exact bytes, but whenever the size gets too big the number turns all weird (like 1.98329e+12). Can I stop it from doing this or convert ...
1
vote
1answer
32 views

Giving postgres access to root files

I created an Ubuntu 14.04.4 server on digital ocean. I have a directory off the root user called mapnik/data/. Inside is a file I want to import to postgres. When logged in as root ls -l /root/...
0
votes
0answers
7 views

list all files by size [duplicate]

I'm currently running some Disk Management and trying to locate where some rather large files are located. Is it possible to list all files on a hard drive, (including system files, and hidden files) ...
19
votes
5answers
86k 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 ...
0
votes
0answers
18 views

/home/$USER always load with unknown binary files

My personnal folder is full of unknown files : newzzzcworl, newzzzcwpaa.... When I open it, my computer load during a very long time. Software like Matlab doesn't work when I looking for files in ...
2
votes
2answers
242 views

what is the default location for backup files of another server

I have an Ubuntu Server and one of its "tasks" is to mirror/backup files located on another server in a different location using rsync/rdiff-backup. I know there are some conventions like web pages ...
0
votes
0answers
23 views

Can't Downloaded just zipped file

I am using ubuntu, KKVM as webserver just make a backup with zip -R archive.zip * file size: -rw-r--r-- 1 root root 3676624704 Apr 4 11:04 archive.zip As you read from title i can't ...
21
votes
4answers
114k 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 ...
-2
votes
1answer
40 views

Where can I find a folder containing icons of all my applications, that I can double-click? [duplicate]

Where can I find the folder where I can see icons of my applications and click on them as I am accustomed to from other operating systems? (N.B. Please see my comments re duplications.)
5
votes
1answer
5k views

Changing default file icon

I changed the default application association for a mimetype that was wrong just editing the file .local/share/applications/mimeapps.list. Just doing this was not sufficient to change also the ...
0
votes
0answers
31 views

How to associate an icon to a file type

Is there a definitive, infallible tool or recipe to associate an icon to a file type? I mean, to simultaneously associate an icon with all files of that type on a computer? I could do that file by ...
0
votes
1answer
30 views

Pasted file has more MB than the copied?

Ok so I have ubuntu 15.10 installed on a USB and boot with it as my main OS on this computer. The computer has 2 hard disks one connected to a SATA interface and one through USB too... none of them ...
12
votes
5answers
21k views

How to shred a folder?

I want a command to shred completely the contents of a folder/directory (which may be inside folders/directories). Also please explain the command.
13
votes
1answer
1k views

What do the symbols like =, * and | in the output of “ls -F” mean?

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; = ...
8
votes
3answers
10k views

How do I solve “Error splicing files?”

My hard drive crashed, so I'm using a Ubuntu live disk to access my files. But as I try to transfer them to my flash drive, it occasionally comes up with an error message which, when I view details, ...
4
votes
2answers
17k views

How I can recover a previous version of a file?

I modified a .txt file and saved it. When I opened it again, I saw that I deleted one thing from the last version I saved. So I would like to know if I can recover what I deleted? This file is very ...
1
vote
2answers
54 views

How to store file information into an array?

With this part of script I can get a necessary information about files in my directory(and subdirectories). The only information I need is the extension and the size of file. for file in `find . -...
0
votes
2answers
71 views

Check if input string exists in file

You must read string1, what should I do? Here's my code: #!/bin/sh echo "Enter your sting: " read read string1 if [ grep -q $string1 file.txt ];then echo "Found it" else echo "Sorry this string ...
0
votes
0answers
42 views

All panels gone and no terminal

I was booting up my laptop one day and entered my password wrong several times due to forgetting it. After finally getting in, I get to my account and find all the panels gone. I've tried everything ...
-1
votes
1answer
23 views

How long it will take to sort uniq a 62GB file? [closed]

For 5 hours I ran the command sort file1 | uniq > file2 on a 62GB file and I'm just wondering how long it will take. I have a Intel® Core™ i7-4510U CPU @ 2.00GHz × 4 with 8GB RAM. It will be ...
0
votes
2answers
108 views

chmod not working in a non super user

I have created a file named *.txt in /home using following command: sudo nano *.txt Then I have changed owner of *.txt to a user that I've created: sudo useradd -c "ABC" sudo chown ABC *...
1
vote
1answer
39 views

When copying files via USB from Ubuntu to Windows 7, there is a different number of files

What's up guys, I'm trying to backup some Ubuntu files to my Windows machine. I have all the files in one folder and when I click "Properties" in Ubuntu it says 696 items, 742.6 MB. When I copied that ...
1
vote
2answers
86 views

Bluetooth File Transfer with Nexus 5X Not Working

I am running Ubuntu 14.04 on my laptop. The laptop's Bluetooth seems to work fine as I have a remote Logitech keyboard that I have paired with it that works flawlessly. My problem is with my Nexus 5X ...
1
vote
5answers
198 views

Editing files on server through SSH

I'm working on a web application and all of it's files are on a linux server, which I am accessing through SSH. Is there a way to edit these files in a text editor other than vim or nano through SSH, ...
1
vote
1answer
25 views

Who is using an included file?

With 'fuser' I can see which process is using the file. However any included file does not show with 'fuser'. mainfile #! /bin/bash source subfile SomethingInSubFile sleep 60 exit 0 subfile ...
-1
votes
2answers
88 views

Can't delete file and folder from my desktop

Hello i'm new ubuntu user so here my problem, i can't delete file and folder from my desktop there is no option for that."Move to trash" is not optional on list when i press right click.
1
vote
0answers
22 views

Incorrect permission set received

In the following shell script: default_conf_file_path="/etc/apache2/sites-available/"; default_conf_file=$default_conf_file_path"000-default.conf"; DocumentRoot=$(grep "DocumentRoot" $...
0
votes
1answer
84 views

How to fix desktop error “Permission denied”

I can't delete,add and put on desktop files and folder and with everything i only see this. Help me please.
0
votes
1answer
145 views

mkdir: cannot create directory ‘/media/virtualCD’: Read-only file system

I just want to create a simple folder in root directory but I face this message: mkdir: cannot create directory ‘/media/virtualCD’: Read-only file system. I appreciate your help in advance.
0
votes
2answers
49 views

Why am I able to open executable files?

I really don't know how to give many details here. All it is is that I can open exe files for some reason. I'm not saying it's a bad thing, but I'm really confused. I am using Ubuntu 15.10. I can't ...
0
votes
1answer
25 views

Opening a file using xdg-open

I have a bash script which reads a file extension and list files of that extension using 'find' command. After that it reads name of the file. Now after this how can I open that file using name and ...
0
votes
2answers
13 views

troubleshooting updatedb

I am taking a course that makes me go on terminal and run updatedb. but this is what I get: nonrootuser$ updatedb updatedb: can not open a temporary file for `/var/lib/mlocate/mlocate.db' so far I ...
4
votes
4answers
1k views

Option or command for finding whether a file is empty

Is there a command that allows finding out whether or not a file contains something? I tried with ls' size option (ls -lsh) but it does not show me the empty files because the files/folders have no ...
0
votes
2answers
52 views

var/log/syslog growing indefinitely in size

The disk that contains Ubuntu on my computer is 115GB in size. When the disk was 114.7GBfull. I started deleting some files here and there to free up around 5GB. But I noticed the disk was 114GB ...
0
votes
1answer
20 views

Ubuntu Mate question [duplicate]

I am running Ubuntu Mate 15.10-64bit on my surface pro by booting it from a USB drive. I don't want to install it on the surface pro, I just want to keep booting it from the USB drive. I always change ...