Skip to main content

Questions tagged [directory-structure]

The tag has no usage guidance.

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

Renaming a LARGE numer of FOLDERS [duplicate]

I have been asked to take over a company site due to the..shall we say unusal and confusing things the last admin was doing...on several of the servers folders were named in the following way.....
Scorpion69's user avatar
6 votes
1 answer
531 views

How to move all directories containing e.g. mp3 into another directory?

I have plenty of directories containing MP3 files on my computer (Ubuntu 22.04), e.g. in my /home , /data , on some partitions, etc. I would like to regroup/consolidate them by moving all these ...
Vinz M's user avatar
  • 169
1 vote
1 answer
1k views

Any reason not to store AppImage files in /usr/local/bin?

I've seen in a few places the recommendation to store AppImage files in ~/.local/bin. I have always stored local executable files in /usr/local/bin. Should I treat AppImages differently? For example, ...
G.W.'s user avatar
  • 673
2 votes
1 answer
915 views

Where do I install portable apps?

I'm trying to install an app from tar.xz. It is portable, meaning I have only to unpack it to some directory and it should run from there as normal user. But where do I unpack it to? Google recommends ...
sigil's user avatar
  • 479
0 votes
1 answer
744 views

How do I move usr/ directory to /home/usr partition?

I've got dual boot Ubuntu 20.04 in my computer and some days ago I'm frequently getting the "free up disk space" advice in my root partition (20GB). When I check the disk usage, I can see /...
Santiago Vallejo's user avatar
0 votes
1 answer
46 views

rsync all subdirs with a given name, at whatever depth in the tree

I have several subdirs named admin in my tree, at various depths. I mean to rsync all of them (keeping the original depth and names of parents thereof), and exclude the rest of the tree. What should ...
sancho.s ReinstateMonicaCellio's user avatar
0 votes
0 answers
76 views

I cannot post process my output file .dat to .vtu (for Paraview) - Ubuntu

I'm new to understanding how Ubuntu works, I have managed to install a framework "TopOpt_in_PETSc_wrapped_in_Python" and PETSc on my ubuntu (via WSL). The readme from: https://github.com/...
Asif Malik's user avatar
1 vote
1 answer
93 views

Where should an Ubuntu admininstrator (user) mount directories not established by the distribution?

I have read the Linux Filesystem Hierarchy I found an operative statements to be For /mnt it notes some distributions create automount directories for floppies and cdroms there (and one should ...
pasha19's user avatar
  • 41
0 votes
1 answer
54 views

Run a command against multiple directories with slightly different names

I want to run a command to delete backups so that I can reduce disk usage. Not sure how, but * represents all the directories under the sites directory sudo rm -r sites/*/private/backups/* My ...
Dawoodjee's user avatar
  • 681
0 votes
1 answer
977 views

Copy files recursively with directory structure from source server to Target server

I am trying to copy the files modified from specific date to current date from Source server to target server with same directory structure. I have created the script for copying files from Source ...
Amala's user avatar
  • 1
0 votes
1 answer
69 views

Find files modified between 2 dates from Source directory(Recursively) and copy it into the Target directory with same directory structure

I am trying to copy the files from source to Target folder which has been modified between 2 dates, #!/usr/bin/ksh source=/home/Amal/DELTA/SOURCE target=/home/Amal/DELTA/TARGET cd $source find ./ -...
Amala's user avatar
  • 1
5 votes
2 answers
3k views

What's the most appropriate directory where to place development software shared between users?

For sharing data files and directories among users within the same machine, the /srv directory was recommended here: What's the most appropriate directory where to place files shared between users? ...
Manuel Jordan's user avatar
2 votes
1 answer
977 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 ...
Frozenpick's user avatar
0 votes
1 answer
527 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 (...
Abdul's user avatar
  • 1
0 votes
0 answers
251 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 ...
Posi2's user avatar
  • 143
-1 votes
1 answer
2k 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 ...
mitab's user avatar
  • 1
1 vote
1 answer
1k 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 ...
Chivyham Humber's user avatar
0 votes
1 answer
42 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?
Adam Griffiths's user avatar
0 votes
0 answers
71 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 ├── ...
Boris Valderrama's user avatar
0 votes
1 answer
75 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 ...
joniboy's user avatar
  • 63
0 votes
2 answers
1k 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/ ?
juzzlin's user avatar
  • 1,243
11 votes
1 answer
10k 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 ...
Zoltan K.'s user avatar
  • 233
0 votes
0 answers
4k 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....
Henrik R.'s user avatar
  • 1,069
1 vote
0 answers
329 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 ...
porton's user avatar
  • 95
1 vote
2 answers
6k 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 /...
DJJ375's user avatar
  • 111
6 votes
2 answers
9k 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?
Lev Lunev's user avatar
10 votes
1 answer
23k 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 ...
ash's user avatar
  • 2,137
0 votes
0 answers
38 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 ...
bcsteeve's user avatar
  • 1,289
1 vote
1 answer
211 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 ...
alien250's user avatar
  • 125
2 votes
1 answer
110 views

Recursively number directories

I have the following directory structure: $ directory tree Data Data ├── Mercury ├── Venus ├── Earth │ ├── Australia │ └── Asia │ └── Japan | └── Hokkido ├── Mars ├── ...
alien250's user avatar
  • 125
0 votes
1 answer
94 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 ...
jfh's user avatar
  • 51
8 votes
1 answer
29k 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 ...
Micdarj's user avatar
  • 81
1 vote
1 answer
47 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 ...
Felipe's user avatar
  • 479
0 votes
2 answers
2k 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 ...
Atomiklan's user avatar
  • 405
0 votes
1 answer
51 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 ...
WinEunuuchs2Unix's user avatar
8 votes
4 answers
3k 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 ...
Joe Saad's user avatar
  • 183
2 votes
2 answers
5k 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 ...
Simran Barnwal's user avatar
0 votes
2 answers
810 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 ...
SeeKeR's user avatar
  • 11
11 votes
2 answers
19k 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 ...
Edgar Oliveira's user avatar
30 votes
1 answer
48k 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 ...
Chev_603's user avatar
  • 1,676