Questions tagged [directory]

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

Filter by
Sorted by
Tagged with
-2
votes
0answers
23 views

Permision denied when installing OpenStack using DevStack on Ubuntu 18.04 desktop [duplicate]

After I run ./stack.sh command, I get following error: env: ‘/opt/stack/requirements/.venv/bin/pip’: Permission denied +inc/python:pip_install:1 exit_trap +./stack.sh:exit_trap:536 ...
0
votes
0answers
18 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....
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
60 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
23 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
0
votes
1answer
30 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 */; ...
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
60 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 ...
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
29 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/...
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
0
votes
1answer
51 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 ...
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
43 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
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
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....
0
votes
3answers
77 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-...
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
119 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 ...
-1
votes
0answers
14 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
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
1answer
143 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.
0
votes
0answers
72 views

Why doesn't ls list all the directories? [duplicate]

I am a complete beginner in Ubuntu I need little help. After dual booting, my system with Windows and Ubuntu I install the google chrome using the terminal window command with some source on the web. ...
1
vote
1answer
101 views

Find and replace folder and file names with Windows incompatible characters

My Ubuntu (18.04) drive is synchronised with a Windows drive. Some of my folder and file names in Ubuntu contains characters not allowed in Windows and this causes issues during sync. I want to find ...
4
votes
2answers
124 views

How to remove all files without deleting the directory? [duplicate]

I have a sample dir as follows: /path/to/dir/ - f1.txt - f2.txt - f3.txt I want to clear or remove all the files under /path/to/dir without actually deleting the directory /path/to/dir itself. How ...
0
votes
0answers
37 views

Change Files folder icon to Ubuntu logo icon?

what's the best way to just change the Files folder icon to Ubuntu logo icon ? like this icon that I have ?
0
votes
1answer
51 views

How can switch user when login to ubuntu server

Question: How can I switch user automatically when I log in to an Ubuntu18.04 server? For example: I want to switch from ubuntu user to new_user user: # from ubuntu@myserver:~$ # to new_user@...
0
votes
1answer
62 views

Traverse through all folders and renaming all files inside folder sequentially 1.*, 2.*, 3.*

This does not work... I am still rather bad with sh scripts. for imageFolder in *; do [ -d $imageFolder ] && cd "$imageFolder" && for file in *.* do ...
0
votes
0answers
64 views

copy all folders saved with date to another location

I have 100 folders and every folder has several subfolder saved with dates. I want to copy folder structure as well as contents basis a specific date provided by the user. Further, the same date ...
0
votes
0answers
36 views

How do I compare two folders to see if they have the same files and list the common files into text file? [duplicate]

I have two directories which may contain the same files as the other. I want to know which files are common to both directories so that I can delete the duplicate files and save space.
8
votes
1answer
552 views

When you type dir in terminal, the name file with space separate with symbol backslash \

Terminal Text $ cd LALALA ~/LALALA $ dir la\ la\ 1 la\ la\ 2 ~/LALALA $ Directory Image When I use dir command in terminal, the list of file show \ (backslash) to separate their word (see: ...
0
votes
0answers
45 views

How to navigate folders up and down (Files) in Ubuntu via keyboard?

In Ubuntu 18.04, after having opened a folder with Files, I can sure navigate through the folder's path as I used to do wit previous versions of Ubuntu, but when I have reached the right folder and ...
-4
votes
3answers
200 views

How can I print file sizes recursively, reporting permission errors?

I have to make a script which prints the sizes of all .conf files from /etc recursively in a specified file, and that prints the errors caused by the lack of permission in another file. I don't know ...
2
votes
0answers
28 views

How can I set the user-dirs to a directory that is only available after ubuntu boots?

I currently have an encrypted (using Veracrypt) storage partition that I share between windows and ubuntu (that way I share the same files between operating systems and can backup all my files more ...
2
votes
1answer
45 views

How to copy files containing a specific phrase to another directory?

I have a huge directory with log-files and want to move files WITH a specific "phrase" in it. i.e. log1.csv ------ containing word "xzy" log2.csv ------ containing word "abc" log3.csv ------ ...
4
votes
1answer
126 views

Remove folder if it has another folder with the same started numbers

I have some folders that have been created in error. I would like remove these folders. ¬ 636 ¬ 636.empty ¬ 637 ¬ 638.empty ¬ 639 ¬ 639.empty In this situation I would like to remove 636.empty and ...
1
vote
1answer
57 views

Is the description of the '--dereference-command-link-symlink-to-dir' option in the GNU Coreutils manual for the ls utility wrong?

Below is the text in question from the manuaul. --dereference-command-line-symlink-to-dir Do not dereference symbolic links, with one exception: if a command line argument specifies a symbolic ...
0
votes
1answer
45 views

How to find files in subfolders from txt file and copy them?

I have a txt file that include only the names of files that are in different sub-folders, I'm trying to write a function that will find this files and copy them to specific folder. This is an example ...
0
votes
0answers
293 views

Directory error

So I installed Ubuntu 19.10 with its included GNOME environment. I installed Steam and some other programs and games, and everything was working as it was meant to. I then decided I missed Unity for ...
0
votes
1answer
295 views

How to list all pdf files in a directory, sorted in reverse alphabetical order, with bash?

I have a directory called all_files. My script is in the main directory main_dir (all_files is a subdirectory of main_dir). all_files contains pdf files and only 1 docx file. I want to output all the ...

1 2 3 4 5 33