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)

0
votes
2answers
37 views

How to loop file names into an array or run custom code on it

This is a qna post (Do not need help, just wanted to help others). Recently worked with some files and had difficulty in reading the files #version1 (error on files with spaces) arrFiles[0]=0 ...
1
vote
1answer
46 views

Home folder opens again

I have a mounted partition, where my data lie. I click on the folder icon and it opens. I go to the 196 GB Volume (that's the place) and it opens. I open a file with gedit. Now, when I want to go ...
0
votes
0answers
26 views

How to make a save partition for personal files?

How can i make a partition for example for photos. Something like disk D: in windows. I already installed ubuntu 14.04.3 on my computer. I would like to split /dev/sda2 which has 750gb and make some ...
0
votes
0answers
25 views

How to move files and don't break anything?

I have a file and want to move it somewhere. Before I move it, I need to check if it has any connections with other programs or links or environment variables. Is there any command or plugin which can ...
3
votes
2answers
54 views

Can I create a self-destructing file?

I placed a file into my local Dropbox folder. I would like it to exist only temporarily for X numbers of days. After X numbers of days the file should be automatically deleted. Is it possible to ...
-2
votes
1answer
41 views

for f in files returns sections separated by space

I have the following code arrFiles[0]=0 cd "/home/thenok/Documents/Link to thought diary" for i in $(find -type f ! -name "*~"); do arrFiles[0]=$[arrFiles[0]+1] arrFiles[arrFiles[0]]="$i" echo " ...
0
votes
0answers
50 views

allow executing file as program cannot be unchecked

My issue is that I want to be able to click a text file and have it open in a text editor by default. When I right-click on a .txt file and go to the pemissions tab and when in there, under the "...
3
votes
3answers
364 views

Execute commands on hidden files

I run command to search for phrase in all files: cat *.* | grep blabla It works fine but I got problem with hidden files and directories. Command simply not deals with them. Ho to solve this ...
1
vote
0answers
21 views

How to only allow a file to be opened or executed by certain application(s)?

Let's say that I've got a security application (or something which I just don't want any old application or user to have access to because it is very important and if the wrong guys had access to it ...
0
votes
0answers
48 views

Using AWK to write a CSV file (help me learn it)

I've been struggling with a pdf Directory (list of companies) that was converted with PDFTOTEXT and I would like to convert it's contents with AWK, the input file has the following format: COMPANY ...
3
votes
1answer
68 views

How to create one directory in the tree of directories ubuntu?

I'm using Ubuntu 14.04 LTS a little while ago and I consider myself a beginner. I get the following window: I wonder if there is any way to create a folder in the "Places" area in the tree of ...
2
votes
2answers
70 views

How to stop a file or folder from being indexed in GNOME?

I am running Ubuntu GNOME 15.10 with GNOME 3.18, and I would like to know if I can do any of the following and if so how: Make it so that a folder is not indexed but leave its contents indexable (so ...
0
votes
0answers
27 views

Prevent user from accidentally deleting file without using the Terminal

I must tell a 10 years old boy he can change the icon of a .desktop file. He doesn't know anything about permissions but he can put the icon in the Pictures folder (not protected by default). I can ...
-1
votes
2answers
45 views

Pulling a particular block from a text file

I am trying to pull out a block of data from a huge text file which contains 1193373557 lines. I am excluding the first 25 lines and the last 4 lines, and the more challenging job is that the ...
0
votes
0answers
29 views

Messed up permissions

I tried to remove file permissions for 'other' from all user directories. So I did cd /home/ Then Instead of sudo chmod -R o-rwx * I typed sudo chmod -R o -rwx *, which resulted in some troubles. ...
0
votes
0answers
18 views

data is missing while writing into a file in Ubuntu

I am using UBUNTU 14.04 LTS. I am coding GUI program with QT creator,for MIL-STD-1553 communication.I am saving the Data what ever sending the data to RT(Remote terminal)from BC(bus controller) in a ...
2
votes
2answers
542 views

How to have a forward slash in a file name?

I understand that this will likely break and confuse the hell out of my system, but is it possible to name or rename a file so that it has /s in its name (this is needed for a file which needs to go ...
3
votes
2answers
766 views

How to find all empty files and folders in a specific directory including files which just look empty but are not?

Let's say that in my folder ~/list I have a large amount of folders each with their own sub-folders and sub-sub-folders etc, and there are lots of files almost on each level. However some of these ...
0
votes
1answer
51 views

How can I import all my Windows files into Ubuntu?

My Windows 10 has crashed, and now I would like to go with Ubuntu 14.04. I have my working files in other drives. How can I import my files from Windows to Ubuntu without loosing them?
0
votes
0answers
26 views

how to delete a file using its inode number in busybox?

while doing a random compilation I created a file that has unreadable character as its file name so, I want to remove it using its inode number. I got some options in the internet but they don't work ...
0
votes
0answers
19 views

files and folder can't see

I have pc with dual boot ubuntu 15.10 and windows 10. I saved some files in ntfs partition from ubuntu. I can't see that files on windows 10 and now can't see that files also on ubuntu after open ...
1
vote
0answers
42 views

Force file creation time for all files transferred to a directory

Is there a way in Linux to change the creation/last access time/last modified time by default, whenever new files are transferred or copied. Currently, I need to poll a directory for files and ...
0
votes
1answer
48 views

Command to output lines in file in alphabetical order?

I have a file containing one word per line. How can I print out each line in alphabetical order - ie. the first letter of each word decides the order?
0
votes
0answers
35 views

System screwed desperately need access to mozilla folder

I have recently uninstalled and re-installed Synaptics package for the touchpad (which was playing up) through the Synaptics package manager. Now Ubuntu (14.04.03 LTS) will not boot. After the screen ...
0
votes
0answers
11 views

Which type of tar compression has the best compression power? [duplicate]

There are many variations of the .tar compressed packages tar.bz2; tar.gz; tar.Z; tar.lz; tar.xz I want to compress: A series of text files video(s) I understand that the different types of tar ...
1
vote
0answers
28 views

Accessing git commands from the file manager

Is there a way to do git commands from the Files manager in Ubuntu 14.04? E.g: commit changes, push, pull, etc.
2
votes
2answers
336 views

ubuntu 15.10 freezes when copying files to shared drive

Ubuntu 15.10 64bit When moving or copying files to either a USB Pen Drive or a Network Share Drive Nautilus (Files) hangs. The copying/moving process starts but then freezes. I know Ubuntu cannot ...
3
votes
2answers
354 views

Regular expressions VS Filename globbing

I know that Regular expressions are to be used only with characters and strings, but sometimes I find them in the names of files. My question is: are regexes only used with characters or also with ...
0
votes
0answers
65 views

how to run wine explorer file with native linux app?

lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 15.10 Release: 15.10 Codename: wily uname -a Linux router 4.2.0-22-generic #27-Ubuntu SMP Thu Dec 17 22:57:08 UTC 2015 x86_64 x86_64 ...
0
votes
0answers
19 views

Can't restore files from trash [duplicate]

When I try to move a file out of the trash (whether by clicking the restore button or by copying and pasting), I get an "Error while moving" saying "No such file or directory". Some other times (and ...
1
vote
0answers
31 views

media player wont play drag and dropped media files

I just got a Sony nwz-e384 walkman. I transfer files Drag and drop, but the device refuses to play them. When I do the same files, in the same way (drag and drop) on windows, the device will play them....
1
vote
1answer
392 views

Problem in downloading Torrent file with Transmission Bit Torrent

I am pretty new in Ubuntu. I have just installed Desktop version of Ubuntu 14.4.3 LTS on my Laptop. My installation was successful. I have Transmission Bit Torrent Client on my Ubuntu now. When I ...
1
vote
0answers
62 views

udevadm test for net devices

I am trying to dump the udev env to see my %M,%m and %k values (I am not happy with udevadm info -a) For that in the RUN I write to a file under tmp/ as mentioned here: http://stackoverflow.com/...
0
votes
2answers
81 views

How do I remove certain characters before or after a certain number from a list of files in terminal?

Suppose there is a list of files with the following pattern: ABC2011DEFG.txt What command should I use to remove characters before or after the number in between while keeping the file extension? ...
0
votes
1answer
48 views

ls - filtered list - total size

I'd like to list all the files beginning with z, have their individual filesize, and the total size in the bottom of the list (so I don't have to scroll up like with ls -s). DOS equivalent : dir z* ...
7
votes
6answers
834 views

How to count the total number of files/folders on a system?

How can I count the number of all files/folders that exist on a system, using the command-line? I can find it out using a GUI, simply by opening the properties window for the entire / folder, but it ...
0
votes
0answers
18 views

Where is the device for this folder?

Im trying to mount my smart-phone, and transfer some files, but when caja opens the disk it never does it right, and certain functionality like search doesn’t work right. So I just want to mount the ...
1
vote
1answer
39 views

How to record all modifications to directories, subdirectories and files in one session?

How can I record all the modifications to directories, subdirectories and files made during one session (ie. during login time)? For example, listing all the files/folders that were modified, and ...
0
votes
1answer
49 views

Ubuntu to Windows storage server [closed]

So I have just added an Ubuntu server to my home network that is otherwise composed out of Windows machines. The computer has two hard disks, 120GB one with OS and one 320GB that is currently mounted ...
11
votes
2answers
879 views

How to make my system delete all the files in a certain directory older than a certain time while keeping the directory structure intact?

I have a directory on my machine, think of it as my own sort of tmp directory, but it's in my ~ directory. And I want to make it so that my system every 3 hours deletes all the files in (though ...
0
votes
1answer
265 views

Unable to see files Android phone Galaxy S5 connected via usb

Does anybody know how to make files from the phone to show on my computer. 14.04 I need to transfer photos and videos to computer. It was working fine yesterday. Here is the screenshot, as you can ...
0
votes
1answer
44 views

USB Flash drive size usage discrepancy

I've got a 68gb thumb drive with 52gb of stuff on it and I've got 9gb remaining to add, but I can't do so because Thunar says there's insufficient space. Hitting properties shows this: I've unhidden ...
3
votes
1answer
76 views

Delete files that were created before today

I want to search files whose creation date is prior than today. I do : find $HOME -type f -name "myFile_*.sql.zip" -mtime +1 but it doesn't return anything, it should at least return one file. ...
0
votes
1answer
20 views

Presence of files in Recent Files that I did not open

Often when I open Places -> Recent Files, some random files I haven't opened in days (or even years) all of sudden appear there. If I check the File as Properties -> Last Accessed, it appears indeed ...
0
votes
0answers
12 views

Files blink in the files viewer

When I view files in the Files (is it called Explorer / Viewer?), I notice that when I enter a folder, the files in the folder start blinking rapidly for a couple of seconds and then stop. This ...
2
votes
2answers
227 views

Merging/joining a lot of csv files with numeric digits in the file name

As we process our csv data, we generate a lot of output files with 30 000 lines in each one of them. They all have the same columns/fields. They are all also in csv format and we put them into the ...
1
vote
1answer
158 views

Preview files in Ubuntu 15.10

In the Ubuntu desktop guide it is advertised that in Ubuntu 15.10 it is possible to see a preview of files and folders by pressing the space bar (just like in Mac OS X). https://help.ubuntu.com/...
0
votes
0answers
32 views

Ubuntu phone app

I am trying to develop an app for Ubuntu phone and I have some questions. Am I able to access a database using HTML5 app? Is it posible to read/ write to file using HTML5 app?
0
votes
1answer
81 views

-s: command not found in ubuntu 15.10

I want to see if a file is empty or not, and I have seen that the command -s FILE. The problem is that when I try to use -s (both in the shell and in a script) I get an error saying: command not found....
3
votes
1answer
853 views

System without /tmp dir?

Running df -h gives: Filesystem Size Used Avail Use% Mounted on udev 1.9G 0 1.9G 0% /dev tmpfs 385M 6.2M 379M 2% /run /dev/sda2 113G 27G 81G 25% / ...