• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

login Command Examples in Linux

by admin

The login utility logs users (and pseudo-users) into the computer system. If no user is specified, or if a user is specified and authentication of the user fails, login prompts for a user name. Authentication of users is configurable via pam. Password authentication is the default.

If the file /etc/nologin exists, login displays its contents to the user and exits. This is used by shutdown(8) to prevent users from logging in when the system is about to go down.

login Command Examples

1. To login to the system:

# login 

2. To tell login not to destroy the environment:

# login -p 

3. To skip the second login authentication:

# login -f 

4. To display version information:

# login -V

5. To display help text:

# login --help

login command reads the /etc/login.defs configuration file.

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Increase the File Download Size Limit in Apache
  2. Unable to Run X Applications Through SSH in Linux
  3. How to uninstall rbenv from Ubuntu
  4. keyctl: command not found
  5. certutil: Manage keys and certificates in both NSS databases and other NSS tokens
  6. lsattr Command Examples in Linux
  7. pidstat: command not found
  8. isisdl Command Examples
  9. top Command Examples in Linux
  10. sesearch: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright