Install zsh in AIX 6.1/5.1 instead of ksh

Source: Internet
Author: User

The default terminal in AIX is KSH, which is extremely difficult to use. To speed up the work efficiency, you can install the ZSH terminal. Lab environment: AIX 6.1/AIX 5.11. view the remaining directory size of the file to be uploaded

This step must be performed before all operations; otherwise, file uploading may fail! Run the df-tk (df-g) command to view the usage of all partitions.

View the AIX partition size

The/var directory has already used 100%. If you put the FTP directory in the/var directory, the upload will fail.

 

2. Select the/home directory as the FTP upload directory.

1) create a directory/home/ftp

# Mkdir/home/ftp

2) create an ftp group

# Mkgroup ftpgroup

3) create a user ftp (anonymous ftp user by default, pay attention to server security)

# Mkuser home =/home/ftp shell =/usr/bin/bsh su = false ftp

4) Set Directory Properties

# Chown-R ftp: ftpgroup/home/ftp

# Chmod 755/var/ftp

5) set the password

# Passwd ftp

6) activate a user

Use an ftp user to log on to the AIX system and reset the password.

3. Upload the software required for zsh Installation

When uploading files using ftp, Windows users are recommended to use this document. Otherwise, you may not be able to view the file list.

Start → run → cmd, enter ftp 192.168.1.72, enter the user name and password, and then log on.

Connect to the server using FTP

Set the ftp upload mode to binary mode (non-binary mode will cause File Upload failure)

Set binary mode upload

Use LCD E: \ xxx \ AIX \ ZSH to switch the local file directory to be uploaded

Switch the local upload directory

Use mput *. * (you can use mput *) to upload all files in the local directory.

Upload All files

When a question mark is displayed, press enter to upload the file. After the upload is successful, run the ls command to view the file.

View files

Upload files using ftp

4. Install zsh

Log on to the AIX system using the root account, switch to the ftp directory, and install the software using the rpm command.

1) rpm-ivh grep *

2) rpm-ivh co *

3) rpm-ivh zsh *

* It is a wildcard that can match all characters. You can directly use rpm-ivh zsh * to match all files starting with zsh. Alternatively, only the set-o vi command uses esc, and then shift + 8 completion command mode to complete the corresponding rpm package.

Install the zsh File

Zsh is successfully installed.

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.