Linux磁盘与文件系统管理 文件系统的组成 文件系统通常会将这两部份的数据分别存放在不同的区块,权限与属性放置到 inode 中,至于实际数据则放置到 data block 区块中。 另外,还有一个超级区块 (superblock) 会记 录整个文件系统的整体信息,包括 inode 与 block 的总量、使用量、剩余量等 每个 inode 与 block 都有编号,至于这三个数据的意义可以简略说明如下: superbl 2023-09-20 Linux #Linux
Linux SUID,SGID,SBIT权限 Linux SUID,SGID,SBIT SUID SUID(Set User ID): SUID权限位允许一个程序在执行时暂时获得文件所有者的权限。当一个可执行程序具有SUID权限时,无论哪个用户执行该程序,程序都会以文件所有者的权限来运行。这对于某些需要特定权限才能执行的任务非常有用。SUID权限只能应用于可执行文件,对于其他类型的文件无效。 常见的是passwd命令,/usr/bin/pa 2023-09-19
halo博客迁移到hexo——FrontMatter生成程序 Halo博客两年崩了两三次,受不了了,干脆换到halo了,写了个脚本生成front matter Python 程序 import os import datetime import re def add_front_matter(folder_path): # 获取文件夹名称作为categories folder_name = os.path.basename(folder 2023-09-19 Play #Play
Hello World Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick 2023-09-19
Java数据结构ArrayList ArrayList package cn.meowrain.Datastructure.collection; public class ArrayList<E> { private int size = 0; private int capacity = 10; private Object[] array = new Object[capacity]; 2023-09-19 数据结构
Java数据结构LinkedList实现 LinkedList实现: package cn.meowrain.Datastructure.collection; public class LinkedList<E> { //链表的头结点,用于连接之后的所有结点 private final Node<E> head = new Node<>(nul 2023-09-19 数据结构
Java数据结构Stack Stack.java package cn.meowrain.Datastructure.collection; import java.util.NoSuchElementException; public class Stack<E> { private final Node<E> head = new Node<>(null); public 2023-09-19 数据结构
Python数据结构 Python数据结构 list(列表) 创建两个列表List name = ["meowrain","mike","John"] matrix = [[0,1],[2,3]] 访问列表中的值 name = ["a","b","c"] matrix = [[0,1],[2,3]] print(name[0]) print(matrix[0]) print(matrix[0][0]) 将列表中的 2023-09-19 数据结构
《数据结构笔记》栈 栈 用数组实现栈 #include <iostream> using namespace std; int MAX_SIZE = 10; // 定义栈的最大容量 int *Stack = new int[MAX_SIZE]; // 动态分配数组空间 int top = -1; // 栈顶指针初始化为-1 void push_b 2023-09-19 数据结构
《数据结构笔记链表篇 第一个链表程序 // 第一个链表程序 #include <iostream> struct Node{ int data; Node* next; }; int main() { Node* A = NULL; // Node* temp = (Node*)malloc(sizeof(Node)); Node* temp 2023-09-19 数据结构