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

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
2answers
76 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
80 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
18 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
23 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
35 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
28 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
69 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
12 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. ...
1
vote
2answers
112 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
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
2answers
44 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
99 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
64 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
60 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
79 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
100 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
35 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
33 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
61 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
61 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
34 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
546 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
36 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
198 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
25 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
44 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
124 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
56 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
41 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
243 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 ...
2
votes
1answer
34 views

How to change several directories' names?

I have some directories whose names I want to change to {00..16}. $ ls 'FVSFT1092A' 'FVSFT1092I' 'FVSFT1092B' 'FVSFT1092J' 'FVSFT1092C' 'FVSFT1092K' 'FVSFT1092D' '...
2
votes
2answers
48 views

Function that creates a file in a directory

I have 4 directories: dir1 dir2 dir3 dir4. I want to create a file in each directory. I know I can do this: touch file1.txt and then move it to dir1, then touch file2.txt then move it to dir2 but it ...
2
votes
1answer
43 views

Find files in unknown directory

I want to find a file in an unknown directory and then chmod it. Could you help with that please? So far I wrote find . -type f -name ".pdf" chmod {};
0
votes
2answers
653 views

Give user access to directory in another user's home folder

I have a directory inside my home folder that I'd like another user to be able to access. I created a group for him and we both joined it, and I did sudo chgrp -R group folder/ He still cannot get ...
3
votes
0answers
32 views

Meaning of two-people icon on folders

What does this folder icon, with the image of the two people, mean?
1
vote
0answers
25 views

Restore Nautilus GUI and disappeared desktop folders

I am a beginner Ubuntu user and I have a problem with Nautilus. On a fresh Ubuntu install I installed Arduino IDE, Matlab R2019b and put via usb just one external hard disk and my smartphone for a ...
1
vote
1answer
45 views

Pictures folder disappeared from favorites in file browser

I recently removed the defautlt Pictures folder and replaced it with a symlink to a different directory. Now it's no longer in the favorites bar on the left in the file manager. I added it manually ...
0
votes
0answers
32 views

The diffrence between / and // dir? [duplicate]

As in title, what is the diffrence between two of those? I've ls-ed both of them but both point to filesystem root.
0
votes
0answers
13 views

Lost the ability to change individual folder icon

Ubuntu 18.04, Gnome desktop - no longer able to set a new folder icon via Properties. Goes through the motions, but icon does not change. This went away after a recent (September 2019) software update ...
8
votes
2answers
2k views

In Windows Terminal running Ubuntu, how can I make the default directory be ~ (/home/jake) instead of / (root)?

I have both Windows Terminal and Ubuntu installed from the Microsoft Store inside of Windows 10 (I don't know if this is WSL Version 1 or Version 2. The wsl -l -v command failed.). My default ...
1
vote
0answers
69 views

Thunar sometimes transforms a folder to a file in Xubuntu 16.04, 16.10, 18.04 LTS, and 18.10

I have some scripts that creates folders by using mkdir: ... mkdir bin cd bin mkdir make ... It works perfectly most of the time. However, for unknown reasons, sometime, the just-created folders ...
0
votes
1answer
358 views

What is “failed to create symbolic link” error?

I am trying to create symbolic link for Firefox using this command: $ sudo ln -s /opt/firefox/firefox /usr/lib/firefox/firefox ln: failed to create symbolic link '/usr/lib/firefox/firefox': No such ...
0
votes
1answer
58 views

python installed in another directory

I am using ubuntu 16.04. Ubuntu 16.04 comes with python2 and python 3.5 and Apparently I wanted python3.7 so I followed some instructions from a site and installed python3.7 manually by compiling its ...
-1
votes
2answers
56 views

Finding the image file name and renaming with parent folder names

I have this file structure. I wanted to use the image filename appended with the parent folder names. Before: ├── ak │   ├── adak │   │   ├── Hello\ World456 │   │   ├── cup-printing │   │   │   └─...
0
votes
0answers
14 views

Ubuntu Wont Acknowledge Changes to Files/Folders in a Directory

I only recently started to learn how to program with C and have been taught basic commands in the terminal (e.g. ls, cd, cd .., pwd, gcc, rm, etc.). This is the directory I'm currently in. My ...
0
votes
3answers
79 views

Copying subfolders to new folders with same superfolder names

Please feel free to direct me to past forum posts that have addressed this question, but I haven't been able to find them so far. I'd like a code I can use in Terminal that allows me to accomplish ...
0
votes
0answers
90 views

How to exclude folders from downloading using wget?

How can i exclude folders from being downloaded using wget ? For example if i wanted to download all of the files and folders of a subfolder: https://index.org has the following folders Folder1 -...
2
votes
1answer
58 views

Merging individual files from two folders sequentially (never asked question)

I need to merge the contents of two folders sequentially into individual destinations. Here is what i have. A,B,C,D,E,F are individual files. Folder 1: A B C ... Folder 2: D E F ... At the output i ...