课程: Practical Linux for Network Engineers: Part 1

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Linux prompt basics

Linux prompt basics

- [Instructor] In this example I've SSHed from Ubuntu-1 to the Ubuntu server. So hence my username is david@ubuntuServer. I'll exit out of the SSH session. Notice my username now is root@Ubuntu-1. This is my username. In other words this is the portion before the at sign. This is the host name of the system that I'm currently working on. So I'm currently on Ubuntu-1, which is a Docker container, and I can SSH to the Ubuntu server, and notice the username has changed because I logged on with a different username on the Ubuntu server. This is currently where I am in the system. Tilde indicates home directory. So I'm in the home directory of david. If I use this command, cd root, I'm now in the root directory. So pwd shows me that I'm in root. Ls shows me the contents of root. I could go to etc or et C as an example. Notice the prompt changes. Go to network. Notice the prompt has changed again. So I'm currently in this directory on this server, and I'm accessing the server using this…

内容