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
1
vote
1
answer
188
views
How to access hard disks in GNOME?
I have just installed 11.10 with GNOME. Now it seems I cannot access my secondary hard disks anymore. Is there a way to access non-system hard disk in GNOME?
1
vote
2
answers
193
views
Changing from one file to another
I'm told to go to /home/jbander/Downloads, so how do I do that, I assume you do it in terminal but what do you do next, I can get to home but that is it.
How do I go from one directory or file or ...
1
vote
1
answer
719
views
How can I tell GNOME to execute a custom command, CLI-style?
Whenever you want to open a file with a program that's not in the right-click shortlist, you click 'use a custom command.' However, the way that's worded led me to believe that it may be possible to ...
1
vote
1
answer
169
views
Green emblem with a number on the Files icon that doesn't want to go away [duplicate]
There is a green emblem with a number on the Files icon in the Dock that doesn't want to go away.
How can I get rid of it?
1
vote
1
answer
134
views
Cann't connect to 'Other Locations' on Ubuntu 20.04
I'm trying to connect to a sftp server in Files-application via Other Locations -> Connect to Server.
Every URL gets red immediately after entering ':' after the protocol (happens with every ...
1
vote
1
answer
136
views
How to copy from full path to full path under new name with overwrite?
I want to copy a file from one directory to another under a different name, using the full path of both directories. The different name already exists in the destination directory so I want to ...
1
vote
1
answer
190
views
How to generate multiple files in sequence with data in sequence?
I have to create 50 files in sequence labelled r01.inp to r50.inp and in each file I need this text in sequence as well.
#!/bin/bash
abc2 r01.inp > r01.log
I used echo and touch to create the 50 ...
1
vote
1
answer
277
views
How to organize files in linux?
I am super new to linux (1 day experience) and i have a root partition along with home partition now i want to know that like in windows we either can by default install application to program files ...
1
vote
1
answer
607
views
right click save as in Firefox 104
Ubuntu 22.04 Mate. I thought this was a Firefox bug. It isn't. Right click on an image in the browser. Save as. The save as pop-up comes up. The focus is on it. Type in a name for the file and press ...
1
vote
2
answers
23k
views
unzip: cannot find zip file directory
I used right click then compress to zip the folder called m1 and got m1.zip folder but when I tried to extract it again I got.
Archive: m1.zip
End-of-central-directory signature not found. Either ...
1
vote
1
answer
3k
views
How to write all file name in a text file and output to a different folder (directory)?
I have a folder with about 5000 files. I want the file name into a text file. I tried
ls >> Out_file.txt
but I want the output file to be saved in a different directory/folder.
1
vote
1
answer
294
views
All Windows files accessible from Kubuntu except for those in OneDrive folder
I'm dual booting Kubuntu 20.10 and Windows 10, and I have not mounted the NTFS Windows drive in Kubuntu. In the Dolphin file manager, it is shown as "Basic data partition". I can read and ...
1
vote
3
answers
2k
views
How to copy a file from the terminal, then paste it on the browser?
I'm using Ranger as my file manager but every time I want to send something like an image (by copy pasting) I need to open the GUI file manager, copy the file, and paste it on the browser.
How to ...
1
vote
1
answer
578
views
Rename multiple files with same digits after decimal
I have multiple files with names
vort-0.01.txt,
vort-0.02.txt,
...
vort-0.1.txt
...
vort-0.2.txt
... etc.
I want to rename each files with two decimal points i.e. I want to change the name of vort-0.1....
1
vote
3
answers
707
views
How to write a shell pipeline to print the group owner of all sub files a directory?
I need to know the group owner of the files in a specific directory, including the files in its subdirectories.
1
vote
2
answers
151
views
I can not find my garbage [19.1]
I need to access and restore files from a USB drive's trash folder using the the terminal.
I moved some files from a USB drive to the trash and I need to get them back. The Files GUI isn't any good ...
1
vote
2
answers
126
views
Renaming files and directories
I have a ton of file films and directories which naming structure is:
Name of the film (Author, year)
or
Name of the film (Author, year) LANG
I intend to rename them all (almost three thousands) in ...
1
vote
2
answers
3k
views
Are file names allowed to use dots other than the one before the file extension?
I am checking the filename validity on Ubuntu computers. I want to check whether the file extension is correct.
If the only valid dot is the one before the file extension, then this check is valid:
...
1
vote
1
answer
1k
views
How to prevent files from being removed when I remove them from a linked directory?
To create symlinks I use:
ln -s /folder /target
But when I delete a file from /target it also get removed from /folder. However I want to keep the file in /folder even though I remove it from /...
1
vote
1
answer
133
views
How can I print this to file in bash?
I have no idea what I should do to make it work:
find . -name '*.txt' -printf '\t%s\t%f\n' |sort -n -r | > txt.txt
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 "$(&...
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 ...
1
vote
1
answer
352
views
How to mv files one by one?
When mv is used between different storages, it first copies all files and then unlinks the source.
How to mv files one by one, so that each file is unlinked after being copied, and the folder ...
1
vote
1
answer
2k
views
Transfering files between two Ubuntu PC's using a crossover cable?
I am curious as to if there is a way for me to easily transfer large amounts of data between two Ubuntu machines, preferably via ethernet... I have done some research on these forums and most of the ...
1
vote
1
answer
3k
views
How to edit the /etc/libvirt/libvirt.conf file
I am trying configure libvirtd for Xen default operation.
I need to edit this file:
/etc/libvirt/libvirt.conf
I am new in ubuntu.
Thank u
1
vote
1
answer
483
views
Selection box disappeared on Ubuntu 18.04.2 LTS
When I use my mouse to select multiple items on Files, I see no drag-box.
But, I see an orange drag-box on my desktop when I do the same (which I would like to change to blue, but that's another ...
1
vote
1
answer
46
views
Making a shorcut ask for what file to open
Running Ubuntu 18.04 on a laptop
I want to make a shortcut that when i click it, asks me what file to open(in a certain (pre-established) directory only, not anywhere on the disk) and then opens it ...
1
vote
1
answer
562
views
Possible bug: Playing root owned *.flv files in VLC on Ubuntu 16.04/18.04
I have some flv files and I'm trying to play them in VLC. I keep them in a separate directory owned by root (both directory and the files) to prevent accidentally deletion.
Now the interesting part:
...
1
vote
1
answer
311
views
Delete all files with a pattern
I have thousands of txt files in one folder. Many of them are unnecessary for me. I want to delete all unnecessary files at once. If I do this manually (by opening every file, see it's content and ...
1
vote
3
answers
2k
views
change all file names (prefix to postfix)
I have a directory containing thousands of files with names
t_00xx_000xxx.png
I want to change their names to 00xx_000xxx_t.png
so take the prefix and put it as a postfix, can this be done in only ...
1
vote
1
answer
4k
views
Prevent accidental file overwrite
Is there a way to prevent files to be overwritten, if the file with the same name already exists?
Either it should ask for root password to confirm or simply save it with a new name, like windows does,...
1
vote
2
answers
3k
views
Finding all files and folders starting with a specfic letter using upper and lowercase
I recently took a midterm in my Linux class and this one command is bothering me because I thought I had it right.
My question is how would I go about finding all files and folders that start with ...
1
vote
2
answers
4k
views
Saved IPv4 static config file location, on Ubuntu Desktop 17.10?
I've search for a many time the location of this file.
When I make changes in Wired Connection on Ubuntu Desktop (for example on Manual/Static IP) where Ubuntu saved changes?
I tried on /etc/netplan,...
1
vote
2
answers
58
views
Visualize sorted storage volume use [duplicate]
My desktop storage capacity reaches its limit.
How can I visualize my storage partition between files and apps (Android-like) to efficiently dig into the heaviest files?
1
vote
1
answer
4k
views
Break large file into smaller files [duplicate]
How do I break a large file into smaller files?
And how can I send the part files on multiple computers through pssh
And how do I get those files back into the client computer and reassemble them as ...
1
vote
2
answers
1k
views
How to make program auto start when system start in Ubuntu 17.0.4
I'm confusion in the latest Ubuntu 17.04 Gnome, I even cannot find the file /etc/rc.d/rc.local. If the system has it, I can add my command in it. Then the command will run once the system start. But ...
1
vote
2
answers
15k
views
Folders not visible in mounted drive but space is occupied
I have an external hard drive which shows that the drive has 48GB of data. But the folders that are visible are only totaling to ~8GB. I tried to the 'show hidden files' but nothing extra is visible.
...
1
vote
2
answers
2k
views
How to open file with extension .crdownload?
Is it possible to access content of file while it is downloading?.
I meant how to open partially downloaded file?
1
vote
1
answer
275
views
How are there two identical folders in the same location?
This is a picture of my desktop, with the main folder in which I store pretty much everything. At some point in time, the computer sprouted a twin. They both have the same name, and go to the same ...
1
vote
1
answer
923
views
Recursive search and move of a filesystem
I have a filesystem that I would like to organise alphabetically. It's large and to do it manually would take a lifetime.
What I would like to know is whether it would be possible to write something ...
1
vote
1
answer
646
views
How to rename undeleted mp4 videofiles according to "encoded date"
I recovered deleted videofiles from sd-card and now I cannot sort them by date.
I can see "encoded date" with mediainfo filename.
How can I use the "encoded date" to sort videos, even rename them ...
1
vote
1
answer
849
views
Missing file icons in FileZilla
File icons seem to be missing on my Ubuntu computer when using Filezilla (shows blank icon for every file) this doesn't seem to happen on Windows, is this intended or can I fix it somehow?
1
vote
1
answer
3k
views
How to print columns with awk and in the same time edit just one column?
Still on beginner level!
Example of one line in my file.txt:
158.45.456.756 - - [04/Feb/2016:10:51:24 -0500] "GET /tiles/1.0.0/cd/base/1/85/785.png?wb75678545=75D2503E HTTP/1.1" 200 8848 "http://...
1
vote
1
answer
2k
views
Send and receive files via lan [closed]
So I got an Kali linux machine and a Ubuntu machine, I want to send files from Kali to Ubuntu via lan if it is posible i wanna do it with any native program
Hope someone can help me ^^
1
vote
1
answer
2k
views
I want to make a DVD with video_ts and audio_ts folders into an mp4/avi/video file [duplicate]
I have a collection of DVDs with audio_ts and video_ts folders that have a menu where you select chapters, etc., and I want to watch these movies on my phone. I move movies to my phone using the VLC ...
1
vote
1
answer
1k
views
File contents remains on disk after securely erasing it
I have tried wipe, shred, srm, peazip's secure erase, etc. No matter with what options I securely erase the file with all those utilities and then do a search with a hex editor on disk, the contents ...
1
vote
2
answers
2k
views
Git commit and push via batch file on Ubuntu
Our team have to always submit code on git after their work. And on every PC there are a lot of projects. All system running with Ubuntu OS. So I need some solution for overcome this manually commit ...
1
vote
1
answer
5k
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/...
1
vote
2
answers
2k
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 . -...
1
vote
1
answer
448
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 ...