
linux
南风花海
坚持是神,加油,少年!
展开
-
当虚拟机出现:出现“/../../ E212:无法打开并写入文件”的解决方法。
用于读取输入文件,同时保存 ,%表示当前编辑文件)第二步:输入自己的虚拟机。第一步:保存文件时用。原创 2023-01-11 21:14:20 · 7841 阅读 · 2 评论 -
用vi编辑hello.c,打印Hello World!,并编译、运行
用vi编辑hello.c,打印Hello World!,并编译、运行 vi hello.c #include <stdio.h> int main(){ printf(“Hello World!\n”); return 0; } 编译: gcc hello.c 运行: ./a.out...原创 2021-08-19 17:23:51 · 6020 阅读 · 0 评论 -
linux常用的操作指令
如何新建一个普通用户:# useradd -s /bin/bash -d /home/briup -m briup# passwd briup 对briup用户设置密码/重置密码# exit 退出用briup用户登录cmd/xshell 登录 ssh briup@ip地址briup@ip:~$ ls /home切换用户的方法:1.exit ssh2.su - root su - briuphistory:查看所有历史命令pwd:查看自己...原创 2021-08-19 16:20:16 · 777 阅读 · 0 评论