# Use Linux Screen for Console Access

**URL:** https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081
**Category:** Lessons Discussion
**Created:** [December 26, 2016, 10:28pm UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081 "2016-12-26T22:28:45Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 26, 2016, 10:28pm UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/1 "2016-12-26T22:28:45Z")

</div>

This topic is to discuss the following lesson:

> **[Use Linux Screen for Console Access](https://networklessons.com/miscellaneous/use-linux-screen-console-access)**
>
> This lesson explains how to use Linux Screen for Console access. Screen is a great tool to run something in the background when you connect through SSH.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [July 4, 2014, 4:57am UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/2 "2014-07-04T04:57:48Z")

</div>

Hi Rene  
WHy do not you also write about Linux Certification, you have potential and lot of people will be very pleased with you. Think about it.  
Regards  
Mario Rosario

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [July 4, 2014, 7:52am UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/3 "2014-07-04T07:52:07Z")

</div>

Hi Mario,

Thanks, I might do it in the future but first I have plenty of Cisco material I want to write about 🙂

Rene

---

<div class="post-metadata">

### Author: ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)
#### Post date: [January 28, 2020, 8:46am UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/4 "2020-01-28T08:46:40Z")

</div>

Hi Rene,

Do you know how in linux is possible to save the output from the console to a file.txt?

Thanks

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [January 29, 2020, 5:55am UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/5 "2020-01-29T05:55:11Z")

</div>

Hello Giovanni

In Linux, the command `script` will do what you are asking for. Take a look at the [man page for this command](http://man7.org/linux/man-pages/man1/script.1.html).

In short, you can type `script output.txt` and all subsequent commands and output will be saved to the output.txt file. Here is an example of the commands you can use:

```
$ script output.txt
Script started, file is output.txt

$ ls
output.txt testfile.txt foo.txt

$ exit
exit
Script done, file is output.txt

```

You can then read the output.txt file which will have all of the CLI commands and outputs you saw on the terminal.

I hope this has been helpful!

Laz

---

<div class="post-metadata">

### Author: ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)
#### Post date: [January 29, 2020, 8:47am UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/6 "2020-01-29T08:47:37Z")

</div>

This is great, thanks Laz

---

<div class="post-metadata">

### Author: ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)
#### Post date: [February 7, 2020, 8:22pm UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/7 "2020-02-07T20:22:55Z")

</div>

Hi,

At work I’ve encountered an issue with the connection of my notebook to a cisco switches with the console cable + serial-\>usb adapter.  
I’m not be ablte to find /dev/ttyusb0.

I assume that is not an hw issue because it works well on windows and my system can detect it.

```
sudo lsusb 
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0bda:57f3 Realtek Semiconductor Corp. 
Bus 001 Device 002: ID 04ca:3015 Lite-On Technology Corp. 
Bus 001 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

```

I’ve noticed that if I try the same command with an Usb-\>MiniUsb console cable for my 3560CG at home I’ve not the problem and so I can connect correctly on my switch.

Can you help me?

---

<div class="post-metadata">

### Author: ![Giovanni](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/g/7ea924/32.png) [@Giovanni](https://forum.networklessons.com/u/Giovanni)
#### Post date: [February 10, 2020, 10:06am UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/8 "2020-02-10T10:06:14Z")

</div>

Ok I think I solved.

Don’t know why but my Ubuntu not mount /Dev/ttyUSB0 when I plug the console cable.

I’m not sure what is changed but now IF I try to force the connection ( without TAB ) it is correctly mounted and works

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [February 10, 2020, 10:10am UTC](https://forum.networklessons.com/t/use-linux-screen-for-console-access/1081/9 "2020-02-10T10:10:02Z")

</div>

Hello Giovanni

I was about to do some research on this one, but it’s good to hear that you’ve solved it. Thanks for posting it and letting us know!

Laz
