.. index:: mkdir, cd, pwd, rmdir .. _dir: Creating, Deleting and Managing Directories --------------------------------------------- :t:`Linux for Programmers and Users`, Section 3.17, 3.21 .. seealso:: :ref:`pwd` .. _cd: cd ^^ .. index:: cd .. program:: cd .. describe:: cd A shell built-in command to change working directory. With no directory listed, :command:`cd` returns to :ref:`home`. SYNOPSIS :command:`cd` [DIRECTORY] .. seealso:: Manual pages for :command:`pushd` and :command:`popd` mkdir ^^^^^ .. index:: mkdir .. program:: mkdir .. describe:: mkdir Create the DIRECTORY(ies), if they do not already exist. SYNOPSIS :command:`mkdir` DIRECTORY... rmdir ^^^^^ .. index:: rmdir .. program:: rmdir .. describe:: rmdir Remove the DIRECTORY(ies), if they are empty. SYNOPSIS :command:`rmdir` DIRECTORY... Example using :command:`mkdir`, :command:`cd`, :command:`pwd`, and :command:`rmdir` :: $ mkdir first $ cd first $ pwd /usr1.b/bobk/first $ cd $ pwd /usr1.b/bobk $ cp myfile myfile2 $ ls my* myfile myfile2 $ rmdir first rmdir: first: Directory not empty $