What is directory in Linux & What Is Parent Directory In Linux?

pradeep.pawar
@pradeeppawar-RAMDdD โ€ข Oct 26, 2024

What is a directory in linux and what is parent directory? Are they folders or files?
Also what are pathnames in linux. I really can't get these things in my head.๐Ÿ˜จ
please help

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • Neeraj Sharma

    @neeraj-iAaNcG • Aug 6, 2013

    pradeep.pawarWhat is a directory in linux and what is parent directory? Are they folders or files?
    Also what are pathnames in linux. I really can't get these things in my head.๐Ÿ˜จ
    please help

    Yes directories are analogous to folders in windows. Parent directory is the directory in which the child directory resides. Suppose the directory path is /home/support/xyz then support is the parent directory of xyz.

    Path names are the paths that lead to a particular directory. there are 2 types of paths
    -> absolute path: complete path from root to the directory
    -> relative path: path from current directory to another directory

    Let me know if you still have doubts

  • pradeep.pawar

    @pradeeppawar-RAMDdD • Aug 6, 2013

    Nick_SharmaYes directories are analogous to folders in windows. Parent directory is the directory in which the child directory resides. Suppose the directory path is /home/support/xyz then support is the parent directory of xyz.

    Path names are the paths that lead to a particular directory. there are 2 types of paths
    -> absolute path: complete path from root to the directory
    -> relative path: path from current directory to another directory

    Let me know if you still have doubts

    Thanks Nick for such a explanation.
    But then can directory be considered as a folder like in windows

  • Jeffrey Arulraj

    @jeffrey-xA7lUP • Aug 6, 2013

    pradeep.pawarThanks Nick for such a explanation.
    But then can directory be considered as a folder like in windows

    Directory is a folder as in Windows mate

    Root Directory is like My Computer From which all folders can be easily opened

    PS: Just an example

  • pradeep.pawar

    @pradeeppawar-RAMDdD • Aug 6, 2013

    ConquerorDirectory is a folder as in Windows mate

    Root Directory is like My Computer From which all folders can be easily opened

    PS: Just an example

    Thanks
    #-Link-Snipped-#

  • pradeep.pawar

    @pradeeppawar-RAMDdD • Aug 6, 2013

    pradeep.pawarThanks
    #-Link-Snipped-#

    what folder are they in?

  • Abhishek Rawal

    @abhishek-fg9tRh • Aug 6, 2013

    pradeep.pawarThanks
    Conqueror, then all software and programs we get from software centre installed , are they in root itself

    Root includes every directory : /boot,/lib,/mnt,/dev etc etc.
    Don't mix up '/root' with '/' : /root is SU home directory, while / is root of entire File system.

    But applications are usually stored in :
    /usr/bin
    /bin
    /sbin
    /usr/sbin

    You can locate the desired binaries using 'which' or can locate all installed binaries in /usr/bin using 'ls'.
    example :
    Screenshot from 2013-08-07 05:47:37

    For more information on Linux File-system : Read #-Link-Snipped-#

    PS : There might be grammatical mistake & book is still not completed. But whatever information it contains, is correct.

  • pradeep.pawar

    @pradeeppawar-RAMDdD • Aug 6, 2013

    Abhishek RawalRoot includes every directory : /boot,/lib,/mnt,/dev etc etc.
    Don't mix up '/root' with '/' : /root is SU home directory, while / is root of entire File system.

    But applications are usually stored in :
    /usr/bin
    /bin
    /sbin
    /usr/sbin

    You can locate the desired binaries using 'which' or can locate all installed binaries in /usr/bin using 'ls'.
    example :
    Screenshot from 2013-08-07 05:47:37

    For more information on Linux File-system : Read #-Link-Snipped-#

    PS : There might be grammatical mistake & book is still not completed. But whatever information it contains, is correct.

    Thanks