A
A
Alex vak2017-07-24 17:44:16
linux
Alex vak, 2017-07-24 17:44:16

What command to type in the console to find out what type it is (for example, Bash)?

What command to type in the console to find out what type it is (for example, Bash)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vyacheslav, 2017-07-24
@Firik67

echo $SHELL

A
Alexey Cheremisin, 2017-07-24
@leahch

the command is called file

[email protected]:~# file /etc/init.d/hwclock.sh
/etc/init.d/hwclock.sh: POSIX shell script, ASCII text executable
[email protected]:~# file /sbin/hwclock
/sbin/hwclock: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=d536e4f186b5ed702a39ac54f08a2f85ff5c9308, stripped

F
fdrwitch, 2017-07-25
@fdrwitch

man command name or
command --help
a, reverse task, forgot command, but something about type
apropos keyword
apropos type
database of header descriptions of all programs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question