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.

Filter by
Sorted by
Tagged with
-2 votes
1 answer
12k views

Directory path to open a file in c program

I am trying to append data to a text file (info.txt) at the home directory using C programming language. I am supposed to use the function fopen() that has the following syntax fopen("file path&...
2 votes
2 answers
119 views

How do I bookmark root in files?

In Ubuntu 22.10 I use the default file manager, Files. I want to add root "/" as first (preferably) location in left menu. The menu add bookmark is disabled So why is "Files" ...
0 votes
1 answer
144 views

Trying to extract my files from corrupted sd card [img file] or fix it

I have corrupted image file based on Ubuntu 18.04. Inside Outside It was corrupted because of update interrupt and now i cant boot it. I have very important files on this sd but i cant extract them, ...
0 votes
1 answer
58 views

Has anyone experienced copying files with Thunar from a hard-drive to a usb drive and suddenly several directories on the hard-drive have been zeroed

I used 'disks' and the drive tested okay. Did a repair file system - nothing. Very weird. I have lost a lot of family videos as I was collecting them together to organize. The directory names still ...
5 votes
2 answers
496 views

How to add a new file in any directory by right-click add a new ...file (text, doc etc.) easily?

I want to add a new file to any directory by just one or two clicks. There is a way like using the terminal and touch command, but I want it to be easier so that it can be done by anybody. Is there a ...
0 votes
1 answer
66 views

Bash: Removing Multiple Files

Beginner here... I have a fruit folder, named "apples," that has extra files I want to remove. Remove all files that begin with "red_dk" and "red_lt" Remove all files ...
0 votes
0 answers
128 views

How to recover files without extension using PhotoRec

So i had some files without extensions on my usb drive which has been formatted many times. I tried to use gparted to recover them but no result. Then i found PhotoRec which using deep scan i was able ...
81 votes
11 answers
84k 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 ...
7 votes
4 answers
7k views

How do I change all plain text files to .txt files in a directory? Is there such a command?

I have tried rename command but didn't succeed.
0 votes
2 answers
610 views

Copying and Pasting File paths in Ubuntu / PopOS

I am not able to find a solution to copying and pasting paths when saving a file or while opening a file using Nautilus. I am comparing it with the method used in Windows. On Ubuntu / PopOS I am not ...
0 votes
1 answer
37 views

Quick preview of folders for fast inspection

i have to inspect something like 500+ folders after a fsck recover. Is there a tool or a cli shortcut to quick preview the content of a folder and, if the files are from a certain type (pdf and mp3 in ...
0 votes
0 answers
130 views

Files not opening in ubuntu 22.10

My Files are not opening in ubuntu and also not upgrading, whenever I restart the nautilus (that is default file manager in ubuntu) it gives me error below. I got help to chatGpt but it's not ...
0 votes
0 answers
502 views

iPhone USB connection is disconnected by apple-mfi-fastcharge driver

When I connect the iPhone to the USB-C terminal of my laptop, I don't find my iPhone in my files. Found the cause of the error: cmd 'dmesg' [ 7795.969752] usb 1-1: new high-speed USB device number 6 ...
13 votes
4 answers
21k views

Going to the parent directory of a file with cd?

I am writing a .sh to do some work for me, but I am now at the point where I have to cd to the directory the file /path/to/file.end is in. terminal doesn't allow cd /path/to/file.end bash: cd: /path/...
0 votes
1 answer
54 views

Why can I write to /dev/ttys010 using `>` but not `|` [duplicate]

I am trying to play around and understanding ttys. In one terminal emulator window, the output of tty gives me $ tty /dev/ttys010 So I figured if I write to this device, the terminal window will show ...
0 votes
0 answers
48 views

how to change/set columns on 'open file' file browser?

when on a website, I need to upload a file, there's a browse button which opens a 'file open' file browser window. the problem I have is that I can't seem to be able to add columns so I can filter or ...
1 vote
1 answer
153 views

after changing ubuntu user account and root password all files disappeared and cant run any software

i did write in terminal: sudo su then changer the root password: passwd and then exit to the user: exit and then changed the user password: sudo passwd username after changing ubuntu user account ...
0 votes
0 answers
230 views

rsync creating duplicate files

rsync is creating duplicate files on destination and renaming them. Filename.txt gets added again as Filename(1).txt rsync -avP --ignore-existing /source/ /destination/ Anyone have an idea what is ...
2 votes
1 answer
291 views

Does Ubuntu have an alternative to Windows File Protection?

Windows has File Protection feature, according to Microsoft: Windows File Protection (WFP) prevents programs from replacing critical Windows system files. Programs must not overwrite these files ...
6 votes
1 answer
23k views

"Files" File manager is not working on Ubuntu 20.04

"Files" File manager is not working on my Ubuntu 20.04 system. If I try to open it from terminal by using nautilus command, still nothing is happening. But if I try with sudo nautilus ...
1 vote
2 answers
263 views

AbiWord File says Error and file cannot convert

I have been using AbiWord for the last few months working on a major project. I have gotten very far in my writing, but yesterday as soon as I pressed save my computer died. I did not think of it as a ...
0 votes
2 answers
8k views

Accessing Windows 10 files from Ubuntu 20.04

I am a novice Linux user. I have a Raspberry Pi 4 and have used Raspbian on it and have had no problems accessing my Windows 10 files shares. I wanted to try Ubuntu to see how it compares. I tried the ...
164 votes
15 answers
242k views

Create a single pdf from multiple text, images or pdf files

I have a bunch of text files, images and pdf files which I want to convert into a single pdf file. How do I do it?
23 votes
5 answers
39k views

Rename returns "bareword not allowed" when trying to lowercase parts of multiple filenames

I have two files in a folder on my Ubuntu 16.04: a1.dat b1.DAT I want to rename b1.DAT to b1.dat so I would have following files as a result in the folder: a1.dat b1.dat I tried (unsuccessfully): ...
2 votes
2 answers
255 views

Internal Differences Between File deleted from GUI and CLI

I am using inotify system call for watching one of my file for all the events (delete,modify etc). But When I deleted file from GUI, no notification was fired. Whereas when I deleted file from CLI ...
6 votes
1 answer
814 views

Allow flatpak application to "Open with" other applications

Is it possible to configure a Flatpak application so that it is able to send files ("Open with") to other programs? I am on Kubuntu. For instance, I have Thunderbird installed as a Flatpak ...
0 votes
1 answer
52 views

get file via sftp to local ip from ubuntu make local connection hang

been trying to figure out this for couple days.. the case was, if im trying to get file in ubuntu (with files or filezilla) from my local sftp server (android phone) the connection would drop after ...
3 votes
1 answer
433 views

( fuse-zip ) Using cp reported running out of virtual memory

Hello I am using this command find ./"DCIM/Camera" -name "Camera" -print -exec cp -n -a -p -R -v "{}" "/home/username/path/to/destination/folder" \; to copy ...
18 votes
7 answers
21k views

How do I prevent the file 'recently-used.xbel' from being created?

I want to permanently prevent Ubuntu 12.10 from creating a "recently used" file list. This list seems to be stored in the file: /home/user/.local/share/recently-used.xbel I have tried deleting this ...
0 votes
1 answer
227 views

See actual raw binary content of the full disk block in which a file is written

If I have a file on disk (creating a healthy one for the sake of the discussion, but I may have one from before, possibly damaged, in some debugging activities): /tmp/tmp.gEJmJSc2zQ> echo "...
37 votes
5 answers
152k views

Where is mongo database folder on the filesystem

I'm using Ubuntu 16.04. I have set up a database MongoDB. When I start it (with mongod command) it says that database is located at /data/db (dbpath=/data/db). The database works fine. But in files ...
1 vote
2 answers
10k views

How to Force SMB Legacy Mode Version 1 SMB1 In Ubuntu 19.04

I hope someone can help me figure this out. In previous versions of Ubuntu I could lower the security of samba server with something like this. server max protocol = nt1 I don't need the extra ...
1 vote
2 answers
461 views

What does it mean when there is a path like /dir/dir/program.attribute?

I want to understand how can there be what appears to be "hidden" files that exist. Are they in fact hidden? Or are they attributes of a program? How does one access all the .files?
48 votes
5 answers
81k views

What are dot-files?

I am having a hard time grasping what dot-files are or what they are for. Are they directories? How do I navigate to them?
0 votes
0 answers
101 views

How to give space for sda2 from sda4(/dos)

I have got too much not used space in sda4(/dos) folder But, actually my space in sda2 is about to end :( So, the question is: Is there a way to make available space for sda4 from 90GB to for ...
10 votes
5 answers
25k views

How Can I Merge Multiple Directories into One

I have multiple files in multiple folders under one directory that need to be in one folder. Is there a command line that can help me accomplish this?
2 votes
2 answers
1k views

Ubuntu 22.04: How to change default folder shown by 'Files' to root instead of Home

I have a fresh installation of Ubuntu 22.04. When I click on the 'Files' icon in the GUI dock the initial view defaults to showing the default directories my Home directory, i.e. Documents, Downloads ...
0 votes
0 answers
168 views

How do I recover lost folders and files in Ubuntu?

I'm a relative newbie to Ubuntu. I was trying to uninstall and re-install some Java programs on my setup and I ran the following command on the terminal for g in ControlPanel java java_vm javaws ...
6 votes
2 answers
2k views

Thumbnail view in 'Files' can't see .webp images

In the ubuntu files browser 'Files' I can set the default viewer for a given filetype (right-click->properties->open with) - but is there a way to get Files itself to show thumbnails for .webp ...
15 votes
8 answers
10k views

How can I count files with a particular extension, and the directories they are in?

I want to know how many regular files have the extension .c in a large complex directory structure, and also how many directories these files are spread across. The output I want is just those two ...
126 votes
4 answers
156k views

What is the command line equivalent of copying a file to clipboard?

What is the command line equivalent to pressing CTRL+C over a file in the file manager so that the file (not the filename) is copied to the clipboard? A situation where this can be useful and fast, ...
6 votes
1 answer
15k views

Modify creation and last modified date for entire subdir

This is only an issue because some antique software has Y2K issues, I need to move the file creation dates from 1990's to 2000 but for files across 21 subdirectories. A way to manage it recursively is ...
2 votes
2 answers
678 views

Filenames are too long or misformatted?

I tried to sync from local to Ubuntu One files with filenames such as: 176 - Deutsche Geschichte - Ein Versuch Vol 05-Von der Revolution bis zum Drei�igj�hrigen Krieg - 01.mp3 (ungültige Kodierung)" ...
0 votes
0 answers
242 views

Read only /root folder

Can a user have read-only access to the /root folder? For example, only in the .bash_history file.
0 votes
1 answer
136 views

Access files on second NVMe

I just dropped and broke one of my PCs. I am trying to access the files on the NVMe on a different machine. Both ran Ubuntu, but all I need to do is access the broken machine's NVMe that is currently ...
0 votes
1 answer
104 views

How to delete matched filenames from a list

I want to scan for filenames in a source directory and all its sub-directoris then print the output to a file like: ls -hR >> del.txt (I, however, don't know how to not list folders) I don't ...
0 votes
0 answers
92 views

How to Restore completely deleted Virtualbox Linux.VDI on Linux ? Already restored it but to DD image, don't have a backup

so I accidentally deleted the Linux.VDI from my Virtualbox it's a Linux/Ubuntu64 VDI, I had a success by restoring the file but only to a Linux.dd , I have tried different things to get it back ...
0 votes
2 answers
550 views

How to get media information in Dolphin?

I can select media information entries to display in details view, but the listed columns are empty. Width, height, duration, or any other information for pictures, sound-files or videos can't be ...
0 votes
0 answers
13 views

How to copy ONLY large files? [duplicate]

I'm backing up (manually) a computer on some usb keys. I got several splicing errors, probably because the usb keys were formatted as fat32. These errors seem to occur on large files, such as database ...
13 votes
3 answers
34k views

Error: tcl.h not found (no such file or directory)

I'm trying to install something using the 'make' command, however it gives me the fatal error:tcl.h no such file or directory. I'm new to linux, can anyone help me?

1 2
3
4 5
58