AIX command line to achieve automatic completion function
There are two methods:
Method 1: modify environment variables
Implementation method of automatic completion (key combination): Esc +\
Implementation steps:
Step 1: add the following to the / etc/profile (all users) or $HOME/.profile (specific users) files:
Export EDITOR=vi
Step 2: if you want to take effect immediately after modification, you need to do the following:
Export EDITOR=vi or. / etc/profile or. ~ /. Profile or. $HOME/.profile or user log in again
Method 2: install bash under AIX
Implementation method of automatic completion (key combination): tab key
Implementation steps:
Step 1: check to see if bash is installed, and if not, bash is not installed:
# rpm-qa | grep bash
Step 2: download bash for AIX
Download address: http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html#B
Find the corresponding AIX version of bash according to the version of your AIX system. I use 6. 1, so my filename is: bash-4.3.30-1.aix6.1.ppc.rpm
Step 3: install bash
# rpm-ivh bash-4.3.30-1.aix6.1.ppc.rpm
Step 4: check after installation is complete
# rpm-qa | grep bash
Bash-4.3.30-1
Step 5: replace the user shell
Suggested method: modify passwd file
# vi / etc/passwd
Change the default shell for users who need to use bash from / usr/bin/ksh to / usr/bin/bash.
After modification, you will encounter the problem that ftp cannot log in. The solution:
1: confirm whether the dependency inetd is enabled
I want to know that c-s inetdSubsystem Group PID Status inetd tcpip 3604486 active
2: check whether the ftp service is enabled
C-t ftpService Command Arguments Status ftp / usr/sbin/ftpd ftpd active
The following steps are involved in the user authentication process in ftp login
1:/etc/security/passwd. Have been configured in the
# No users appear in 2:/etc/ftpusers
3:etc/security/login.cfg login must be configured in shell
Usw: shells = / bin/sh,/bin/bsh,/bin/csh,/bin/ksh,/bin/tsh,/bin/ksh93,/usr/bin/sh,/usr/bin/bsh,/usr/bin/csh,/usr/bin/ksh,/usr/bin/tsh,/usr/bin/ksh93,/usr/bin/rksh,/usr/bin/rksh93,/usr/sbin/uucp/uucico,/usr/sbin/sliplogin,/usr/sbin/snappd,/usr/bin/bash
This makes the problem clear: the day before yesterday, I downloaded and installed bash, and updated the login shell of root to bash.
So after adding [, / usr/bin/bash] to etc/security/login.cfg, you can log in.