Linux 与网络
Linux 常用命令:文件、工具与系统管理
整理工具安装、文件操作、命令帮助与系统管理中常用的 Linux 命令。
查看是否安装:–version
1 2
| git --veresion gh --version
|
查看安装路径:
安装gh:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| sudo apt install gh
gh auth login
gh auth status
gh repo create my-project --public
git init git add git commit
|
查看安装路径:
常用的文件操作命令:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
| pwd
whoami
ls
ls -l
ls -a
mkdir practice
cd practice
cd ~
cd ..
touch hello.txt
touch a.txt b.txt
echo "hello linux" > hello.txt
echo "second line" >> hello.txt
cat hello.txt
cp hello.txt backup.txt
cp -r notes notes_backup
mv day1.txt notes/
mv day1.txt day2.txt notes/
mv wed.txt wed_backup.txt
rm backup.txt
rmdir week2_extra
rm -r notes_backup
ls notes/
ls ../../week2
ls /home/dubingjie/practice/study_plan/week2
ls ~/practice/study_plan/week2
history
clear
type cd
help cd
ls --help
man ls
|
其他一些命令:
1 2 3 4
| reboot
cat /etc/netplan/50-cloud-init.yaml
|