No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


eSight V300R009C00 Local HA System Software Installation Guide (SUSE Linux + MySQL + OMMHA) 11

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Common Operations on the SUSE Linux

Common Operations on the SUSE Linux

This section describes common operations performed on a SUSE Linux-based workstation. Familiarizing yourself with these operations will improve your efficiency of operating the SUSE Linux operating system.

Operating System Input Method

  • Select M17N-zh-py or Wubi as the Chinese input method. To set the input method, click the keyboard at the lower right corner of the desktop and select M17N-zh-py or Wubi for simplified Chinese.
  • To select English as the input method, click the keyboard icon in the lower right corner and select English/Keyboard.

Command Syntax

Do not use the numeric keypad because the Num Lock key may fail to work properly on the SUSE Linux operating system.

The command syntax is as follows:

Command Option Parameter

SUSE Linux commands are case-sensitive. The system distinguishes uppercase letters and the lowercase counterparts. For example, if you enter the ls command to query the current file directory, the system will list files in a certain directory, whereas the Ls command is regarded invalid. Options, usually used behind an en dash (–), change the way in which SUSE Linux commands are executed.

For example, if you need to query files and file details in the /opt directory, run the following command:

/opt-al ls

System Operations




Displays the current user name.


Displays the UID and GID of the current user.

uname -a

Displays the system version.

free -m


grep MemTotal /proc/meminfo

Displays the memory information.

fdisk Option

Queries the number of disks.

cat /proc/cpuinfo

Displays the CPU information.

ps -ef

Displays all processes.

ps -ef | grep java

Displays all JAVA processes.

man Command

Queries the online help of a command.


shutdown -r now

Restarts the SUSE Linux operating system.

When you restart the operating system, the remote login user will exit. The restart takes 5 to 8 minutes. After the restart is complete, you need to log in to the server again.


shutdown -h now

Shuts down the SUSE Linux operating system.

Network Operations




Queries the IP address configuration.

netstat -an

Queries all enabled ports.

netstat -anp | grep Port number


lsof -i :Port number

Queries the information about a port.


Queries the route information.

route add -net Destination subnet address netmask Destination subnet mask dev Egress NIC name

An example is as follows:

route add -net netmask dev eth0

Adds a route.

route del -net Destination subnet address netmask Destination subnet mask

route del -net netmask

Deletes a route.

User Operations

SUSE Linux imposes strict rules on user management. Different users can access different applications.




Changes the password of a user.

su - Operating system user name

For example, to switch to the ossuser user, run the following command:

su - ossuser


The su-ossuser command is different from the su ossuser command.

  • su - ossuser (Running this command will switch to the ossuser user with its environment variable and execute permission obtained.)
  • su ossuser (Running this command will switch to the ossuser user with its execute permission obtained but its environment variable not.)

Switches the operating system user.



If you want to switch back to the root user, run the exit command multiple times until the prompt changes to #.

Logs an operating system user out of the system.

File Operations



mkdir Directory name

Creates a directory.

rm -rf Directory

Deletes a directory.

rmdir Directory name

Deletes an empty directory.

cd Directory name

Switches to another directory.

mv Source directory Destination directory

Moves a directory or modifies the name of a directory.

cp -r Source directory Destination directory

Copies the directory.


Displays the current directory of the user.

ls Option File directory

Displays the directory content or file information.

cd Absolute path/Relative path

Accesses a specific directory.

cd ..

Switches to the high-level directory.

cd -

Accesses the directory that is accessed last time.

vi File name

Creates or modifies a text file.

rm File name

Deletes a file.

cat File name

Queries the file content.

mv Source file Destination file path/Destination file name

Moves a file or modifies the file name.

cp Source file Destination file path

Copies files.

chown User name:Group name File name

chown User name:Group name -R Directory name

Changes the owner/owner group of a file/directory.

chown XXX File name

chown -R XXX Directory name


In the command, XXX is a 3-digit octal number.

Modifies the file/directory permission.

find . -name "File name"


The file name supports the wildcard (*).

Searches for a file.

grep "Search character" File name

Searches for and displays the content in the line where the matching character is located.

grep -n "Search character" File name

Searches for and displays the line number of the matched content.

grep -l "Search character" File name

Searches for and displays the file name of the matched content.

Compression and Decompression

Compression Format



Compression: tar cvf Compression package name.tar Source directory/File

Decompression: tar xvf Compression package name.tar


Compression: zip -r Compression package Source directory/File

Decompression: unzip -d Decompression directory Compression package name.tar


Decompression: tar zxvf Compression package name.tar.gz


Compression: gzip File name

Decompression: gunzip Compression package name.gz

Updated: 2019-11-22

Document ID: EDOC1100011856

Views: 102031

Downloads: 62

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next