clear
is a linux command.
deadeye@nexus ~ $ which clear
/usr/bin/clear
deadeye@nexus ~ $ file /usr/bin/clear
/usr/bin/clear: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=125b29469045b30adcd4c134b9cf8e287ba13bea, stripped
deadeye@nexus ~ $
I use always
CTRL
+
L
, if I use the terminal.
cls
is and was always the command on MS-Systems to clear the screen.
The command was introduced with DOS.
So after the hell was frozen (Microsoft has a Linux Subsystem), they come closer to Linux.
They added support for SSH, Unix-Sockets. They offer different Linux Distributions for the Linux Subsystem.
They bought github. I guess the next step would be, to buy Canonical.
For compatibility reasons, you would see more and more supported GNU Linux commands on Windows.
The Powershell is on Windows, what /bin/bash is on Linux. But it's nice to have an intersection of commands in both worlds.
The return code comes from the started process itself. 0 == OK
The retval 1 comes not from 'clear', because it's not there. I think the invoked command/library/syscall
returns this value, if a command was not found. I don't use windows very often, so my knowledge how
processes on widows are started, is very limited.