0 votes
1 view
in Big Data Hadoop & Spark by (45.2k points)

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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !