# consoletype command alternative

**URL:** <https://forums.suse.com/t/consoletype-command-alternative/26478>\
**Category:** SLES Configure-Administer\
**Created:** [December 16, 2014, 9:47am UTC](https://forums.suse.com/t/consoletype-command-alternative/26478 "2014-12-16T09:47:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngsblr](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@ngsblr](https://forums.suse.com/u/ngsblr)\
**Post date:** [December 16, 2014, 9:47am UTC](https://forums.suse.com/t/consoletype-command-alternative/26478/1 "2014-12-16T09:47:52Z")

</div>

Hello,

what is the alternative for the `consoletype` command in SLES ?

Thanks in advance,  
ngsblr

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [December 16, 2014, 9:27pm UTC](https://forums.suse.com/t/consoletype-command-alternative/26478/2 "2014-12-16T21:27:18Z")

</div>

It might help to know what ‘consoletype’ does elsewhere, to find an  
equivalent here. If it does not exist in SLES, then that makes it hard to  
analyze.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [December 29, 2014, 10:22pm UTC](https://forums.suse.com/t/consoletype-command-alternative/26478/3 "2014-12-29T22:22:08Z")

</div>

> [@](#):
>
> On Tue 16 Dec 2014 07:54:01 AM CST, ngsblr wrote:
> 
> Hello,
> 
> what is the alternative for the `consoletype` command in SLES ?
> 
> Thanks in advance,  
> ngsblr

Hi  
Here is the man page;  
[http://rpm.pbone.net/index.php3/stat/45/idpl/28046569/numer/1/nazwa/consoletype](http://rpm.pbone.net/index.php3/stat/45/idpl/28046569/numer/1/nazwa/consoletype)

Here is the c file for it (pulled from the src rpm);  
[http://paste.opensuse.org/14108009](http://paste.opensuse.org/14108009)

Running gcc consoletype.c -o consoletype works fine to build the  
executable and show either vt or pty, never checked serial.

–  
Cheers Malcolm Â°Â¿Â° LFCS, SUSE Knowledge Partner (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default  
If you find this post helpful and are logged into the web interface,  
please show your appreciation and click on the star below… Thanks!
