I mean, there isn't any function written in ~/.bashrc which can be used for showing date.
Asked
Active
Viewed 248 times
-1
1 Answers
1
You have functions and alias'es in your .bashrc or .profile implementing different features, and you have built-in functions in bash (or other shells). And some functionality are implemented as binary programs in /bin, /usr/bin or elsewhere.
You can use the command type
to show where a 'program' is:
$ type date
date is /bin/date
$ type test
test is a shell builtin
$ type ls
ls is aliased to 'ls --color=auto'
$ type cd
cd is a shell builtin
$ type type
type is a shell builtin

Soren A
- 6,799
date
command can be used from terminal.
– Mustafa Yılmaz Feb 07 '17 at 08:51man date
info coreutils 'date invocation'
date
in the terminal. – karel Feb 07 '17 at 09:09