Unit - 3
Unix Commands
→ Login Commands :
1) Uname : Display about the system.
* Syntax :
$ uname
1) Uname : Display about the system.
* Syntax :
$ uname
| Option | Details |
|---|---|
| -a | Kernel name, network node host-name, kernel release date, kernel version, machine hardware name, hardware platform, operating system. |
| -s | Kernel name |
| -n | Hostname of the network node (current computer). |
| -r | Kernel release name |
| -v | Version of kernel |
| -m | Machine hardware name |
| -p | Types of processor |
| -i | Platform of hardware |
| -o | Operating system name |
2) Passwd :
The passwd command changes passwords for user accounts.
A normal user may only change the password for his / her own account, while the superuser may change the password for any account.
| Options | Details |
|---|---|
| -d (-delete) | Delete a user's password (make it empty). |
| -e (-expire) | Immediately expire an account's password. |
| -l (-lock) | Lock the password of the named account. |
| -u (-unlock) | Unlock the password of the named account. |
* Example :
$ passwd : change your own password.
* Output :
$ passwd
→ changing password for ubuntu.
$ passwd : change your own password.
* Output :
$ passwd
→ changing password for ubuntu.
No comments:
Post a Comment