Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

202
Visualizações
Is the directory structure used in Unix file system a directed acyclic graph?

I have gone through some materials available on the web regarding the unix file system but I couldn't get any proper answer.In some materials it is mentioned that the directory structure used in unix file system has a hierarchical directory structure whereas in some others it has been mentioned that actually it's a directed acyclic graph due to the presence of hard links.It is obviously hierarchical but DAG will be a better term to describe it.Can anyone explain whether it is really a DAG or hierarchical or tree structured?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

It's a limited type of directed graph. If we leave aside symbolic links for a moment, then the directory structure of the filesystem is a tree, because directories cannot be hard-linked. The joint structure of directories and files is a type of restricted DAG, because the things at the leaves, i.e. the directory entries, may be hard links.

If symbolic links are taken into account, then the structure is a general graph, but because symlinks can always be recognized as such, cycles can be broken simply by treating links as a special type of file (i.e. use lstat instead of stat).

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda