Questions tagged [directory-structure]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
56 views

Compare files in directories with different structures and show differences (20.04)

While this may sound like a task that could be accomplished by rsync, diff and the likes, I haven't managed to succeed. AFAIK, these tools take the directory structure into account when comparing the ...
0
votes
1answer
58 views

Safe to remove folders for uninstalled packages in /usr and var/lib/dpkg?

So I'm fairly new to Linux as my general desktop OS. I've removed and purged some programs that I tried and ended up not liking. I noticed there was a few files left over for some of these programs (...
0
votes
0answers
30 views

Unable to access windows 10 directories in ubuntu 20.10

I have ubuntu and Windows 10 in dual boot. It was working fine till yesterday but today I am not able to copy or paste any of the files of windows directories in ubuntu. I tried to disable fast ...
0
votes
0answers
34 views

how to run program in a temporary directory

How do I run a program in a temporary directory so that when I exit the program, all files generated by the program (log, cookies) etc would be gone (when the temporary directory got cleared out)? I ...
0
votes
0answers
81 views

Apps for NCERT Books

Is any desktop application available for NCERT books? There is the availability of windows application. Structured (subject wise, topic wise) downloaded books also preferred. Android Emulator is an ...
-1
votes
1answer
120 views

What is the default permission to linux structure? I set permission 777 but I want to set defautl permission

I make a mistake, originally I set 777 permissions to all my root structure folder (I had a login loop), but I was able to change with 755 (root owner and root group). For safety reasons, I would to ...
0
votes
1answer
388 views

How to prevent an application from creating folder in my home directory?

It's really annoying that some applications are polluting my home directories. For example, MindMaster, an application developed by Edraw Inc., always creates a folder called Edraw in my home ...
0
votes
1answer
33 views

Recursively count all files ignoring certain directory paths

I want to recursively count all files contained in root ignoring all files contained in the following directory paths: root/*/build root/*/*/*/build how can I accomplish this?
0
votes
0answers
49 views

What should I do with a program directory for its installation?

I downloaded a tar of Ovito, now I don't how to continue. The principal idea is to place this in /opt, but is this a good idea? The directory structure is like the following ovito-2.9.0-x86_64 ├── ...
0
votes
1answer
43 views

cli can't find folder that is right there

I'll admit that i'm a noob at ubuntu, i only have it installed for 2 days. i wanted to delete the stacer config folder through the terminal but it says it can't find it, even when i typed rmdir with ...
0
votes
2answers
37 views

What is a good location for a server-like application to save its permanent data?

I have an application that needs to save some session information etc permanent data. What would be a good system directory for this? Something under var/ ?
5
votes
1answer
5k views

Where is noatime safe to use?

I am trying to optimize my new fs layout, and I wondered, where is it safe to use noatime? I understand that e.g. mutt uses the access/creation/modify time, and whatever else may be using that, in ...
0
votes
0answers
2k views

Why does diff in Terminal say “No such file or directory” when the dir. exists?

I am trying to use 'diff' in Terminal in a way that is very similar to half a year ago, but now it doesn't work. I get the "No such file or directory" error even though the directories obviously exist....
1
vote
0answers
327 views

GitKraken access to /disk2/ missing [duplicate]

I've installed GitKraken from Snap. When I try to open a repository from my second disk, I see no /disk2/ directory in the list of directories under /. I suspect this is caused by application ...
1
vote
2answers
2k views

How do I change directory to get into a hidden folder/directory?

I have tried the following and I really don't understand the result. Can someone help? ~$ pwd /home/djj375 ~$ ls -ald .docker drwx------ 2 root root 4096 May 21 14:33 .docker ~$ realpath .docker /...
2
votes
2answers
4k views

Difference between /usr/local and ~/.local [duplicate]

I install .zip / .tar.gz programs in ~/.local/bin, but Ubuntu have /usr/local directory with content same as in ~/.local. So, what is difference between this directories except for sudo access?
9
votes
1answer
11k views

Why does /usr/local/bin not exist on my (Ubuntu 16.04) system?

I've just reinstalled Ubuntu 16.04 on my machine, and I'm in the process of installing everything I had installed previously. This includes a few programs that I put in /usr/local/bin, but that ...
0
votes
0answers
35 views

“remap” (probably wrong word) my /opt folder? [duplicate]

Long ago when I setup my Linux server, I installed the OS on a rather small SSD having intended on keeping all the large data on NAS drives. I didn't realize my /opt folder would get so large. It ...
1
vote
1answer
131 views

How can I rename a directory tree to match a tree saved in a file?

I have an old directory-tree-file created using find . -type d >old.txt. Now I want to rename an existing tree that has the same exact structure to mach the old tree. This question is related to ...
2
votes
1answer
100 views

Recursively number directories

I have the following directory structure: $ directory tree Data Data ├── Mercury ├── Venus ├── Earth │ ├── Australia │ └── Asia │ └── Japan | └── Hokkido ├── Mars ├── ...
0
votes
1answer
86 views

linking homedirectory

I run ubuntu 16.04 on sdc, with a home directory of some 156Gb. I recently installed Ubuntu 17.04 on sda. I want to use the home directory on sdc as my home directory on sda, but there is only 50 Gb ...
4
votes
1answer
11k views

How do I free up space of var

Still a greenee at Linux as there are so many different approaches/ways to do the same thing. When I attempt to update to Ubuntu 17 I receive: "The upgrade has aborted. The upgrade needs a total of ...
1
vote
1answer
35 views

Why doesn't dpkg -L show files under /usr/lib for this package?

I've installed the golang-1.8 package from this ppa and I can see that it's installed some stuff under /usr/lib, namely: /usr/lib$ ls -lha go-1.8/ total 48K drwxr-xr-x 4 root root 4,0K Abr 24 01:39 ...
0
votes
2answers
796 views

Linux directory structure for new application

I am writing a new Python application that I intend to distribute to several colleagues. Instead of my normal carefree attitude of just having everything self contained and run inside a folder in my ...
0
votes
1answer
31 views

When would multiple `///` be used between sub-directories?

I was digging through /var/log/plymouth-debug.log and spotted this line: [main.c:716] get_cache_file_for_mode:returning cache file '/var/lib/plymouth//boot-duration' I thought it was a typo so typed ...
8
votes
4answers
2k views

Remove all directories from within a parent directory except one and its descendents

I want to remove directory B and D. But i want to keep C and all its descendent files and directories. What's the command to remove all children directories of a parent directory except one directory ...
2
votes
2answers
3k views

www directory is not there when I open var

I am using Ubuntu 14.04. All the directories present in var are listed below: backups crash local log metrics run tmp cache lib lock mail opt spool Why is the www directory ...
0
votes
2answers
739 views

Moved /home to another partition with pre-existing files, how to keep existing directory structure on partition

Ok so this is the scenario. I have a separate partition from my Ubuntu partition. I use this 500GB partition to store important data to keep it all in one place. On the 500GB partition I have a MISC ...
9
votes
2answers
9k views

Save result data command tree [closed]

I need to save all of the results of the command tree in a txt file. The objective is to save this data in a data base for later work in php and html. The main objective is to expose the structure on ...
22
votes
1answer
31k views

What's the “/sys” directory for?

A while ago I noticed this directory that I had not ever seen before, /sys. I researched a bit and read that "modern Linux systems" often have this directory, and that it manages devices. I thought ...