Linux分文件命令
2016-06-01 15:56
471 查看
sudo apt-get install vim 安装vim
若不成功:网络连接问题 or sudo apt-get update更新之后再操作
cd ~ 回到根目录 尽量不要到root中操作
:sp max.c 在vi中 命令模式下
ctrl+w+下箭头 切换下面文件
:set nu 显示行号
9dd 剪切9行代码
ctrl+W+上箭头 切换上面文件
p 粘贴
:wqa 全部保存
gcc max.c hello.c -o main.out 编译并且输出main.out
./main.out 执行
gcc -c max.c -o max.o
gcc max.o hello.c
若不成功:网络连接问题 or sudo apt-get update更新之后再操作
cd ~ 回到根目录 尽量不要到root中操作
:sp max.c 在vi中 命令模式下
ctrl+w+下箭头 切换下面文件
:set nu 显示行号
9dd 剪切9行代码
ctrl+W+上箭头 切换上面文件
p 粘贴
:wqa 全部保存
gcc max.c hello.c -o main.out 编译并且输出main.out
./main.out 执行
gcc -c max.c -o max.o
gcc max.o hello.c
相关文章推荐
- Linux下编译Android源码问题汇总
- Linux 下载 更新 google 浏览器 chrome
- BusyBox制作Initramfs嵌入式Linux根文件系统
- UCOSii和Linux的区别和联系
- CentOS 7下ionic build android 出错 Execution failed for task ':processDebugResources'.
- Linux find文件查找命令与grep文件内容查找命令详解
- Linux与Windows之间ftp自动传输文件
- 【转】PowerPC平台linux设备移植
- c 语言中的关键字static
- Linux下RS232和RS485编程有什么区别?
- Linux课题实践四——ELF文件格式分析
- RHEL / Centos Linux 7:更改和设置Hostname命令
- centos进入登陆界面无登陆框问题
- linux stat函数
- Centos7 Firewall 防火墙配置应用实例参考
- Centos7 Firewalld 自定义富规则
- 在Linux中使用线程
- linux使用FIO测试磁盘的iops
- Linux系统ifconfig命令找不到,centos ifconfig Command not found
- linux下面某些常用命令的用法【转】