![](https://img-blog.csdnimg.cn/20190923220150711.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Linux 编程基础
文章平均质量分 56
Linux基本操作与编程基础
Techblog of HaoWANG
来源于生活,低于生活。
NDVC Lab——Nonlinear Dynamics and Vibration Control Laboratory, Hong Kong,China;
JH Lab ---- 季华实验室(广东省先进制造科学与技术实验室);
Major In Robotics: Modelling、Control Technology and Vision.
展开
-
Linux命令行(0)--总序
详细系统的学习linux常用命令,从点滴积累开始。总目录:一.文件目录操作命令 1.每天一个linux命令(1):ls命令 2.每天一个linux命令(2):cd命令 3.每天一个linux命令(3):pwd命令 4.每天一个linux命令(4):mkdir命令 5.每天一个linux命令(5):rm 命令 6.每天一个lin...原创 2019-09-18 19:52:31 · 519 阅读 · 0 评论 -
Linux基础-- Git SSH key生成与配置
许多 Git 服务器都使用 SSH 公钥进行认证。 为了向 Git 服务器提供 SSH 公钥,如果某系统用户尚未拥有密钥,必须事先为其生成一份。 这个过程在所有操作系统上都是相似的。 首先,你需要确认自己是否已经拥有密钥。 默认情况下,用户的 SSH 密钥存储在其~/.ssh目录下。 进入该目录并列出其中内容,你便可以快速确认自己是否已拥有密钥:$ cd ~/.ssh$ lsauthorized_keys2 id_dsa known_hostsconfig ...原创 2021-04-16 23:19:16 · 6727 阅读 · 1 评论 -
Linux命令行(9)-- touch命令
linux的touch命令不常用,一般在使用make的时候可能会用到,用来修改文件时间戳,或者新建一个不存在的文件。1.命令格式:touch[选项]...文件...2.命令参数:-a或--time=atime或--time=access或--time=use 只更改存取时间。-c或--no-create 不建立任何文档。-d 使用指定的日期时间,而非现...原创 2020-02-03 13:01:13 · 224 阅读 · 0 评论 -
Linux命令行(8)-- cp 命令
cp命令用来复制文件或者目录,是Linux系统中最常用的命令之一。一般情况下,shell会设置一个别名,在命令行下复制文件时,如果目标文件已经存在,就会询问是否覆盖,不管你是否使用-i参数。但是如果是在shell脚本中执行cp时,没有-i参数时不会询问是否覆盖。这说明命令行和shell脚本的执行方式有些不同。1.命令格式:用法: cp[选项]...[-T]源目的...原创 2020-02-03 12:54:57 · 711 阅读 · 0 评论 -
Linux -- git命令指南
一、创建与合并分支1、 从master分支创建dev分支并切换到dev分支 git checkout master git checkout -b dev 其中,git checkout -b dev 等价于: git branch dev git checkout dev (1) git branch 查看本地当...原创 2019-10-25 18:39:08 · 167 阅读 · 0 评论 -
Linux命令行(7) -- mv
mv命令是move的缩写,可以用来移动文件或者将文件改名(move(rename)files),是Linux系统下常用的命令,经常用来备份文件或者目录。目录1.命令格式:2.命令功能:3.命令参数:4.命令实例:说明:1.命令格式:mv[选项1]源文件或目录 [选项2]目标文件或目录2.命令功能:视mv命令中第二个参数类型的不同(...原创 2019-10-14 22:53:52 · 160 阅读 · 0 评论 -
Linux命令行(6) -- rmdir 命令
今天学习一下linux中命令:rmdir命令。rmdir是常用的命令,该命令的功能是删除空目录,一个目录被删除之前必须是空的。(注意,rm-rdir命令可代替rmdir,但是有很大危险性。)删除某目录时也必须具有对父目录的写权限。1.命令格式:rmdir[选项]...目录...2.命令功能:该命令从一个目录中删除一个或多个子目录项,删除某目录时也必须具有对父目录的...原创 2019-10-14 22:44:45 · 154 阅读 · 0 评论 -
Linux命令行(5)-- rm命令(慎用)
上一篇学习了创建文件和目录的命令mkdir,例如 递归地创建文件目录:mkdir -p -v mkdir/test/test1/test2/test3今天学习一下linux中删除文件和目录的命令:rm命令。rm是常用的命令,该命令的功能为删除一个目录中的一个或多个文件或目录,它也可以将某个目录及其下的所有文件及子目录均删除。对于链接文件,只是删除了链接,原有文件均保持不变。警告:...原创 2019-10-14 22:41:39 · 542 阅读 · 0 评论 -
Linux命令行(4)-- mkdir 文件夹创建命令
linuxmkdir命令用来创建指定的名称的目录,要求创建目录的用户在当前目录中具有写权限,并且指定的目录名不能是当前目录中已有的目录。目录1.命令格式:2.命令功能:3.命令参数:1.命令格式:mkdir[选项]目录...2.命令功能:通过mkdir命令可以实现在指定位置创建以DirName(指定的文件名)命名的文件夹或目录。要创建文件夹或目录...原创 2019-09-26 23:18:08 · 1281 阅读 · 0 评论 -
Linux命令行(3) -- pwd 命令
Linux中用pwd命令来查看”当前工作目录“的完整路径。简单得说,每当你在终端进行操作时,你都会有一个当前工作目录。在不太确定当前位置时,就会使用pwd来判定当前目录在文件系统内的确切位置。目录1.命令格式:2.命令功能:3.常用参数:4.常用实例:1.命令格式:pwd[选项]2.命令功能:查看”当前工作目录“的完整路径3.常用参数:...原创 2019-09-26 22:59:58 · 529 阅读 · 0 评论 -
Linux命令行(2)-- cd 命令
目录 1.命令格式: 2.命令功能: 3.常用范例Linuxcd命令可以说是Linux中最基本的命令语句,其他的命令语句要进行操作,都是建立在使用cd命令上的。所以,学习Linux常用命令,首先就要学好cd命令的使用方法技巧。 1.命令格式:cd[目录名] 2.命令功能:切换当前目录至dirName...原创 2019-09-26 22:55:23 · 1104 阅读 · 0 评论 -
Linux命令行(1)-- ls 命令
目录1.命令格式:2.命令功能:3.常用参数:扩展:ls命令是linux下最常用的命令。ls命令就是list的缩写缺省下ls用来打印出当前目录的清单,如果ls指定其他目录,那么就会显示指定目录里的文件及文件夹清单。通过ls命令不仅可以查看linux文件夹包含的文件而且可以查看文件权限(包括目录、文件夹、文件权限)查看目录信息等等。ls命令在日常的linux操...原创 2019-09-26 22:52:49 · 383 阅读 · 0 评论 -
Linux--Ubuntu Tweak
Ubuntu Tweak是一款专门为Ubuntu(GNOME桌面)准备的配置、调整工具。主要面向新手级的普通用户。它可以设置很多并不能在系统首选项中设置的隐藏选项,以满足用户自定义的乐趣。即使是新手,也可以方便地通过它来进行适合自己的系统调整。 下面是apt-get安装tweak过程: 第一步:添加tweak源;1 sudo add-apt-repository ppa:...原创 2019-09-18 09:59:31 · 8249 阅读 · 0 评论 -
实验楼 -- Linux命令行操作(1)
Linux操作命令(一)一、实验介绍1.1 实验内容本次实验将介绍 Linux 命令中 ls、cd、pwd 命令的用法。1.2 实验知识点 ls 命令 cd 命令 pwd 命令 1.3 实验环境课程使用的实验环境为 Ubuntu Linux 14.04 64 位版本。实验中会用到程序: Xfce终端 二、实验步骤2.1 ls 命...原创 2019-06-12 15:21:45 · 994 阅读 · 0 评论 -
Linux学习笔记(9)-- System Variables
8.1 UNIX VariablesVariables are a way of passing information from the shell to programs when you run them. Programs look "in the environment" for particular variables and if they are found will u...原创 2019-06-06 19:40:22 · 401 阅读 · 0 评论 -
Linux学习笔记(8)-- Compiling
7.1 Compiling UNIX software packages We have many public domain and commercial software packages installed on our systems, which are available to all users. However, students are allowed to down...原创 2019-06-06 19:39:34 · 523 阅读 · 0 评论 -
Linux学习笔记(7)-- Other useful UNIX commands
Other useful UNIX commands quotaAll students are allocated a certain amount of disk space on the file system for their personal files, usually about 100Mb. If you go over your quota, you are g...原创 2019-06-06 19:38:51 · 199 阅读 · 0 评论 -
Linux学习笔记(6)-- File system
5.1 File system security (access rights)In your unixstuff directory, type% ls -l (l for long listing!)You will see that you now get lots of details about the contents of your directory, simil...原创 2019-06-06 19:38:11 · 232 阅读 · 0 评论 -
Linux学习笔记(5)-- Wildcards
4.1 WildcardsThe * wildcardThe character * is called a wildcard, and will match against none or more character(s) in a file (or directory) name. For example, in your unixstuff directory, type...原创 2019-06-06 19:37:33 · 600 阅读 · 0 评论 -
Linux学习笔记(4)-- Linux Redirection
3.1 Redirection Most processes initiated by UNIX commands write to the standard output (that is, they write to the terminal screen), and many take their input from the standard input (that is, t...原创 2019-06-06 19:36:38 · 404 阅读 · 0 评论 -
Linux学习笔记(3)-- 文档操作
2.1 Copying Filescp (copy) 复制cpfile1 file2-- is the command which makes a copy offile1in the current working directory and calls itfile2What we are going to do now, is to take a file stored...原创 2019-06-06 19:35:15 · 396 阅读 · 0 评论 -
Linux学习笔记(2)--Linux 基本操作
1.1 Listing files and directoriesls (list)When you first login, your current working directory is your home directory. Your home directory has the same name as your user-name, for example,ee91ab,...原创 2019-06-06 19:34:32 · 394 阅读 · 0 评论 -
Linux学习笔记(1) -- Ubuntu命令行指令快速上手
在Ubuntu系统中安装程序时,经常要在usr目录下新建、拷贝文件,此文件夹在Linux类系统中需要root权限才能访问,用常规的鼠标右键菜单操作是无效的,因此总结了在终端中经常使用的命令新建、拷贝文件等指令。基本命令: cd 路径 (进入一个路径,比如 /usr/local/lib) cd .. (返回上一个文...原创 2019-06-02 22:14:12 · 419 阅读 · 0 评论 -
Linux学习笔记(0)-- Ubuntu16.04 虚拟机安装与配置
1. 安装Virtualboxhttps://www.virtualbox.org/wiki/Downloads下载windows hosts版本 virtualbox软件; 下载usb扩展包, 点击 ‘All supported platforms’ 按钮下载。安装过程和软件设置过程略。2. 安装ubuntu16.04设置虚拟机内存、硬盘等参数后,加载系统镜像,开机即可...原创 2019-05-31 13:23:01 · 386 阅读 · 0 评论