You are not logged in.

#1 2021-12-23 16:40:26

sudoku
Member
Registered: 2012-10-31
Posts: 95

[SOLVED] Is "man cd" outdated?

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

#2 2021-12-23 16:55:24

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,845
Website

Re: [SOLVED] Is "man cd" outdated?

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

#3 2021-12-23 17:07:08

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED] Is "man cd" outdated?

Offline

Board footer

Powered by FluxBB