AIX系统

1. 解压缩和压缩

#解压缩ebank.tar.gz 文件到当前目录
gzip -dc ebank.tar.gz | tar  -xvf -

#将/tmp/abc下的所有文件压缩成 abc.tar文件,再生成一个abc.tar.gz文件
tar -cvf abc.tar /tmp/abc | gzip > abc.tar.gz

2. Vi编辑器

vi编辑器下 进入编辑模式是按 i

如果想删除某个字符,需要先按ESC键再按delete删除;

3. 查看被占用的端口

netstat -Aan | grep <portnumber>

5. FTP服务

5.1 ftp服务默认是开启的

lssrc -t ftp
#Service       Command                  Description              Status 
# ftp          /usr/sbin/ftpd           ftpd                     活动
cat /etc/inetd.conf |grep ftp
#ftp     stream  tcp6    nowait  root    /usr/sbin/ftpd  ftpd
##tftp   dgram   udp6    SRC     nobody  /usr/sbin/tftpd tftpd -n

#启动FTP
startsrc -t ftp
#停止FTP
stopsrc -t ftp

5.2 ftp新建用户

#新建一个ftp组
mkgroup ftpgrp

#新建名字为ftp用户并指定默认访问路径为/var/ftp
mkdir /var/ftp
mkuser home=/var/ftp shell=/usr/bin/bsh su=false ftp
chown -R ftp:ftpgrp /var/ftp
chmod 755 /var/ftp
passwd ftp

#新建名字为ftpcib用户并指定默认访问路径为/CIB
mkdir /CIB
mkuser home=/CIB shell=/usr/bin/bsh su=false ftpcib
chown -R ftpcib:ftpgrp /CIB
chmod 755 /CIB
passwd ftpcib

5.3 远程访问

C:/>ftp 172.16.11.12
#Connected to 172.16.11.12.
#220 hbisapp FTP server (Version 4.2 Mon Mar 14 13:05:27 CDT 2016) ready.
#500 'OPTS UTF8 ON': command not understood.
User (172.16.11.12:(none)): ftpcib------------------->这里输入用户名
#331 Password required for ftpcib.
Password:------------------->这里输入密码
#230-Last login: Mon Jan  9 17:32:38 CST 2023 on ftp from ::ffff:192.168.90.2
#230 User ftpcib logged in.
ftp> pwd
#257 "/CIB" is current directory.

6. SFTP服务

6.1 sftp服务默认是开启的

# 查看SSH服务
lssrc -a | grep sshd
# sshd             ssh              12452082     活动

6.2 远程访问

C:\Users\mjzhud>sftp -oPort=22 root@172.16.11.12
#The authenticity of host '172.16.11.12 (172.16.11.12)' can't be established.
#ECDSA key fingerprint is SHA256:v7YXzL6lR2opKWEwEmOcLjdFGVHTQStZUZOumM2czFo.
Are you sure you want to continue connecting (yes/no/[fingerprint])?---------->yes
#Warning: Permanently added '172.16.11.12' (ECDSA) to the list of known hosts.
root@172.16.11.12's password:----->输入密码
#Connected to 172.16.11.12.
sftp> pwd
#Remote working directory: /

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

朱梦君

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值