Utilizo los siguientes comandos para cambiar el directorio y generalmente funciona bien.
[max@localhost max]$ cd /
[max@localhost /]$ cd /home/max/
[max@localhost max]$ pwd
/home/max
Pero hoy, por error, ingresé dos en //lugar de uno /y para mi sorpresa, también funciona. Entonces, probé con varios ejemplos y todos funcionan bien sin dar ningún tipo de error.
[max@localhost /]$ cd /home///////////////max/////////////////////
[max@localhost max]$ pwd
/home/max
[max@localhost max]$ cd /
[max@localhost /]$ cd /////////////////home/max///////////
[max@localhost max]$ pwd
/home/max
¿Qué significan estas barras diagonales ( /y ///////) y qué hacen y representan?

path1 + "/" + path2y funcionará tanto sipath1tiene una barra inclinada final como si nopath2.