学习小组Day2笔记--ASPIRE1
2018-09-04 本文已影响53人
AspireRich
思维导图
花花最美下载并安装Ubuntu
注册阿里云服务器
使用Putty登录云服务器
熟悉使用集中常用命令
全部命令和反馈见代码块
login as: root
root@119.23.29.57's password:
Welcome to Alibaba Cloud Elastic Compute Service !
[root@aspire ~]# pwd
/root
login as: root
root@119.23.29.57's password:
Welcome to Alibaba Cloud Elastic Compute Service !
[root@aspire ~]# pwd
/root
[root@aspire ~]# mkdir biosoft
[root@aspire ~]# mkdir project
[root@aspire ~]# mkdir tmp
[root@aspire ~]# mkdir src
[root@aspire ~]# ls
biosoft project src tmp
[root@aspire ~]# mkdir delete
[root@aspire ~]# rmdir delet
[root@aspire ~]# mkdir biosoft
[root@aspire ~]# mkdir project
[root@aspire ~]# mkdir tmp
[root@aspire ~]# mkdir src
[root@aspire ~]# ls
biosoft project src tmp
[root@aspire ~]# mkdir delete
[root@aspire ~]# rmdir delet
rmdir: failed to remove ‘delet’: No such file or directory
[root@aspire ~]# rmdir delete
[root@aspire ~]# cd project
[root@aspire project]# cd-
-bash: cd-: command not found
[root@aspire project]# cd
[root@aspire ~]# cd tmp
[root@aspire tmp]# vi helloehuahua.txt
[root@aspire tmp]# cat
rmdir: failed to remove ‘delet’: No such file or directory
[root@aspire ~]# rmdir delete
[root@aspire ~]# cd project
[root@aspire project]# cd-
-bash: cd-: command not found
[root@aspire project]# cd
[root@aspire ~]# cd tmp
[root@aspire tmp]# vi helloehuahua.txt
[root@aspire tmp]# cat
[root@aspire tmp]# head -10 hellohuahua.txt
head: cannot open ‘hellohuahua.txt’ for reading: No such file or directory
[root@aspire tmp]# ls
helloehuahua.txt
[root@aspire tmp]# head -10 helloehuahua.txt
huahuazuipiaoliang
woaihuahua
shengxinjinengshu
shi zuibangdegongzhonghao
nishuoshibushineshi?
shibde
KUL
HAK
PEK
SHE
[root@aspire tmp]# tail -5 helloehuahua.txt
TOKYO
NYC
LA
HCMC
CAN
[root@aspire tmp]# cp helloehuahua.txt
cp: missing destination file operand after ‘helloehuahua.txt’
Try 'cp --help' for more information.
[root@aspire tmp]# cp helloehuahua.txt newhuahua.txt
[root@aspire tmp]# ls
helloehuahua.txt newhuahua.txt
[root@aspire tmp]# move newhuahua.txt /root
-bash: move: command not found
[root@aspire tmp]# cd
[root@aspire ~]# ls
biosoft project src tmp
[root@aspire ~]# cd tmp
[root@aspire tmp]# ls
helloehuahua.txt newhuahua.txt
[root@aspire tmp]# mv newhuahua.txt novahuahua.txt
[root@aspire tmp]# ls
helloehuahua.txt novahuahua.txt
[root@aspire tmp]# mv novahuahua.txt /root
[root@aspire tmp]# cd
[root@aspire ~]# ls
biosoft novahuahua.txt project src tmp
[root@aspire ~]# [root@aspire tmp]# head -10 helloehuahua.txt
-bash: [root@aspire: command not found
[root@aspire ~]# huahuazuipiaoliang
-bash: huahuazuipiaoliang: command not found
[root@aspire ~]# woaihuahua
shengxinjinengshu
shi zuibangdegongzhonghao
nishuoshibushineshi?
shibde
KUL
HAK
PEK
SHE
[root@aspire tmp]# tail -5 helloehuahua.txt
TOKYO
NYC
LA
HCMC
CAN
[root@aspire tmp]# cp helloehuahua.txt
cp: missing destination file operand after ‘helloehuahua.txt’
Try 'cp --help' for more information.
[root@aspire tmp]# cp helloehuahua.txt newhuahua.txt
[root@aspire ~]# shengxinjinengshu
[root@aspire tmp]# ls
helloehuahua.txt newhuahua.txt
[root@aspire tmp]# move newhuahua.txt /root
[root@aspire tmp]# cd
[root@aspire ~]# ls
biosoft project src tmp
[root@aspire ~]# cd tmp
[root@aspire tmp]# ls
helloehuahua.txt newhuahua.txt
[root@aspire tmp]# mv newhuahua.txt novahuahua.txt
[root@aspire tmp]# ls
helloehuahua.txt novahuahua.txt
[root@aspire tmp]# mv novahuahua.txt /root
[root@aspire tmp]# cd
[root@aspire ~]# ls
biosoft novahuahua.txt project src tmp
[root@aspire ~]# shi zuibangdegongzhonghao
[root@aspire ~]# nishuoshibushineshi?
[root@aspire ~]# shibde
[root@aspire ~]# KUL
[root@aspire ~]# HAK
[root@aspire ~]# PEK
[root@aspire ~]# SHE
[root@aspire ~]# [root@aspire tmp]# tail -5 helloehuahua.txt
[root@aspire ~]# TOKYO
[root@aspire ~]# NYC
[root@aspire ~]# LA
[root@aspire ~]# HCMC
[root@aspire ~]# CAN
[root@aspire ~]# [root@aspire tmp]# cp helloehuahua.txt
[root@aspire ~]# cp: missing destination file operand after ‘helloehuahua.txt’
[root@aspire ~]# Try 'cp --help' for more information.
[root@aspire ~]# [root@aspire tmp]# cp helloehuahua.txt newhuahua.txt
[root@aspire ~]# [root@aspire tmp]# ls
[root@aspire ~]# helloehuahua.txt newhuahua.txt
[root@aspire ~]# [root@aspire tmp]# move newhuahua.txt /root
[root@aspire ~]# -bash: move: command not found
[root@aspire ~]# [root@aspire tmp]# cd
[root@aspire ~]# [root@aspire ~]# ls
[root@aspire ~]# biosoft project src tmp
[root@aspire ~]# [root@aspire ~]# cd tmp
[root@aspire ~]# [root@aspire tmp]# ls
[root@aspire ~]# helloehuahua.txt newhuahua.txt
[root@aspire ~]# [root@aspire tmp]# mv newhuahua.txt novahuahua.txt
[root@aspire ~]# [root@aspire tmp]# ls
[root@aspire ~]# helloehuahua.txt novahuahua.txt
[root@aspire ~]# [root@aspire tmp]# mv novahuahua.txt /root
[root@aspire ~]# [root@aspire tmp]# cd
[root@aspire ~]# [root@aspire ~]# ls
[root@aspire ~]# biosoft novahuahua.txt project src tmp
[root@aspire ~]# [root@aspire ~]#
[root@aspire ~]#
完成任务