自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

转载 centos7下创建pycharm快捷方式

终端输入:sudo gedit /usr/share/applications/Pycharm.desktop粘贴模板:[Desktop Entry]Type=ApplicationName=PycharmGenericName=Pycharm3Comment=Pycharm3:The Python IDEExec=sh /opt/pycharm/bin/pycharm.sh (下...

2018-08-31 16:23:28 4371

转载 centos安装pycharm

Step1.进入官网,选择Linux版本,下载安装包。我们可以选择community(社区免费版)也可以选择功能更为齐全的专业版(当然也有人叫做商业版)。Step2.将下载好安装包解压。我们以专业版为例,进行说明。Step3.进入解压后文件夹的bin目录。Step4.进入的bin目录后,在空白处右击,在此处打开终端。Step5.进入终端后,执行命令:sh ....

2018-08-31 15:16:45 2583 1

转载 linux-Centos7安装python3并与python2共存

1.查看是否已经安装PythonCentOS 7.2 默认安装了python2.7.5 因为一些命令要用它比如yum 它使用的是python2.7.5。使用 python -V 命令查看一下是否安装Python然后使用命令 which python 查看一下Python可执行文件的位置可见执行文件在/usr/bin/ 目录下,切换到该目录下执行 ll python* 命令查看 ...

2018-08-31 14:48:54 226

原创 Configuration files of bash

1. classfys according to the range in which configuration files take effect.    1.1 The global configuration file        /etc/profile :            /etc/profile.d/*.sh        /etc/bashrc :    1.2 ...

2018-08-31 09:43:37 213

原创 egrep

1. Basic grammar    egrep = grep -E    egrep [OPTIONS] PATTERN [FILE...]2. Meta-charecter of extended regexp    2.1 Character match        .:  Matchs any single character        []: Matchs any s...

2018-08-31 09:42:21 1959

原创 grep

1. grep : Global search Regular expression and Print out the line.    1.1. function:searches  the given FILEs for lines containing a match to the given PATTERN.    1.2. Basic grammar : grep [OPTIONS...

2018-08-31 09:41:47 124

原创 Permissions of a file

1. 基本概述    1.1 文件的权限主要针对三类对象进行定义        owner: 属主, u        group: 属组, g        other: 其他, o    1.2 每个文件针对每类访问者都定义了三种权限:        r: Readable        w: Writable        x: eXcutable    1.3 对文件而...

2018-08-31 09:40:33 155

原创 User and group

1. linux security context    Which resources a process can access depends on the user running the process.    For example,the root user own the following file.        -rw-------. 1 root root 1920 A...

2018-08-31 09:39:17 256

原创 file manage

1. cp : copy files and directories    1.1 Basic use of cp  :   cp SRC DEST        SRC is a single file:            If DEST does not exist :create DEST and copy the content of SRC to DEST;         ...

2018-08-28 07:54:42 597

原创 File view command

1.more : file perusal filter for crt viewing    -d: 显示翻页及退出提示2.less : opposite of more3.head : output the first part of files    head [OPTION]... [FILE]...    -c #: 指定获取前#字节    -n #: 指定获取前#行4.t...

2018-08-28 07:53:23 144

原创 Text processing tool

1. wc : print newline, word, and byte counts for each file    [root@bogon ~]# wc /etc/passwd         44   88 2301 /etc/passwd    -l: lines    -w: words    -c: characters2. cut : remove sections ...

2018-08-28 07:49:03 312

原创 IO redirection and pipeline

1. program:instruction+data       data structures + algorathms   2. IO redirection:change the position of standard input and output    2.1 Output redirection : COMMAND > NEW_POS, COMMAND >&gt...

2018-08-28 07:47:34 190

原创 The basic features of bash

1. The command history    1.1 history :Display or manipulate the history list.        [root@promote tmp]# history    //Display the history list.        -a: Append newly executed commands to the com...

2018-08-27 06:34:06 177

原创 Directory-related commands

1. Category of directory    The shell working directory.    The current directory which refers to the shell working directory.    HOME directory:        root : /root        Average user : /home/U...

2018-08-25 06:55:01 112

原创 Two clocks in Linux

1. The system clock    Timing by the Linux kernel by the working frequency of the CPU.    The date command query and set the system clock.2. The hardware clock    The clock/hwclock command query a...

2018-08-24 06:57:11 175

原创 The use of the date command

1.definition    date - print or set the system date and time2.SYNOPSIS    2.1 Display the current time in the given FORMAT.        date []... [+FORMAT]        FORMAT : refers to formatting symbol...

2018-08-24 05:56:25 146

原创 How to use recursion to traverse folders

    int getFileNum(const char* root)    {        int total = 0;        DIR* dir = null;        dir = opendir(root);        if(dir == null)        {            perror("opendir error");         ...

2018-08-24 04:46:28 102

原创 make与makefile

1.make    gcc - 编译器    make - linux自带的构建器,make工作在gcc之前        构建的规则在makefile文件中2.makefile文件的命名    makefile/Makefile3.makefile中的规则    3.1 三部分:目标,依赖,命令        基本结构:            目标:依赖           ...

2018-08-24 04:43:33 119

原创 Static and dynamic libraries in linux

1.What is a library   A library is a binary file,that is to say turns source code into binary code.2.How do users use libraries    Users need header files and libraries itself.3.How to use librari...

2018-08-24 04:41:54 131

原创 gcc的各个参数

1.gcc工作流程    1.1 预处理 --E        所作的内容有:宏替换、头文件展开、去掉注释        xxx.c文件 -> xxx.i文件(.i文件还是c文件)    1.2 编译 --S  最浪费时间的         xxx.i -> xxx.s(.s是汇编文件)    1.3 汇编 -c        xxx.s -> xxx.o(.o是二...

2018-08-24 04:38:09 6107

原创 vim的基本使用

1.vim的三种工作模式(vim是vi的增强版本)    命令模式        按ESC键后就会进入命令模式,命令模式下的常用操作有复制/黏贴/删除/撤销等....    编辑模式        在命令模式下输入插入命令i(insert)、附加命令a (append)、打开命令o(open)、            修改命令c(change)、取代命令r或替换命令s都可以进入文本输入模...

2018-08-24 04:35:26 201

原创 CentOS中输入ifconfig出现ens33而没有eth0,而且ens33中没有ip地址

本人近期学习linux ,但是当我使用xhell连接到linux时,却始终连接不上,当我在linux下执行命令时显示如下图所示,本人查阅了很多的资料,即复杂又没有效果,而我也是在一个个设置参数时才发现了解决问题的方法,解决方法如下:    [root@localhost ~]# cd /etc/sysconfig/network-scripts/    [root@localhost networ...

2018-05-14 06:58:42 6723 3

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除