Linux basic commands

Linux basic commands

How to check version Ubuntu
lsb_release -a




How to check to distribute
cat /etc/*release
How to check CPU information
cat /proc/cpuinfo
How to check PCI devices
lspci
How to list all USB devices
lsusb
How to get PC name from IP
nmblookup -A <ip>
nbtscan <ip>
How many connect on server
who -H
How many core processor
nproc
How to check full CPU information
lscpu 
How to create new user
adduser huupv
passwd huupv
For centos
usermod -aG wheel huupv
For ubuntu
echo "huupv ALL=(ALL) ALL" >> /etc/sudoers

How to find UUID disk
blkid /dev/sda6
lsblk -f

To continuous....

Comments

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server

How to install php7 on centos 6