Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduction to shell: How to exit the shell #332

Open
mariehidjo opened this issue Mar 10, 2023 · 1 comment
Open

Introduction to shell: How to exit the shell #332

mariehidjo opened this issue Mar 10, 2023 · 1 comment

Comments

@mariehidjo
Copy link

mariehidjo commented Mar 10, 2023

I am kindly suggesting the following subtopics under the 'introducing the shell' topic in INTRODUCTION TO THE COMMAND LINE FOR GENOMICS.

How to change your passwords
It is usually ideal to reset your password if you want to for several reasons. Use the following command to do so:

  1. Open the terminal application by pressing Ctrl+Alt+T
  2. To change a password for user named XX in Ubuntu, type sudo passwd XX
  3. To change a password for root user on ubuntu Linux, run: sudo passwd root
  4. To change your own password for ubuntu, execute: passwd

How to quit the shell
Whilst working on your ubuntu terminal you can use the exit command to quit the shell where it's run.
Note: If your shell window has multiple tabs, then this command exits the tab where it's executed. Given that it's a build command, it's highly likely that you will not find a dedicated man page for exit. However, you can use the following command to access its documentation: help exit

To change your password for user, root and your own password use sudo followed by appropriate password command as describe above. The exit command can help you to quit your shell.

@p-j-smith
Copy link
Contributor

Hi @mariehidjo, apologies for the slow reply and thanks for the suggestions!

How to change your passwords

This is definitely a useful thing to know, especially for admins, but I think it is probably not a typical use case for most learners on this course (especially changing someone else's password or the root password - this would also mean introducing the concept of root too).

How to quit the shell

I agree this is useful if you have multiple tabs open, or if you want to log off a remote instance. However, it is already mentioned in the section Logging off a cloud instance in the Cloud Genomics lesson, which this lesson links to in the section How to access the remote server of episode 1. I think it's probably best to avoid duplicating too much content across the different lessons, but we could add a tip to the end of the section How to access the remote server that links learners to Logging off a cloud instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants