You are not logged in.
The synopsis of "$ man cd" is
cd [-L|-P] [directory]
but "$ cd --help" gives me more options:
cd [-L|[-P [-e]] [-@]] [dir]
There's a difference also between https://linuxcommand.org/lc3_man_pages/cdh.html and https://man7.org/linux/man-pages/man1/cd.1p.html
Is the cd manpage outdated or is there another explanation?
Last edited by sudoku (2021-12-23 19:00:10)
Offline
There is no 'cd' executable on Linux, your shell will have it's own implementation. From the syntax, I'd guess you're using bash, so
$ man bash | less -p "cd \["
will give you the manpage extract for that shell.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline