linux学习lesson14

linux执行tar命令报:tar: Removing leading `/‘ from member names linux执行tar命令报:tar: Removing leading `/' from member names 阅读详情

目录

1 df命令

2 du命令

3 磁盘分区


1 df命令

  • 命令df(disk filesystem的简写)用于查看已挂载磁盘的总容量、使用容量、剩余容量等,可以不加任何参数,默认以KB为单位显

-i:表示查看inodes的使用状况,如已使用100%,即使磁盘空间有富余,也会提示磁盘空间已满

-h:表示使用合适的单位显示,例如GB

-k、-m:分别表示以KB和MB为单位显示

[root@worker1 ~]# df -i
Filesystem       Inodes IUsed    IFree IUse% Mounted on
/dev/sda3      18812928 24912 18788016    1% /
devtmpfs         232207   370   231837    1% /dev
tmpfs            234575     1   234574    1% /dev/shm
tmpfs            234575   427   234148    1% /run
tmpfs            234575    13   234562    1% /sys/fs/cgroup
/dev/sda1        204800   330   204470    1% /boot
tmpfs            234575     1   234574    1% /run/user/0
[root@worker1 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3        18G  1.9G   17G  11% /
devtmpfs        908M     0  908M   0% /dev
tmpfs           917M     0  917M   0% /dev/shm
tmpfs           917M  8.5M  908M   1% /run
tmpfs           917M     0  917M   0% /sys/fs/cgroup
/dev/sda1       197M  103M   94M  53% /boot
tmpfs           184M     0  184M   0% /run/user/0
[root@worker1 ~]# df -k
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda3       18802688 1956628  16846060  11% /
devtmpfs          928828       0    928828   0% /dev
tmpfs             938300       0    938300   0% /dev/shm
tmpfs             938300    8700    929600   1% /run
tmpfs             938300       0    938300   0% /sys/fs/cgroup
/dev/sda1         201388  105224     96164  53% /boot
tmpfs             187664       0    187664   0% /run/user/0
[root@worker1 ~]# df -m
Filesystem     1M-blocks  Used Available Use% Mounted on
/dev/sda3          18362  1911     16452  11% /
devtmpfs             908     0       908   0% /dev
tmpfs                917     0       917   0% /dev/shm
tmpfs                917     9       908   1% /run
tmpfs                917     0       917   0% /sys/fs/cgroup
/dev/sda1            197   103        94  53% /boot
tmpfs                184     0       184   0% /run/user/0
  • free命令可以查看swap状态
[root@worker1 ~]# free
              total        used        free      shared  buff/cache   available
Mem:        1876604      106036     1642596        8704      127972     1637472
Swap:       1952764           0     1952764

 

2 du命令

  • 命令du(disk useage)用来查看某个目录或文件所占空间的大小,其格式为 du [-abckmsh] [文件或者目录名]

-a:表示全部文件和目录的大小都列出来。如果后面不加任何选项和参数,则只会列出目录(包含子目录)的大小。如果du命令不指定单位的话,默认显示单位为“KB”

-b:表示列出的值以B为单位输出。

-k:表示以KB为单位输出,这和默认不加任何选项的输出值是一样的。

-m:表示以MB为单位输出。

-h:表示系统自动调节单位。例如,如果文件太小,可能就几千字节,就以KB为单位显示;如果文件大到千兆字节,就以GB为单位显示。若一个文件小于4KB,当使用-k选项时,也会显示4KB,同理,使用-m选项时,也会有类似问题,这里涉及到系统存储单位为4096B即4KB

-c:表示最后加总

-s:表示只列出总和

[root@worker1 ~]# du -a /root/
4    /root/.bash_logout
4    /root/.bash_profile
4    /root/.bashrc
4    /root/.cshrc
4    /root/.tcshrc
4    /root/anaconda-ks.cfg
16    /root/.bash_history
4    /root/.ssh/known_hosts
4    /root/.ssh/id_rsa
4    /root/.ssh/id_rsa.pub
4    /root/.ssh/authorized_keys
16    /root/.ssh
0    /root/file1.txt.bak
0    /root/file2.txt.bak
4    /root/.lesshst
4    /root/dir1/file1.txt
4    /root/dir1
4    /root/file.txt
4    /root/hard.txt.bak
4    /root/file_windows.txt
4    /root/.Xauthority
84    /root/
[root@worker1 ~]# du -b /tmp/
6    /tmp/.ICE-unix
6    /tmp/.X11-unix
6    /tmp/.XIM-unix
6    /tmp/.font-unix
6    /tmp/.Test-unix
23    /tmp/lesson8/dir1/dir2
121    /tmp/lesson8/dir1
138    /tmp/lesson8
6    /tmp/lesson9/dir1
6    /tmp/lesson9/dir2/dir3
6    /tmp/lesson9/dir2/dir4
6    /tmp/lesson9/dir2/file2.txt
78    /tmp/lesson9/dir2
112    /tmp/lesson9
27    /tmp/dir2
6    /tmp/dir1/dir2
51    /tmp/dir1
4500    /tmp/
[root@worker1 ~]# du -k /tmp/
0    /tmp/.ICE-unix
0    /tmp/.X11-unix
0    /tmp/.XIM-unix
0    /tmp/.font-unix
0    /tmp/.Test-unix
4    /tmp/lesson8/dir1/dir2
8    /tmp/lesson8/dir1
8    /tmp/lesson8
0    /tmp/lesson9/dir1
0    /tmp/lesson9/dir2/dir3
0    /tmp/lesson9/dir2/dir4
0    /tmp/lesson9/dir2/file2.txt
0    /tmp/lesson9/dir2
0    /tmp/lesson9
0    /tmp/dir2
0    /tmp/dir1/dir2
4    /tmp/dir1
20    /tmp/
[root@worker1 ~]# du -m /tmp/
0    /tmp/.ICE-unix
0    /tmp/.X11-unix
0    /tmp/.XIM-unix
0    /tmp/.font-unix
0    /tmp/.Test-unix
1    /tmp/lesson8/dir1/dir2
1    /tmp/lesson8/dir1
1    /tmp/lesson8
0    /tmp/lesson9/dir1
0    /tmp/lesson9/dir2/dir3
0    /tmp/lesson9/dir2/dir4
0    /tmp/lesson9/dir2/file2.txt
0    /tmp/lesson9/dir2
0    /tmp/lesson9
0    /tmp/dir2
0    /tmp/dir1/dir2
1    /tmp/dir1
1    /tmp/
[root@worker1 ~]# du -h /tmp/
0    /tmp/.ICE-unix
0    /tmp/.X11-unix
0    /tmp/.XIM-unix
0    /tmp/.font-unix
0    /tmp/.Test-unix
4.0K    /tmp/lesson8/dir1/dir2
8.0K    /tmp/lesson8/dir1
8.0K    /tmp/lesson8
0    /tmp/lesson9/dir1
0    /tmp/lesson9/dir2/dir3
0    /tmp/lesson9/dir2/dir4
0    /tmp/lesson9/dir2/file2.txt
0    /tmp/lesson9/dir2
0    /tmp/lesson9
0    /tmp/dir2
0    /tmp/dir1/dir2
4.0K    /tmp/dir1
20K    /tmp/
[root@worker1 ~]# du -c /tmp/
0    /tmp/.ICE-unix
0    /tmp/.X11-unix
0    /tmp/.XIM-unix
0    /tmp/.font-unix
0    /tmp/.Test-unix
4    /tmp/lesson8/dir1/dir2
8    /tmp/lesson8/dir1
8    /tmp/lesson8
0    /tmp/lesson9/dir1
0    /tmp/lesson9/dir2/dir3
0    /tmp/lesson9/dir2/dir4
0    /tmp/lesson9/dir2/file2.txt
0    /tmp/lesson9/dir2
0    /tmp/lesson9
0    /tmp/dir2
0    /tmp/dir1/dir2
4    /tmp/dir1
20    /tmp/
20    total
[root@worker1 ~]# du -s /tmp/
20    /tmp/
  • 习惯上,比较常用的形式是 du -sh
[root@worker1 ~]# du -sh /tmp/
20K    /tmp/

 

 

3 磁盘分区

  • 在虚拟机关机状态,增加一个硬盘

3.1虚拟机->设置

3.2选择硬盘,点击下一步

 

3.3保持默认即可

3.4选择第一个,点下一步

3.5硬盘大小设置,因为做实验,本人设置5GB,点击下一步

3.6保持默认,点击完成

3.7点击完成

3.8开始界面就会有两个硬盘了,然后开启虚拟机

  • fdisk是Linux下硬盘的分区工具,是一个非常实用的命令,但是fdisk只能划分小于2TB的分区
  • fdisk [-l ] [设备名称],其选项只有-l。选项-l后面不加设备名称,会直接列出系统中所有的磁盘设备以及分区表;加上设备名称,则会列出该设备的分区表查看系统的硬盘信息
[root@worker1 ~]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000d76be

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      411647      204800   83  Linux
/dev/sda2          411648     4317183     1952768   82  Linux swap / Solaris
/dev/sda3         4317184    41943039    18812928   83  Linux

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
  • 由上信息,增加的硬盘是/dev/sdb/,fdisk /dev/sdb进行硬盘分区
[root@worker1 ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0x530aa6fb.

Command (m for help): m
Command action
   a   toggle a bootable flag
   b   edit bsd disklabel
   c   toggle the dos compatibility flag
   d   delete a partition
   g   create a new empty GPT partition table
   G   create an IRIX (SGI) partition table
   l   list known partition types
   m   print this menu
   n   add a new partition
   o   create a new empty DOS partition table
   p   print the partition table
   q   quit without saving changes
   s   create a new empty Sun disklabel
   t   change a partition's system id
   u   change display/entry units
   v   verify the partition table
   w   write table to disk and exit
   x   extra functionality (experts only)

Command (m for help):

p:表示打印当前磁盘的分区情况

n:表示建立一个新的分区

w:表示保存

q:表示退出

d:表示删除一个分区

Command (m for help): p

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System
  • 以上信息可以看到,硬盘还没有分区:
  • 现在进行,分4个主分区,前三个分区各为1GB,最后一个2G,步骤:
Command (m for help): p

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1):1    //因为这里保持默认值1,直接按回车了,这个分区号是可选的
First sector (2048-10485759, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-10485759, default 10485759): +1G
Partition 1 of type Linux and of size 1 GiB is set
Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): p
Partition number (2-4, default 2):2
First sector (2099200-10485759, default 2099200):
Using default value 2099200
Last sector, +sectors or +size{K,M,G} (2099200-10485759, default 10485759): +1G
Partition 2 of type Linux and of size 1 GiB is set

Command (m for help): n
Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): p
Partition number (3,4, default 3):3
First sector (4196352-10485759, default 4196352):
Using default value 4196352
Last sector, +sectors or +size{K,M,G} (4196352-10485759, default 10485759): +1G
Partition 3 of type Linux and of size 1 GiB is set

Command (m for help): n
Partition type:
   p   primary (3 primary, 0 extended, 1 free)
   e   extended
Select (default e): p
Selected partition 4
First sector (6293504-10485759, default 6293504):
Using default value 6293504
Last sector, +sectors or +size{K,M,G} (6293504-10485759, default 10485759):
Using default value 10485759
Partition 4 of type Linux and of size 2 GiB is set

Command (m for help): p

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     2099199     1048576   83  Linux
/dev/sdb2         2099200     4196351     1048576   83  Linux
/dev/sdb3         4196352     6293503     1048576   83  Linux
/dev/sdb4         6293504    10485759     2096128   83  Linux

Command (m for help): w //如果需要保存分区,输入w即可,保存退出
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
  • 查看刚才的分区状态
[root@worker1 ~]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000d76be

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      411647      204800   83  Linux
/dev/sda2          411648     4317183     1952768   82  Linux swap / Solaris
/dev/sda3         4317184    41943039    18812928   83  Linux

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     2099199     1048576   83  Linux
/dev/sdb2         2099200     4196351     1048576   83  Linux
/dev/sdb3         4196352     6293503     1048576   83  Linux
/dev/sdb4         6293504    10485759     2096128   83  Linux
[root@worker1 ~]#

 

  • 分区:主分区+扩展分区
  • 3个主分区,1个扩展分区,步骤:
  • 进入分区模式,输入d进行分区删除
[root@worker1 ~]# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): d
Partition number (1-4, default 4):4
Partition 4 is deleted

Command (m for help): d   
Partition number (1-3, default 3):3
Partition 3 is deleted

Command (m for help): d
Partition number (1,2, default 2):2  
Partition 2 is deleted

Command (m for help): d
Selected partition 1
Partition 1 is deleted

Command (m for help): p

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System

Command (m for help):

删除分区之后,再重新创建分区:

Command (m for help): p

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n      
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1):1
First sector (2048-10485759, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-10485759, default 10485759): +500M
Partition 1 of type Linux and of size 500 MiB is set

Command (m for help): n
Partition type:
   p   primary (1 primary, 0 extended, 3 free)
   e   extended
Select (default p): p
Partition number (2-4, default 2):2
First sector (1026048-10485759, default 1026048):
Using default value 1026048
Last sector, +sectors or +size{K,M,G} (1026048-10485759, default 10485759): +1G
Partition 2 of type Linux and of size 1 GiB is set

Command (m for help): n
Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): p
Partition number (3,4, default 3):3
First sector (3123200-10485759, default 3123200):
Using default value 3123200
Last sector, +sectors or +size{K,M,G} (3123200-10485759, default 10485759): +1G
Partition 3 of type Linux and of size 1 GiB is set

Command (m for help): n
Partition type:
   p   primary (3 primary, 0 extended, 1 free)
   e   extended
Select (default e): e
Selected partition 4
First sector (5220352-10485759, default 5220352):
Using default value 5220352
Last sector, +sectors or +size{K,M,G} (5220352-10485759, default 10485759):
Using default value 10485759
Partition 4 of type Extended and of size 2.5 GiB is set

Command (m for help): n
All primary partitions are in use
Adding logical partition 5
First sector (5222400-10485759, default 5222400):
Using default value 5222400
Last sector, +sectors or +size{K,M,G} (5222400-10485759, default 10485759): +1G
Partition 5 of type Linux and of size 1 GiB is set

Command (m for help): n
All primary partitions are in use
Adding logical partition 6
First sector (7321600-10485759, default 7321600):
Using default value 7321600
Last sector, +sectors or +size{K,M,G} (7321600-10485759, default 10485759): +1G
Partition 6 of type Linux and of size 1 GiB is set

Command (m for help): n
All primary partitions are in use
Adding logical partition 7
First sector (9420800-10485759, default 9420800):
Using default value 9420800
Last sector, +sectors or +size{K,M,G} (9420800-10485759, default 10485759):
Using default value 10485759
Partition 7 of type Linux and of size 520 MiB is set

Command (m for help): p

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     1026047      512000   83  Linux
/dev/sdb2         1026048     3123199     1048576   83  Linux
/dev/sdb3         3123200     5220351     1048576   83  Linux
/dev/sdb4         5220352    10485759     2632704    5  Extended
/dev/sdb5         5222400     7319551     1048576   83  Linux
/dev/sdb6         7321600     9418751     1048576   83  Linux
/dev/sdb7         9420800    10485759      532480   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
  • 查看新增硬盘分区后信息
[root@worker1 ~]# fdisk -l

Disk /dev/sda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000d76be

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      411647      204800   83  Linux
/dev/sda2          411648     4317183     1952768   82  Linux swap / Solaris
/dev/sda3         4317184    41943039    18812928   83  Linux

Disk /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x530aa6fb

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048     1026047      512000   83  Linux
/dev/sdb2         1026048     3123199     1048576   83  Linux
/dev/sdb3         3123200     5220351     1048576   83  Linux
/dev/sdb4         5220352    10485759     2632704    5  Extended
/dev/sdb5         5222400     7319551     1048576   83  Linux
/dev/sdb6         7321600     9418751     1048576   83  Linux
/dev/sdb7         9420800    10485759      532480   83  Linux
[root@worker1 ~]#

扩展学习parted分区gpt格式
http://www.apelearn.com/bbs/thread-7243-1-1.html​​​​​​​

传输线的特征阻抗 信号源内阻与所接传输线的特性阻抗大小相等且相位相同,或传输线的特性阻抗与所接负载阻抗的大小相等且相位相同,分别称为传输线的输入端或输出端处于阻抗匹配状态,简称为阻抗匹配。否则,便称为阻抗失配。有时也直接叫做匹配或失配。指一个电路输入端的等效阻抗。在输入端上加上一个电压源U,测量输入端的电流I,则输入阻抗Rin就是U/I。可以把输入端想象成一个电阻的两端,这个电阻的阻值,就是输入阻抗。- 对于电压驱动的电路,输入阻抗越大,则对电压源的负载就越轻,因而就越容易驱动,也不会对信号源有影响; 阅读详情

相关推荐

Oracle 11g R2 RAC 到单实例 Data Guard 搭建(RMAN备份方式)

Oracle RAC集群到单机的dataguard搭建过程

驰兔的博客 1722

记一次服务器清除挖矿木马操作记录

突然接到服务器告警,一台服务器的CPU已经达到了3000%,不用想,肯定是中了木马了,这完全论为了矿机了。问了一堆公司的安全砖家,都说没的救了,需要重新做系统了,但是和开发对接了下,这台服务器上存在众多重要的程序内容,无法直接重装操作系统。。。 这特么不是围栏老子呢吗? 好吧,抱着试一试的态度,我们来试一哈解决处理下吧。 1.查看现象 top 可以看到,一个进程2N6f1P,狠占CPU,占到...

skyfans的博客 2386

从外包到转正:一个华为OD亲历者的真实工作体验与避坑指南

本文分享了一位华为OD员工从外包到转正的真实经历与实用建议。通过详细解析华为OD的日常工作、转正核心指标、机试备考技巧及职场突围策略,为读者提供了一份全面的避坑指南。特别针对机试E卷的高频考点和刷题方法,给出了具体的数据分析和实战经验。

weixin_33686714的博客 699

深度Linux管家,Linux-如何成为一个优秀的管家(文件篇①)

知识前提:根据FHS(《文件系统层次化标准》)规定,Linux有一个树形目录,其中最重要的是根目录,所有的目录都位于根目录下。FHS规定了Linux根目录下该有哪些目录,这些特定的目录下应该放置什么数据。根目录下至少应该包括如下12个目录:⑴ /bin 放置可执行的命令文件⑵ /boot 放置系统核心和开机所需文件⑶ /dev 放置系统设备相关文件⑷ /etc 放置系统主要的配置文...

weixin_42502896的博客 290

基于FME—三调篇—尖锐角及小缝隙处理

1 问题分析: 该功能实现在FME较为简单,相对ARCGIS模型构建器以及ARCGIS ENGINE,FME更适合无代码基础的人群。在三调内业数据处理要求中,尖锐角是不允许存在的。本文基于FME实现了对尖锐角的自动查询与消除以及自动处理在消除尖锐角过程中产生的缝隙,并进行了拓扑检查,实现自动化批量处理尖锐角的功能,提高工作效率。 2 总体思路: 2.1 实现功能分析: 1.找出小于指定角度的尖锐角...

qq_33315579的博客 9180

DICOM三维重建:基于VTK实现三种面绘制算法

版本:VS2019、VTK9.0.1 #define vtkRenderingCore_AUTOINIT 3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2) #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL2) #include "vtkDICOMImageReader.h" #include "vtkRenderWindowInteractor.h" #i

一直在笑的博客 5922

python常用模块之os模块

python常用模块之os模块 os模块提供了很多允许你的程序和操作系统直接交互的功能 1.os.getcwd():获取当前工作目录,即当前python脚本工作的目录路径 In [1]: import os In [2]: os.getcwd() Out[2]: '/tmp' # 表示在/tmp目录下运行的 2.os.listdir():返回指定目录下的所有文件和目录名 In [3]: os....

weixin_30955617的博客 261

BUPT软件安全实验三

可以看出栈溢出对程序运行的安全性有很大的威胁,如果不对栈进行保护,只要系统中存在栈溢出漏洞,即可令攻击者通过非正当方法获取操作权限。(6)解决思考题,即:在不修改StackOverrun程序源代码的情况下,构造shellcode,通过JMP ESP的方式实现通过记事本打开shellcode.txt(可使用CreateProcessA或WinExec等API)。查看缓冲区信息,可以看到dest指向地址0x0012FAF0,其为数组的存放起始位置,也就是shellcode注入的起始位置。

7xun's space 1966

服务器中了挖矿病毒的检测及删除方法(如dhpcd,kdevtmpfs等)

最近一段时间,公司内网的linux服务器无故CPU占用很高,导致系统缓慢,严重影响研发部的正常工作。 经排查是部分linux服务器中了挖矿病毒,该病毒占满cpu进行挖矿,导致系统缓慢。 现将清除挖矿病毒的步骤梳理如下: 1. 检测服务器是否有挖矿病毒 使用top命令查看进程及占用cpu百分比, 如果该进程名称为随机字符串,且cpu占用非常高,则可能感染了挖矿病毒,见如下截图。 2. kill 病毒进程id kill掉CGroup的所有进程id systemctl status 病毒进程id 3. kil

阿拉修 2万+

用Pixhawk 2.4.8和PX4 1.13,从零搭建你的第一支无人机编队(附避坑清单)

本文详细介绍了如何使用Pixhawk 2.4.8飞控和PX4 1.13固件从零搭建低成本无人机编队系统。涵盖硬件选型、固件配置、多机通信和编队飞行逻辑开发的全流程,特别针对学生和爱好者提供实战验证的避坑方案,帮助实现多机协同飞行。

weixin_27219587的博客 402

Centos7安装NVIDIA驱动并在docker容器中使用GPU

Centos7安装NVIDIA驱动并在docker容器中使用GPU

运维giao的博客 2084

linux学习 lesson14定时任务和延时任务

一、延时任务 1. 什么延时任务 延时任务就是指定任务发生是一次性的,不重复的。延时任务有别于定式任务,定时任务往往是固定周期的,有明确的触发时间。而延时任务一般没有固定的开始时间,它常常是由一个事件触发的,而在这个事件触发之后的一段时间内触发另一个事件。 2.at命令 具体时间下执行 at 08:33 ##在8:33完成任务 基于现在时间之后执行...

飞翔的罗老汉 226

STM32CubeIDE下载程序报错:Failed to execute MI command: load G:\\Cube_IDE_EXP\\00_FIRST\\Debug\\00...如何解决??

🏆本文收录于 《全栈 Bug 调优(实战版)》 专栏。专栏聚焦真实项目中的各类疑难 Bug,从成因剖析 → 排查路径 → 解决方案 → 预防优化全链路拆解,形成一套可复用、可沉淀的实战知识体系。无论你是初入职场的开发者,还是负责复杂项目的资深工程师,都可以在这里构建一套属于自己的「问题诊断与性能调优」方法论,助你稳步进阶、放大技术价值 。

**My Coding Family** 2596

Lesson14:Linux基础操作和web程序部署

介绍了Linux最常用的命令,介绍了如何在Linux上安装JDK、Tomcat和Mysql,以及如何将Web程序部署到Linux上。

weixin_44258092的博客 1669

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

WINCC7.3破解文件

WINCC7.3硬件够破解文件,有需要的下载!WINCC7.3硬件够破解文件,有需要的下载!

【Linux lesson1】初识Linux系统

本文系统介绍了Linux操作系统的基础知识和核心概念,分为两大部分。第一部分详细讲解了Linux常用基本指令及其使用方法,包括网络配置、文件与目录操作、文件管理、文本搜索、压缩工具以及文件传输工具。每个指令都提供了语法说明和常用选项,帮助用户快速掌握日常操作。第二部分深入解析了权限管理机制,包括用户分类、权限的表示方法权限修改命令以及权限对不同文件类型的影响。特别强调了粘滞位的概念,解释了其在防止非拥有者删除文件中的重要性。整体内容结构清晰,便于初学者理解和应用Linux系统管理技能。

Dumpling527的博客 1168

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

[Linux系统编程——Lesson14.基础IO:系统文件IO]

本文深入探讨了Linux系统编程中的基础IO操作,从文件概念到系统调用实现。主要内容包括:1. 文件操作的本质,区分狭义(磁盘文件)和广义(Linux万物皆文件)理解;2. C语言文件接口与系统调用(如open/write/close)的关系;3. 关键概念文件描述符(fd)及其分配规则;4. 内核管理文件的机制(struct file结构体);5. 实际应用如重定向的实现原理。文章通过系统视角揭示了文件操作的底层逻辑,强调"一切皆文件"的Linux设计哲学,帮助读者建立从用户层到内核层

2401_83386596的博客 1527

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

linux学习lesson21

目录 1 安装软件包的三种方法 2 rpm包介绍 3 rpm工具用法 4 yum工具用法 5 yum搭建本地仓库 1 安装软件包的三种方法 rpm工具 RPM包是预先在Linux机器上编译并打包的文件,安装非常快捷。但它也有一些缺点,比如安装环境必须与编译时的环境一致或者相当,包与包之间存在着相互依赖的情况,卸载包时需要先把依赖的包卸载。如果依赖的包是系统所必需的,就不能卸载这个包,...

InfiniteIdea_Go的博客 442

linux学习lesson28

目录 1 awk命令 1 awk命令 拷贝练习文件 [root@worker1 dir9]# cp /etc/passwd ./testpasswd 打印第一个字段 [root@worker1 dir9]# head -n2 testpasswd | awk -F ':' '{print $1}' ROOT bin 打印整行 [root@worker1 dir9]# head -n...

InfiniteIdea_Go的博客 250

linux学习lesson8

目录 1 文件或目录权限chmod 2 更改所有者和所属组chown 3 umask命令 4 隐藏权限lsattr/chattr 1 文件或目录权限chmod chmod:change mode #ls -l rw-r--r--    //每三个字符为一段,第一段所属主,第二段所属组,第三段其他用户 r (4) 读 ,w (2) 写 ,x (1) 可执行 #ls -l /tm...

InfiniteIdea_Go的博客 309

【lesson1】Linux发展史

本文简单的介绍了Linux的发展史和为什么要有操作系统

m0_67077469的博客 235

原创 linux下c++ lesson14 函数模板

1-函数模板的概念.cpp #include <iostream> using namespace std; /* int add(int x, int y) { return x + y; } double add(double x, double y) { return x + y; }*/ template <typename T> //声明虚拟类型...

Tyeat的博客 169

linux下c++ lesson4 类的封装

1-圆的面积.cpp #include <iostream> using namespace std; /*struct Circle //结构体 { int r; double s; };*/ class Circle //类 { private: int r; //成员变量 属性 double s; public: void ...

Tyeat的博客 183

原创 linux下c++ lesson21 容器list

1-list.cpp #include <iostream> #include <list> #include <string.h> using namespace std; class Student { private: int id; char name[32]; public: Student(){} Student(int i, const...

Tyeat的博客 242

linux学习lesson43

文章目录1 Apache用户认证2 域名跳转3 Apache访问日志 1 Apache用户认证 指定目录认证 [root@linux01 ~]# vim /usr/local/apache2.4/conf/extra/httpd-vhosts.conf //把111.com那个虚拟主机编辑成如下内容 &amp;amp;amp;lt;VirtualHost *:80&amp;amp;amp;gt; DocumentRoot &amp;amp;quot;/data/www...

InfiniteIdea_Go的博客 315

linux学习lesson45

文章目录1 配置防盗链2 访问控制Directory3 访问控制FilesMatch 1 配置防盗链 通过限制referer来实现防盗链的功能 配置文件增加如下内容: [root@linux01 ~]# vim /usr/local/apache2.4/conf/extra/httpd-vhosts.conf &amp;amp;lt;VirtualHost *:80&amp;amp;gt; DocumentRoot &amp;quot;/data...

InfiniteIdea_Go的博客 275

linux学习lesson18

目录 1 进入编辑模式 2 vim命令模式 3 vim实践 1 进入编辑模式 i            在当前字符前插入 I            在光标所在行的行首插入 a            在当前字符后插入 A            在光标所在行的行尾插入 o            在当前行的下一行插入新的一行 O            在当前行的上一行插入新的一行  ...

InfiniteIdea_Go的博客 341
上一篇: linux学习lesson13
下一篇: linux学习lesson15
InfiniteIdea_Go
博客等级 码龄8年 3粉丝 77原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值