Ubuntu Linux common commands

1. Check Ubuntu Linux is how many bits:

   getconf  LONG_BIT

 

2. Look at Ubuntu Linux version:

   cat  /etc/issue    或   lsb_release  -a

 

3. Review the Ubuntu Linux kernel information:

   uname  -a

 

4. Modify the root password:

   passwd

 

5. Check all users of Ubuntu Linux:

  cat  /etc/passwd

 

6. Add a user in Ubuntu Server end zhang

  adduser  zhang

  Require password ...

 

7. View the ip address:

   ifconfig  -a

 

Guess you like

Origin www.cnblogs.com/duanqibo/p/11203006.html