Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
in Big Data Hadoop & Spark by (45.3k points)
edited by
Could anybody let me know the advantages of su user to itself?

1 Answer

0 votes
by (16.8k points)

The su command is used to switch to another user, in other words change user ID during a normal login session (that is why it is sometimes referred to as switch (-) user by several Linux users). If executed without a username, for example su -, it will login as root user by default.

Browse Categories