![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
First Snowflakes
捡贝壳
展开
-
miscellaneous linux bash cmd
&& vs ;ls && mkdir nightDir : The second will be executed only when the first is successfully executed;ls ; mkdir nightDir : The second will be executed no matter the first is successfully executed or not.原创 2022-05-29 00:47:33 · 123 阅读 · 0 评论 -
Linux bash and source command
Oh, dotthe primary use of source command is to refresh environment variables.source filename [options]You can also use . (dot) instead of source command like this:. filename [options]Source vs BashIf you’ve been around Linux for a ...原创 2022-05-29 00:32:34 · 154 阅读 · 0 评论 -
Linux bash重定向
重定向标准输出和错误输出>和1>只能将正常信息重定向2> 只能将错误信息重定向&>可以将错误信息或者正常信息都重定向输出如下, ls 1>a.txt,可将ls指令的输出引入a.txt,而不是打印到屏幕;如下,ls >a.txt同ls 1>a.txt如下,ls 2>a.txt只能将错误信息重定向到a.txt如下,ls &>a.txt能将所有信息重定向到a.txt重定向到/dev/null.原创 2022-05-29 00:11:52 · 351 阅读 · 0 评论 -
Linux 查看动态库和可执行程序依赖库
一. ldd xxxlinux 查看动态库和可执行程序依赖库_帅的没朋友~的博客-CSDN博客原创 2022-04-23 16:18:31 · 490 阅读 · 0 评论 -
Ubuntu apt sources.list
So the operating system needs a mechanism to install packages easily as needed.Then the extra packages are hosted on a webserver or FTP server of the Linux distribution from where users can download and install it. These webservers or FTP servers are cal原创 2022-04-22 20:20:44 · 1521 阅读 · 0 评论 -
windows ping linux - unreachable host
windows pc and a linux pc, both connected to the same subnetwork. when ping a machine from another, "Unreachable host" ...Related reasons:1) windows firewall2) Power off router and restart. !!!Quick Answer: How do I fix host unreachable? - Choosin.原创 2022-02-27 17:11:42 · 253 阅读 · 0 评论 -
Ubuntu Screen recorder tool - Simple Screen Recorder
sudo add-apt-repository ppa:maarten-baert/simplescreenrecordersudo apt-get updatesudo apt-get install simplescreenrecorderUbuntu(Linux)使用Simple Screen Recorder录屏_pd很不专业的博客-CSDN博客原创 2022-02-27 11:18:57 · 291 阅读 · 0 评论 -
Linux command du 显示目录大小
https://www.runoob.com/linux/linux-comm-du.htmlhttps://www.runoob.com/linux/linux-comm-du.htmlLinux du (英文全拼:disk usage)命令用于显示目录或文件的大小。du 会显示指定的目录或文件所占用的磁盘空间。eg. 显示当前目录总大小:du -sheg.显示指定文件或目录的总大小 du -sh xxx语法du [-abcDhHklmsSx][-L <符号连接>..原创 2022-01-23 17:48:03 · 85 阅读 · 0 评论 -
Linux tree--显示目录树
tree -F显示目录后面的\;tree -L 2只显示2层;原创 2021-10-06 19:50:10 · 586 阅读 · 0 评论 -
Linux切换python默认版本
当前默认默认版本未python 2.7:查看/usr/bin下所有的python:可见 python指向python2.7将默认python切换为python3.6:原创 2021-10-06 11:44:34 · 122 阅读 · 0 评论 -
Linux ps command
The ps (process status) command is one of the most frequently used commands in Linux. Usually it is used to get the more and detailed information about a specific process or all processes. For example it is used to know whether a particular process is runn原创 2021-09-20 17:18:58 · 338 阅读 · 0 评论 -
Ubuntu下的远程桌面登陆工具remmina
Step by step: https://linuxconfig.org/remote-desktop-sharing-on-ubuntu-20-04-focal-fossaThe following tutorial will explain how to setup client/server remote desktop sharing on Ubuntu 20.04 Focal Fossa.In this tutorial you will learn:How to enab...原创 2021-09-20 16:52:52 · 1073 阅读 · 0 评论 -
linux下的截图工具
1. flame shootsudo apt install flameshothttps://www.linuxprobe.com/tools-under-linux.html原创 2021-08-09 08:21:17 · 186 阅读 · 0 评论 -
linux vi工具
真TM难用啊。1. 命令模式进入vi后,默认是命令模式。从插入模式进入到命令模式:按esc键。删除文字 「x」:每按一次,删除光标所在位置的"后面"一个字符。 「X」:大写的X,每按一次,删除光标所在位置的"前面"一个字符。 「dd」:删除光标所在行。跳至指定的行 「ctrl」+「g」列出光标所在行的行号。 「#G」:例如,「15G」,表示移动光标至文章的第15行行首。2. 插入模式从命令模式进入到插入模式:1)按i键按"i"进入插入模式后是.原创 2021-02-12 20:28:18 · 194 阅读 · 1 评论 -
Linux minicom使用
https://www.jianshu.com/p/39ac6dbf527e原创 2021-02-11 17:12:14 · 115 阅读 · 0 评论 -
Linux sync命令
原创 2021-02-11 11:15:53 · 355 阅读 · 0 评论 -
Linux chmod指令
示例: chmod u+x file.sh表示给用户组增加执行权限.解释:用户权限, 就是你自己的权限。 英文:user,简写:u(覆盖标号123)用户组权限,就是和你同组的人的权限。英文:group,简写:g(覆盖标号456)其他权限,就是不和你同组的人的权限。英文:others,简写:o(覆盖标号789)所有人的权限,英文:all,简写:ar, 即Read,读,权限值为4w,即Write,写,权限值为2x,即eXecute,执行,权限值为1...原创 2021-02-11 10:59:26 · 130 阅读 · 0 评论 -
linux 复制命令cp
cp commandcp [options] source dest 或者 cp [options] source... directory参数说明: -a:此选项通常在复制目录时使用,它保留链接、文件属性,并复制目录下的所有内容。其作用等于dpR参数组合。 -d:复制时保留链接。这里所说的链接相当于Windows系统中的快捷方式。 -f:覆盖已经存在的目标文件而不给出提示。 -i:与-f选项相反,在覆盖目标文件之前给出提示,要求用户确认是否覆盖,回答"...原创 2021-02-11 10:56:01 · 433 阅读 · 0 评论 -
linux查找应用的安装位置_查找文件
Linux whereis命令Linux whereis命令用于查找文件。该指令会在特定目录中查找符合条件的文件。这些文件应属于原始代码、二进制文件,或是帮助文件。该指令只能用于查找二进制文件、源代码文件和man手册页,一般文件的定位需使用locate命令。eg.whereispythonLinux which命令which命令的作用是,在PATH变量指定的路径中,搜索某个系统命令的位置,并且返回第一个搜索结果。也就是说,使用which命令,就可以看到某个系统命令...原创 2021-02-11 10:52:40 · 561 阅读 · 0 评论 -
windows10安装ubuntu双系统
Ref:https://www.cnblogs.com/masbay/p/10745170.html原创 2021-01-10 16:17:59 · 141 阅读 · 0 评论 -
制作ubuntu安装U盘,安装错误gfxboot.c32 not a com32r image
在出现“gfxboot.c32:not a COM32R image boot”的时候,按下Tab键,Then you will see a set of options (live, live install, etc). Select the one that you like typing its name and pressing Enter.1)输入live进入试用Ubuntu模式,在试用模式安装Ubuntu。2)输入live-install (亲测可以)直接进入安装模式。是.原创 2021-01-07 17:56:16 · 772 阅读 · 0 评论 -
使用shell 命令 start 打开文件夹窗口
git bash或windows powershell中输入 start .自动打开当前路径的文件夹:原创 2020-09-08 23:04:09 · 3962 阅读 · 0 评论 -
shell的echo命令
Shell 的 echo 指令与 PHP 的 echo 指令类似,都是用于字符串的输出。命令格式:echo string您可以使用echo实现更复杂的输出格式控制。1.显示普通字符串:echo "It is a test"这里的双引号完全可以省略,以下命令与上面实例效果一致:echo It is a test2.显示转义字符echo "\"It is ...原创 2020-05-03 15:52:26 · 178 阅读 · 0 评论 -
Linux Ubntu 常用命令
1. ctrl+alt+t 打开一个终端命令窗口。2. 在一个文件夹下 按ctrl+H,会显示以. 开头的文件。3. 同时打开多个文件夹浏览窗口:在文件夹窗口中 Ctrl + N4. 切换到root用户:1) sudo su, 然后输入密码。------------------当前我用的Ubuntu2) su -root(或者其他用户名)这里加了"-"后表示也切换的当前的环境变量到新用户的环境...原创 2018-04-19 10:41:36 · 989 阅读 · 0 评论 -
qmake, makefile, make是什么东东,makefile简介!
qmake是一个协助简化跨平台开发的构建过程 的工具,Qt附带的工具之一 。qmake能够自动生成Makefile、Microsoft Visual Studio 专案文件 和 xcode 专案文件。不管源代码是否是用Qt写的,都能使用qmake,因此qmake能用于很多软件的构建过程。手写Makefile是比较困难而且容易出错,尤其在进行跨平台开发时必须针对不同平台分别撰写Makefile,会增...原创 2018-05-05 18:11:23 · 422 阅读 · 0 评论 -
程序的编译和链接
一般来说,无论是C、C++、还是pas,首先要把源文件编译成中间代码文件,在Windows下也就是 .obj 文件,UNIX下是 .o 文件,即 Object File,这个动作叫做编译(compile)。然后再把大量的Object File合成执行文件,这个动作叫作链接(link)。编译时,编译器需要的是语法的正确,函数与变量的声明的正确。对于后者,通常是你需要告诉编译器头文件的所在位置(头文件...原创 2018-05-05 18:30:45 · 188 阅读 · 0 评论 -
VMware中安装Ubntu
https://blog.csdn.net/wumumang/article/details/54099997https://jingyan.baidu.com/article/ff42efa9d45ae7c19e220291.html原创 2018-05-27 20:45:43 · 908 阅读 · 1 评论 -
Vmware问题: 开机提示“虚拟机已被打开,是否获得所有权?”& Vmware检测不到USB
“一只美丽的小鸟,在绿色的草坪上蹦来跳去,很是可爱”----清风徐来问题1: Vmware开机提示“虚拟机已被打开,是否获得所有权?”解决: 关闭虚拟机,用任务管理器检查vmwarevmx.exe进程是没有关掉,如果没有,杀死它。 然后, 找到虚拟机文件存放的目录,删除里面的所有的.lck文件。再重新开启vmware。找到USB设备并连接的操作:点击,-----可移动设备----找到你的USB名字...原创 2018-06-04 10:26:53 · 941 阅读 · 0 评论 -
Beginning Linux Programming 学习--chapter 11 Processes and Signals
What's process--什么是进程?The UNIX standards, specifically IEEE Std 1003.1, 2004 Edition, defines a process as “an address space with one or more threads (线程) executing within that address space, and the...原创 2018-06-11 21:45:46 · 182 阅读 · 0 评论 -
数据恢复方法--linux ubuntu--ddrescue
ddrescure(免费的数据恢复工具)的使用方法:https://www.technibble.com/guide-using-ddrescue-recover-data/ddrescure官方文档:https://www.gnu.org/software/ddrescue/--------------------------live cd:可以让Linux系统从光盘启动,用户可以方便的先对系统...原创 2018-05-29 20:00:27 · 5481 阅读 · 0 评论 -
Vmware player--打开vmdk; 导出系统;
https://www.cnblogs.com/wxdblog/p/7091496.html原创 2018-05-29 21:48:54 · 1985 阅读 · 0 评论 -
Linux chomd命令
在UNIX系统家族里,文件或目录权限的控制分别以读取、写入、执行3种一般权限来区分。用户可以使用chmod指令去变更文件与目录的权限,设置方式采用文字或数字代号皆可。只能文件属主或特权用户才能使用该功能来改变文件存取模式。chmod [options] mode files语法chmod [-cfvR] [--help] [--version] mode file...参数说明mode : 权限设...原创 2018-06-06 09:30:30 · 608 阅读 · 0 评论 -
linu SSH 不在同一网段的两台机器如何通过ssh通信,SSH限制特定网段登陆的方法
1. linu SSH 不在同一网段的两台机器如何通过ssh通信https://blog.csdn.net/lhf19891003/article/details/39895763https://zhidao.baidu.com/question/421120155.htmlhttp://blog.sina.com.cn/s/blog_71c87c170101gvdr.html方法1):opens...原创 2018-06-06 15:41:04 · 7344 阅读 · 0 评论 -
linux的fcntl函数
fcntl可实现对指定文件描述符的各种操作,例如获取/设置 文件的是否可以被读写的状态,等其他状态。int fcntl (int __fd, int __cmd, ...);The remaining arguments ... are interpreted depending on CMD.fcntl的返回值与命令有关, 如果出错,所有命令都返回-1,如果成功则返回某个其他值。Ref:http...原创 2018-06-13 16:10:22 · 273 阅读 · 0 评论 -
Linux如何查看进程、kill进程、启动进程
查看firefox的进程ID:ps -ef | grep firefox或者top | grep firefox 使用kill指令来终止进程:kill -s 9 进程ID // -s 9表示发送给进程的信号是9(SIGKILL); 根据进程的名字来终止进程:pgrep firefox | xargs kill -s 9 // pgrep的p表明了这个命...原创 2018-06-13 19:35:10 · 23323 阅读 · 0 评论 -
linux编程 新建一个进程的方法
学习到一种,直接调用系统函数,在类的构造函数中直接启动一个线程,例如,某个类是用来监听串口的,可以直接在其构造函数中调用系统函数,开辟一个进程,在该进程对应的函数中不断while(1){....}...原创 2018-06-13 19:38:50 · 369 阅读 · 0 评论 -
linux中安装软件的方法
1. apt-get 安装方法ubuntu 世界有许多软件源,在系统安装篇已经介绍过如何添加源, apt-get 的基本软件安装命令是:sudo apt-get install 软件名2. 编译安装方式(使用编译安装前,需要先建立编译环境,使用以下命令建立基本的编译环境:sudo apt-get install build-essential)在 linux 的世界,有很多软件只提供了源代码给你,...原创 2018-05-31 09:09:01 · 382 阅读 · 0 评论 -
ubuntu gcc 安装 使用
“人多不足以依赖,要生存只有靠自己。” —— 拿破仑gcc是什么:-------------------------- Linux系统下的Gcc(GNU C Compiler)是GNU推出的功能强大、性能优越的多平台编译器,是GNU的代表作品之一。gcc是可以在多种硬体平台上编译出可执行程序的超级编译器,其执行效率与一般的编译器...原创 2018-05-31 09:12:20 · 28638 阅读 · 0 评论 -
在Ubuntu下安装qt
安装qt前的准备:安装基础开发包,主要gcc,g++等:sudoapt-get installbuild-essential1. 使用qt-opensource-linux-x86-5.5.1.run来安装:https://blog.csdn.net/hansion3333/article/details/60468590其他: 曾经 在一个小机器上运行(...原创 2018-06-07 15:07:38 · 1831 阅读 · 0 评论 -
gcc与g++的区别
Windows中常用vs来编译编写好的C和C++代码;vs把编辑器,编译器和调试器等工具都集成在这一款工具中。在Linux下常用的编译工具:gcc和g++。gcc和g++的用法,语法都是一样的! 对于C文件gcc和g++所做的事情是一样的,g++在编译C文件时调用了gcc!!!! g++在内部做了处理,默认编译C++程序,但如果遇到C程序,它会直接调用gcc去编译。 cpp和c文件...原创 2018-06-07 17:06:25 · 141 阅读 · 0 评论