Basic operation under Linux 03 (System command) __linux

Source: Internet
Author: User
1. View Host Name
Hostname


2. Modify host name (invalid after reboot)
Hostname Hadoop


3. Modify host name (permanent after reboot)
Vi/ect/sysconfig/network


4. Modify IP (invalid after reboot)
Ifconfig eth0 192.168.12.22


5. Modify IP (permanent after reboot)
Vi/etc/sysconfig/network-scripts/ifcfg-eth0


6. View System Information
Uname-a
Uname-r


7. View ID Command
Id-u
Id-g


8. Date
Date
Date +%y-%m-%d
Date +%t
Date +%y-%m-%d ""%T


9. Calendar
Cal 2012


10. View file Information
File filename


11. Mount the hard drive
Mount
Umount
Load Windows share
Mount-t CIFS//192.168.1.100/tools/mnt


12. View File Size
Du-h
Du-ah


13. View Partitions
Df-h


14.ssh
SSH hadoop@192.168.1.1


15. Shutdown Machine
Shutdown-h Now/init 0
Shutdown-r Now/reboot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.