10
votes
Accepted
Move duplicated folder name up one level
Moving every file in the subdirectory into the parent is one way, but if there are a huge number of entries in /mnt/data/mydata/mydata/, and that's the only entry in /mnt/data/mydata, you might ...
- 2,137
5
votes
Move duplicated folder name up one level
How it's done
The way it's done is you'd need to move the contents of:
/mnt/data/mydata/mydata/
to
/mnt/data/mydata/
first ... And afterwords you can just delete the now empty directory, if you like,...
- 20.2k
4
votes
Accepted
Secure/password protected access to a file in Ubuntu 22.04
You can do that by:
1- Using GnuPG
Open the terminal.
Use the cd command and ls command to navigate to the directory containing the file you want to password-protect.
Once inside the directory, run ...
- 741
2
votes
Accepted
How to copy from full path to full path under new name with overwrite?
Use the switch -T
from the man page cp(1),
-T, --no-target-directory [treat DEST as a normal file]
- 664
2
votes
Performant sort files into subdirectories by content of metafile
The trick will be to use for file in *idx. You don't ever want to do for file in $(ls *idx) anyway, see Bash pitfalll #1, and in any case, the shell cannot handle expanding so many file names, as you ...
- 96.8k
2
votes
Performant sort files into subdirectories by content of metafile
Assuming you want to move all the files matching file.* into a subdirectory retrieved from the VALUE_01 of the corresponding file.idx in the same subdirectory, then a structure like this might be what ...
- 129k
1
vote
Can files be restored from the Windows recycle bin from within Ubuntu?
The Windows Trash bin is just another directory in Ubuntu. It has no special functionality in Ubuntu at all.
Windows Trash and Linux Desktop Trash work differently and are not interoperable.
"...
- 53.8k
1
vote
Secure/password protected access to a file in Ubuntu 22.04
LibreOffice -- Save with Password
LibreOffice comes preinstalled on Ubuntu.
LibreOffice documents (such as Calc spreadsheets and Write documents) can be saved with a password. The contents will be ...
- 9,927
1
vote
'/etc/apt/sources.list.d/' as it has an invalid filename extension
You appear to have made a mistake in the process of install Signal following these instructions.
https://signal.org/en/download/linux/
In order to start over, you can remove anything related to signal ...
- 35.6k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
files × 2828command-line × 478
directory × 259
filesystem × 210
nautilus × 188
permissions × 169
bash × 162
scripts × 94
delete × 88
filemanager × 79
windows × 78
14.04 × 71
data-recovery × 62
transfer × 62
search × 60
20.04 × 58
find × 58
18.04 × 54
copy × 53
server × 51
12.04 × 50
gnome × 50
rename × 50
partitioning × 49
16.04 × 46