# NOI Linux 2.0 ![noi_linux2.0](https://www.noi.cn/upload/resources/image/2021/07/16/163780.jpg) --- 根据NOI科学委员会决议,该系统将自2021年9月1日起作为NOI系列比赛和CSP-J/S等活动的标准环境使用。 NOI Linux 2.0版(Ubuntu-NOI 2.0版)基于Ubuntu 20.04.1版定制。 --- ## 安装(虚拟机版) [见链接](https://blog.csdn.net/qq_36455276/article/details/120687709) --- ## 使用 1. termail 终端 2. 编译 g++ a.cpp -o a -std=c++14 3. 编辑器:gedit vscode sublime ... --- ## 常用命令 |命令|作用|举例| |---|---|---| |ls|查看当前目录下的文件|ls -l| |cd|改变目录|cd abc| |mkdir|建立新目录|mkdir t1| |mv|移动文件(可重命名)|mv a.cc a.cpp| |cp |复制文件 |cp a.cc b.cc| |g++|compile c++ files|g++ a.cpp -o a | |diff|比较两文件的差异|diff -b 1.ans 1.out| --- ## 其他 设置栈大小 linux : ulimit -s 1048576 后面的数是kbytes windows : -Wl,--stack=1073741824 此时的后面数的单位是B/Bytes。