Questions tagged [directory]

A component of a Unix filesystem which contains other items, to organise the filesystem

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Multiple things from Ask Ubuntu tried - Error opening directory '/media': Permission denied

I want to open files from /media or /mnt in programs like Chromium or Inkspace. I get this error: Error opening directory '/media': Permission denied I have tried: gksudo nautilus (Terminal sat ...
0
votes
1answer
30 views

No 'Move to Trash' in Files for symlinked directory

I have a symbolic link to a directory of another user. The directory has group write permission and I have done 'newgrp' to that group. On the command line I can 'touch', 'rm', 'mv' to that directory....
13
votes
3answers
16k views

Change the language of the home/user/ folders automatically

When I changed my language/locale settings, a window popped up asking me if I wanted to rename Documents, Music, Video, Downloads, to the new language. I was worried that this might be some ...
0
votes
1answer
42 views

Install a new system but keep intact previous folders like Desktop, Documents, Downloads, Music etc

I have to install a new system rather often, and therefore I have to backup my files on a separate partition or an external drive. I am familiar with different ways of ensuring a safe backup but I ...
0
votes
1answer
48 views

Windows rights for write access

I have an infuriating problem with directories in a partition that I use to share documents between Linux and Windows. This partition has several directories (all the usual top level user directories: ...
0
votes
0answers
21 views

No such file or directory using cp hacking.apk [closed]

root@alex:~# cp hacking.apk /var/www/html/hacking.apk cp: cannot stat 'hacking.apk': No such file or directory how do i fix this
41
votes
5answers
38k views

Create a link to a folder on the left panel of Nautilus file manager?

I would like to create a link to some new folder that I have in my home. The left panel shows docs, images downloads etc. But I would like to add my other folders that I created myself like university ...
0
votes
1answer
28 views

command line input directory read with tab autocomplete doesn't work

I need for user to point out a directory path in command line but when trying to suggest folders with tab it gives me tab spaces function selectFolder() { local dir read -p "Enter the path of ...
1
vote
1answer
33 views

How to Zip all folder in folder with password and remove folder after zip done?

How to zip all folder in Zip All Folder to New folder1.zip, New.folder2.zip, New_folder3.zip, Newfolder4.zip with password and auto remove folder after zip done. I have used this code: for i in */; ...
61
votes
12answers
322k views

How to search for all the files starting with the name “ABC” in a directory?

I need to search for files starting with some particular name. There can be multiple files starting with a particular pattern and I want to list all such files present in the directory.
0
votes
0answers
51 views

Prevent browser from downloading files into specific folder

Now, this might be an oddly specific question. But is it possible to make it impossible for browsers to download files into a specific folder? The issue appears because I don't want the browser to ...
0
votes
0answers
59 views

Thunderbird: Restore missing folders

So I wanted to create more local folders in Thunderbird within my IMAP Mail account. I already had about 6 of these folders before, some where I manually moved mails into and others where I used ...
5
votes
1answer
3k views

How can i change the Pictures/Documents/etc directory?

I am a total noob in Ubuntu, and i would like to change the default directory of Documents, Music, Pictures etc. My setting is as follows: 1 partition for Windows 1 partition for ubuntu 1 ...
0
votes
1answer
35 views

Assign Semi Path to a variable

How can i assign only the first 4 words of a path to a variable for example: my current working directory is /home/Foo/Documents/Programs/ShellScripts/Butler and i want assign a variable with path ...
1
vote
0answers
28 views

How to do SFTP access for only one folder/user?

I'm using ubuntu 18. I currently have a folder located in: /home/CS/scriptfiles/Maps/ And I want to create a new SFTP user, on port 22, which could ONLY browse the location: /home/CS/scriptfiles/...
3
votes
1answer
2k views

Downloads, Documents, Pictures Folders gone missing [duplicate]

When I try to open Documents or Pictures folders I get the below error message. Unable to find the requested file. Please check the spelling and try again. Following is the output of cat .config/...
0
votes
0answers
8 views

What program created this MAIL folder on 18.04?

Fresh install of 18.04.3 LTS, this folder "MAIL" shows up in my user profile as a owned by root. What program created it and can I delete it?
-1
votes
0answers
35 views

how to hide/unhide symlinks in a folder/subfolder using 'find'?

please, can anyone help with a one liner using 'find' to hide/unhide symbolic links in a bunch of folders/subfolders? i have here a couple of directories holding hundreds of icons. many of them have ...
0
votes
0answers
35 views

Unable to delete a folder in Ubuntu 18.04

So I have an Ubuntu server 18.04 and in my home folder I have the following files and dirs : (0) matias #> ls -lh total 24K drwxrwxr-x 2 matias matias 4.0K Feb 5 12:44 Desktop drwxrwxr-x 3 ...
-1
votes
0answers
11 views

I need to add file extension filter to specific folder

i need add file extension filter for specific folder only mp4 and mxf files can be copy to my folder that mean any other file type cant be copy to that folder. please help me to do it thank you
542
votes
7answers
2.7m views

Change folder permissions and ownership

I would like the user to have full rights on this folder (as well as all sub-directories and files in it): ~/.blabla currently owned by root. I have found numerous posts (in this forum and ...
134
votes
4answers
184k views

Why are hard links not allowed for directories?

I am using Ubuntu 12.04. When I try to create a hard link for any directory, it fails. I can create hard links for files inside file system boundary. I know the reason why we cannot create hardlinks ...
0
votes
1answer
50 views

Does anyone have a .sh script to scan recursively the current folder for 0 byte files and place them into text file?

I am looking for a simple .sh script which can scan the current folder and sub folders recursively for 0 byte files. I know this can be done in only a few lines, but I'm quite noobian on the command ...
27
votes
3answers
182k views

How to make a directory permanently writable?

I am using LAMP stack for development and I have a problem with making /var/www permanently writable. I use this command: sudo chmod -R a+rwX /var/www This works, but after putting a web app and ...
0
votes
1answer
32 views

create shared folder that works on linux device?

I'm new to Linux and trying to solve this problem I have a hifi streamer with a removable 2.5' HDD running modified LMS server on top of some kind of Linux (musical fidelity encore). It has a default ...
0
votes
0answers
41 views

How can I delete a corrupted directory? (`rm: cannot remove 'directory': Bad message`)

I am in a mounted VeraCrypt volume and have a corrupted directory that I wish to delete. When I attempt to rm the directory, I get a message like the following: rm: cannot remove 'directory': Bad ...
1
vote
1answer
3k views

Ubuntu Server 16.04 and Active Directory

I've been following the “SSSD and Active Directory” documentation in order to try and add an Ubuntu Server to our Windows AD domain for user authentication. Configuration goes well until the point at ...
1
vote
2answers
106 views

Move home folder to another drive? [duplicate]

I have everything currently installed on a 120GB SSD. I've recently installed a 2nd drive (480 ssd) which I've partitioned for about 90% personal use and 10% in case I add 'other' purposes. I@ve not ...
-1
votes
0answers
14 views

I cannot enter on a folder inside another folders “Openfoam”

*basically i discover that issue running a tutorial on youtube, where is typed: modelagem@Modelagem1:~$ cd OpenFOAM/OpenFOAM-v1906/tutorials/incompressible/icoFoam/ modelagem@Modelagem1:~/OpenFOAM/...
1
vote
1answer
81 views

Copy only directories and its contents while excluding outside files using rsync?

Let's say I have this file structure: dir1 dir2 dir3 1.jpg 2.jpg 3.jpg Is there any way for me to rsync the directories and its contents while excluding the files outside the directories(1.jpg, 2....
0
votes
1answer
22 views

Find and remove common characters that should not be used in filenames and folders

Following on from this question- Rename files and folders in all sub directorys to remove character I would like to remove all common characters that can cause problems such as / \ : * ? " < > | ...
0
votes
0answers
24 views

Creating custom home directory

I need to make custom directory DIR which has everything from /etc/skel directory, plus Documents and Downloads directories. This file has to be used to create home directories for users, and I found ...
0
votes
0answers
44 views

How do I make a folder unsearchable?

I am trying to make a folder unsearchable by the activities search. It used to be possible in unity when I was using that, but now that I am using Gnome, I cannot find anything that resembles it in ...
0
votes
0answers
30 views

.themes and .icons folders read only

I'm new to Linux in general but ive been trying to use this (https://www.howtogeek.com/358049/how-to-install-desktop-themes-on-ubuntu-18.04-lts/) tutorial to install this (https://www.gnome-look....
2
votes
1answer
227 views

“Network Servers” folder mysteriously appeared on desktop, and cannot re-hide it?

The "Network Servers" folder somehow ended up on my desktop, and I can't re-hide it, or otherwise remove it from the desktop area. There is likely a simple solution, but I don't know what it is. I ...
0
votes
3answers
75 views

How do I copy files to read only directory

I want to copy some files to a directory but it says permission denied. I already ran sudo chmod -R a+rwx /path/to/folder the last time which left my system in lots of problems that I had to re-...
5
votes
7answers
3k views

climb up the directory tree faster

if I'm in a very deep directory a/b/c/d/e/f/g/h/i/j and want to come back a/b/c, I have to use ../../../../../../../. Is there command I can pass through a number, e.g. cd up 7, to speed this ...
0
votes
0answers
13 views

Multiple Icons for Virtualbox after Folder

I was trying to put all of my applications on Ubuntu 19.10 into folders to organize them. Virtualbox had 2 icons (not running) for some reason, I tried to put them into a folder but it only moved one. ...
2
votes
2answers
117 views

Rename files and folders in all sub directorys to remove character

I have some files and folders that were saved in Linux on an external HDD, some of these files and folders contain the characters "::" I want to remove these characters from all files and folders on ...
0
votes
1answer
5k views

Zip2john issue on ubuntu 18.04 LTS

Problem: root@ITSASECRET:~/src/john/run# zip2john : command not found I want to add that the srcript is in the directory. I also had a lot of trouble installing Rexgen as well as Bison and ...
8
votes
3answers
6k views

How to set default opening folder for Nautilus file manager?

How do I configure Nautilus to open at my Documents folder instead of my home folder? I've scoured this site and found answers instructing users to edit the /usr/share/applications/nautilus.desktop ...
0
votes
0answers
13 views

How i can create a shortcurt of htdocs folder on ubuntu 18.04.3 desktop?

I don't know how to create a shortcurt on desktop.it's very important for me.and i also want to create new folder on htdocs.if anyone know that please help me.
0
votes
1answer
674 views

Samba Server/Create Mask Isn't Right with New Folder Permissions

I have a quandry. I've copied a section from my smb.conf, and also the permissions that actually appear when a user makes a new folder. Users aren't getting the permissions on folders that smb.conf's ...
3
votes
2answers
1k views

How to get rid of templates folder

I have a simple problem: Whenever I delete the templates folder in my home directory (/home/[username]/ in case that info is of use) it seems to come back. It contains nothing and I have no use for it....
0
votes
2answers
47 views

What is the difference between themes stored in “/usr/share/themes” and “~/.themes”?

I was using some themes and wondered why there are two places where themes can be stored: /usr/share/themes and ~/.themes. What is the difference between those two places? In which of those should I ...
0
votes
2answers
6k views

Installation directory of thunderbird

I want to lock the settings to use by user so that i find my thunderbird installation directory but i couldn't. please help me and tell me the installation directory of thunderbird in ubuntu 12.04.
10
votes
3answers
18k views

Split contents of a directory into multiple sub directories

I have a directory which contain more than thousand images. I want to split the files in to multiple sub directories, each containing 100 files. How do I do this?
0
votes
1answer
140 views

Directory locations when using WSL

I'm new to the Ubuntu world and I need some help. (Windows 10, Ubuntu 18.04 LTS, x64 system type) I created a directory called "Submarine" using this : mkdir Submarine I want the directory "...
0
votes
1answer
66 views

Creating a folder shortcut on Desktop using command line [duplicate]

I know I can create a folder's shortcut by pressing Ctrl and shift, but I wonder how to do it in a command line.
12
votes
7answers
17k views

Can't open desktop folders by double-clicking on Ubuntu 17.10

When I try to open folders (and the trash can) by double-clicking on them on the desktop nothing happens. However, when I right-click on the folder, select "Open with another application", and then ...

1 2 3 4 5 33