Questions tagged [files]
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.
2,875
questions
2
votes
2
answers
441
views
How to merge two files' data line by line?
I have two files, and want to merge data line by line. The input files are file.txt and file2.txt.
file1.txt
howareu
abc
zooo
file2.txt
123
@@
099
I want to merge the two file, such that output ...
1
vote
1
answer
392
views
Changing file names in sub-folders following a number extracted from the sub-folders
I have a folder with several sub-folders, inside which I have a file with same name in all sub-folders. For example:
abc/def_0/ghi.jpg
abc/def_5/ghi.jpg
abc/def_10/ghi.jpg
...
abc/pqr_0/ghi.jpg
abc/...
1
vote
1
answer
1k
views
Grub file can't be saved after modification
Every time I try to edit the grub file it does not let me save it. It says "access denied" or, in a different editor:
Object not accessible. The object cannot be accessed due to insufficient user ...
2
votes
1
answer
43
views
get hidden details (eg. author) of a file as in windows
Is there a way to find, in Linux, details as given in Windows machine? By details, I mean author, etc. Like in this figure (Source : Super User).
0
votes
1
answer
248
views
How to copy files from a certain range into another directory from terminal?
I want to copy files 50,000 to 100,000 into a separate directory and I'm not sure how to go about doing this.
For more context, I want to create a smaller dataset of images (50,000) from a larger ...
1
vote
2
answers
3k
views
Folder and file icons messed up
As you can see in this image, my folder and file icons are messed up. The trash app icon is messed up too. I changed themes and icon themes in tweak and maybe that's what triggered this but then I did ...
-1
votes
1
answer
2k
views
cannot remove 'known_hosts': operation not permitted
I am having problems with my remmina remote desktop and I've been searching online how to fix it. As mentioned here and in other posts on this forum, one suggestion is to try:
rm ~/.freerdp/...
7
votes
1
answer
3k
views
Nautilus : "Send via Bluetooth" in Context Menu
I use nautilus as my default file manager. Very frequently I need to transfer files to other devices via bluetooth. Is there some way to add a "Send Via Bluetooth" option in the right click context ...
2
votes
1
answer
57
views
Directories aren't on the beginning of the view in Nautilus file manager, how to change this?
I am on Ubuntu 19.04. I have probably clicked some shortcut which changed directory view in Nautilus (Files application) and for a few days all directories are sorted like on the screenshot.
I can't ...
2
votes
1
answer
1k
views
Add tags to files and directories on file browser
I'd like to add a tag to the files or directories (tag=simbol). This tag would be visible on Files (3.32.1-stable).
I'm using Ubuntu 19.04.
1
vote
1
answer
133
views
Nautilus files sidebar occupies more than half of page
This might be a stupid question but it troubled me for 1 hour and I'm still unable to solve. I accidentally clicked something in nautilus file management after which the sidebar occupies half of the ...
0
votes
1
answer
77
views
How to remove decimal date from a text file?
I have a text file where date many times appear in two formats e.g. 01.01.10 or 01.01.2010
Is there any command that will remove all the dates from a text file?
Any help would be appreciated.
2
votes
1
answer
313
views
Recent directory missing
Today 16.04 told me that a new version was available (18.04) and I decided to try it. I can't measure it, but 18.04 seems a little snappier.
But my Recent directory no longer appears in my list. I ...
0
votes
0
answers
54
views
Change icons for a specific file type in Ubuntu 18.04 [duplicate]
I want to change the icons for a specific file type (*.py to be specific) on Ubuntu 18.04.
What's the simplest way to do it?
I'm using Ubuntu-mono-Dark as the icon theme.
0
votes
1
answer
985
views
Copy file that is been written
I have a file that is constantly been written and is getting to big. I need to copy the existing one to another name and at the same time create a new file with the same name so the process that is ...
7
votes
1
answer
7k
views
ICO or PNG Format?
Kind of a dumb question, but which file format are ubuntu icons (in apps and dash to dock) are they .png or .ico files? I want to create some icon/themes for ubuntu. But I'm not sure which format to ...
3
votes
1
answer
57
views
Removing certain file types that do not contain the hostname in the file name
I am doing a file deployment for multiple machines per site, so it is much easier for me to zip all the files once and deploy to every machine. However I would like to remove the config for all the ...
31
votes
5
answers
124k
views
Creating a large size file in less time
I want to create a large file ~10G filled with zeros and random values. I have tried using:
dd if=/dev/urandom of=10Gfile bs=5G count=10
It creates a file of about 2Gb and exits with a exit status '...
0
votes
1
answer
1k
views
Mount does not limit the size of drive
I set a ramdisk via
sudo mount ramfs -t ramfs /media/typicalramdisk/ -o size=1M
Then I put files inside it. They exceeded 1 MB and I still could place files in this drive.
I tried 1m, 900k and a ...
1
vote
0
answers
185
views
Can't see my 'other Locations' option in Ubuntu 18.04 desktop [duplicate]
I have 3 partitions on my Ubuntu 18.04 desktop. It was good until yesterday. But don't know what happened. I Can't see 'Other Options' in the file manager when I open it. Looks weird. the file manager ...
0
votes
1
answer
278
views
Auto Mount NTFS Drive at /media/user/Data x at each user login? [duplicate]
I am using Ubuntu OS details here
I am using Files as File Manger which is details here
The NTFS drive names of the system are "Data 1" and "Data 2".
These drives mount to /media/user/Data 1 and /...
2
votes
0
answers
50
views
File can't be created
I'm having a very odd issue. I have a file that can't be created. No matter how I attempt to create a file with the name libnss_dns-2.19.2f.so in /lib the file doesn't exist. For example I tried ...
1
vote
1
answer
270
views
Read command line arguments from a file
Directory structure:
/home
---ubuntu
------projects
---------project1
---------project2
---------project3
------.ignore
.ignore:
*project1* *project2*
If I run:
zip -r zipush.zip projects -x "$(&...
5
votes
1
answer
7k
views
What is difference between ls -lh and du -sh?
$ ls -lh file1.tar
-rw-r--r-- 1 wnice wnice 40K Aug 6 20:41 file1.tar
$ du -sh file1.tar
80K file1.tar
Why is it showing different sizes of same file? Please help me understand
4
votes
2
answers
5k
views
How long is it supposed to take "creating a persistant file" with Universal USB Installer?
Creating a persistent file. Progress will not move until finished...
It's been at it for 3-4 hours. I selected to install Ubuntu on a near empty drive (With just the image file of the OS installer in ...
0
votes
1
answer
80
views
How do I set Nautilus/Files view preferences?
Under each file icon in the file manager, I want to see its Name, Date, and Size. (I used to have these, but have lost these since doing a reinstall today). At the present I only see the file's name.
...
5
votes
1
answer
7k
views
Unable to write to disk but disk isn't full
I can't write to any file, even as root, or do any other operation that requires writing. Neither can any process that needs to write, so they're all failing. df says I've got plenty of room:
...
0
votes
3
answers
745
views
Bulk change file extensions [duplicate]
I have a folder with ~30 files. The are already BitTorrent metafiles that lack a .torrent suffix. I want to change all those files to .torrent files. How would I do that? In windows it was as easy as ...
5
votes
2
answers
748
views
root and home are on separate partitions, but home still uses up space on root?
When installing Ubuntu 12.10 for the first time, I made sure /home had it's own partition, gave it about 185GB, and gave root ~10GB.
Now root is almost full after a few days and I've noticed that root ...
0
votes
1
answer
51
views
I don't know how to access my created file
I'm trying to connect my home wifi to my machine with wpa_supplicant but don't know the path to the file with SSID and passphrase. If I do ls -a -1 | less from my user account I can see it in the list,...
9
votes
2
answers
11k
views
Moving files accidentally to an not existing directory erases files?
I moved all files from one directory using mv and accidentally made a typo in the target location path.
The system returned a message that the directory does not exists, but my files from source ...
0
votes
1
answer
357
views
Is it possible to visually view the differences (changes) of text files while copying them with Caja?
I have two files with the same name in two different folders.
I need to copy the text file from source to destination. Usually I use Caja's Extra Pane (accessible by F3) for doing so:
I remembered ...
4
votes
1
answer
1k
views
File Corruption Large Files (32 GB) on 18.04 LTS [RESOLVED]
I am getting irregularities with large sized files. I have 64 GB of RAM, and my storage drives are all Samsung 860 EVO. I am running mdcrypt on top of my raw drives, luks RAID on top of that, and ext4 ...
9
votes
2
answers
783
views
Move a group of files, prompting the user for confirmation for every file
System: Ubuntu MATE 18.04.
I have a collection of files (in multiple directories in a directory structure) and I want to move many of them to another directory. I can tell which files I want to move ...
0
votes
1
answer
1k
views
Does canceling copying files process leave partially copied/uncopied files?
I managed to mount a corrupted encrypted hd using a bootable ubuntu usb stick and I was copying the files from it to an external disk.
The process takes hours and hours and hours and hours and hours. ...
4
votes
1
answer
381
views
Default name suggestion for files in "save as" dialog
I right clicked over a photo, selected save image as.., the save dialog appeared, and there was 207e072b-a806-4078-984d-933ae0567e6c.jpegin the name text box. Where has this name come from? Can we set ...
1
vote
2
answers
291
views
Grep finds file, ls/rm does not
I have got an email I cant delete, so ran
grep -rnwil . -e 'HMG Capital'
to locate it. grep found the file and the output is:
./1563972300.M254363P6352.xxx.codes,S=5606,W=5728:2,
Now when I try ...
31
votes
1
answer
21k
views
How can I change a picture's file size?
Every so often, I try to upload a picture to a website and encounter a message:
Upload failed: the file size can't exceed n MB!
I know that resizing the picture's dimension should get me below n ...
7
votes
1
answer
2k
views
Popup when opening files in Telegram Desktop snap [duplicate]
I have a super weird question. Whenever I try to open a file or try to show a file by clicking on the message in Telegram Desktop, this popup shows up:
I always have to click 'Yes', which is ...
0
votes
0
answers
84
views
file transfer very slow (within the same HD)
I had a previous Ubuntu 16.04 and no problem except Grub was messed up, couldn't solve the problem so I did a clean install. The second install to transfer a file from 1 dir to another (175MB in size) ...
0
votes
0
answers
24
views
Multiple Connected Hard Drive Permissions Not allowing rwx
So I have multiple connected SATA drives in my PC. Everytime I boot, I have to go through Nautilus and click on each one individually to get them to be recognized by the PC where then I can go ...
4
votes
1
answer
3k
views
Photo transfer problems from camera
We have a digital camera (Cannon SX130 IS) which we often connect to the Ubuntu 12.10 desktop via USB in order to download the images. In past flavours of Linux (Mint 12 was most recent) it worked ...
0
votes
0
answers
345
views
Cannot paste folder to system files - error read only
I'm not sure if this is a duplicate - i tried searching for answers to this problem but the solutions seems to only governs flash drives or virtual machines.
I am trying to paste a folder from my ...
1
vote
1
answer
3k
views
Sorting files to be used in for-loop in bash file
I try to remove duplicates from a directory with 20k files. I figured that duplicate files, although having different filenames, have the same filesize. So I want to sort them first on filesize and ...
6
votes
1
answer
933
views
'rm' (delete) thousands of files selectively
I created a cache system in my web server which stores the HTML files of each webpage, instead of dynamic producing them. As a consequence, I have 50,000+ files within a directory in a Linux server. ...
1
vote
1
answer
209
views
How do I clean up desktop containing shortcuts of Home directory?
There are several sub-folders from Home directory which appear as shortcuts on the Desktop. If I remove them "Move to Trash" then they also remove from Home directory.
How to remove shortcuts only ...
1
vote
0
answers
29
views
Save PDF to file fails for remote location in Ubuntu 18.04
If I am using Firefox in private mode and I choose to save a page as PDF to a file location on a network drive the print dialog appears, I set the filename and location, click Print, there is a popup ...
1
vote
0
answers
340
views
how to increase the open file descriptor size in ubuntu [duplicate]
i want to increase the open file descriptor size in linux current size is
ulimit -n
returns 1024
i want to increase it to 65535 because my elasticsearch process needs it
here is the link i am ...
1
vote
0
answers
85
views
Files, "real" access time when copy from remote host
Question..
Is possible to dig "real" access time of file copied from remote server and using it by including from another script?
What I need.
I need to know which files on server are unused/...
15
votes
1
answer
18k
views
Converting a file to directory
As we know "Everything in Linux" is a file, and moreover directory is just a file containing other files.
So, I don't know if this "crazy idea" possible, but it should be in someway according to the ...