DEV Community

Discussion on: xtrlock

Collapse
maxart2501 profile image
Massimo Artizzu

Enter xtrlock(1).

My question is a bit off-topic. What's that (1), or more in general (#) that comes right after the name of a command?

I've seen it on multiple times about *nix command line tools, but growing with a Windows background I've never got the grasp of it 😅

Collapse
lesha profile image
lesha 🟨⬛️

Short answer: manpages
Long answer: superuser.com/questions/297702/wha...

Collapse
maxart2501 profile image
Massimo Artizzu

So it's essentially a way to tell what kind of command we're talking about, is it?

Thread Thread
lesha profile image
lesha 🟨⬛️

I guess it just answers the question "are we talking about a program or a function in a C library" in case they have the same name and have direct relationship with each other.

The example is there, mkdir(1) is a program that creates directories. This program's primary objective is to use mkdir(2), a function in sys/stat.h