I'm from windows background. I wish to know where do all commands like
clear comes from in my terminal?
And are they scripts? In what language they have been written?
this depends:-) Some are internal commands of your shell, some scripts, some are compiled programs.
You can find out more with the
If you type
Now you can inspect what type of file /usr/bin/bash is:
Most of all , i can rather say ALMOST all commands came from UNIX , a Predecessor and fundamental mechanism Behind LINUX.
Most of the Utilities , like
Now coming to topic , these Commands or Utilities were mostly developed by GNU called Core GNU utilities .
You will find most of the basic commands from Core Utilities description page, said that , Linux is just a Name of Kernel, Whereas Ubuntu is an Entire Advanced Integrated OS of such utilities.
Commands are mostly written in C language , Shell is an Interpreter between kernel and Commands. Bash being the Best of them.
About scripts , not entirely they are not , for scripting purpose Python & Perl are used ,accessible in bash.
Note: In Ubuntu you will find Coreutils installed .
For inbuilt Clear command functionality in Bash shell you can use Ctrl+L
They are usually written in C, but they might also be ba/sh, python, perl, ... scripts (such
They are located in /bin /sbin /usr/bin /usr/sbin mainly and you can access them from anywhere (giving you the impression of being lower level commands) because they are in your PATH environmental variable.
Some of them are part of the functionality of the interpreter you are working at(I presume you are using