Linux Common commands

Source: Internet
Author: User

1 SUSE Linux

0 opening the GUI interface
XDm

1 Checking the OS version
Cat/etc/suse-release
View Patch Information
Spident
View Kernel version
Uname-r

2 Viewing CPU Information
Cat/proc/cpuinfo

3 Viewing intrinsic information
Cat/proc/meminfo

4 Viewing disk partitions
Cat/proc/partitions

5 the size of the used and unused resources of the swap space
Swapon-s

6 Adding Swap partitions
A add a partition with YaST
and umount it.

b Use the Mkswap command to set the swap partition:
Mkswap/dev/sdb2

c Enable swap partition:
Swapon/dev/sdb2

D writes/etc/fstab so that it is enabled at boot time:
/DEV/SDB2 swap swap defaults 0 0

7 Adding a swap file
A create a swap file of size 512M:
DD If=/dev/zero of=/swapfile1 bs=1024 count=524288

b Use the Mkswap command to set the swap file:
Mkswap/swapfile1

c Enable swap partition:
Swapon/swapfile1

D writes/etc/fstab so that it is enabled at boot time:
/swapfile1 swap swap defaults 0 0

8 Viewing disk space (file system)
Ardc1a:/orabak # Du-sh *
8.2M Arch
6.0K bin
12M c-4149631192-20120418-05
39G data
181K Log
2.0K pfile_bak20120217
1.0K Sqlnet.log

9 Restart the NIC
Rcnetwork restart

10 viewing network card corresponding files
/var/adm/autoinstall/scripts/eth_alias.sh

11 Open a Linux remote connection
YaST remote


Linux Common commands

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.