find命令是Linux系统中非常重要也是很常用的命令之一,可以根据指定的参数搜索以及定位文件和目录的列表,可以通过权限、用户、用户组、文件类型、日期、大小和其他可能的条件来查找文件 第一:使用find命令查找/etc目录下名字是inittab的文件,执行 find /etc/ -name inittab -name为参数,表示名字 第二:在当前目录下,找到文件名是inittab的文件,首先进入目录,执行 find . -name inittab 其中”.” 表示当前目录 第三:查找名字是tmp的文件夹,执行命令 find /etc -typd d -name tmp 其中/etc表示在etc目录下搜索 -type d表示执行指定为文件夹 第四:找到/tmp目录下的.log文件,并将其删除掉,执行命令 find /tmp -type f -name *.log -exec rm -rf {} \; find ~/Documents/ -name test*.mp4 -exec mv {} ./ \; 其中-type f表示执行文件类型 -exec表示执行命令 {}表示查找到的目标 ./表示当前目录 第五:查找/var/log目录下30天以前修改的文件,执行命令 find /var/log -type… Continue reading find
libreoffice
root135@root135:~/Downloads/LibreOffice_25.2.0.3_Linux_x86-64_deb$ pwd /home/root135/Downloads/LibreOffice_25.2.0.3_Linux_x86-64_deb sudo dpkg -i /home/root135/Downloads/LibreOffice_25.2.0.3_Linux_x86-64_deb/DEBS/ 安装完成之后,命令行libreoffice会出现bash: libreoffice: command not found whereis root135@root135:~$ whereis libreoffice libreoffice: /etc/libreoffice /usr/local/bin/libreoffice root@root135:/usr/local/bin# ls -lth total 36K lrwxrwxrwx 1 root root 36 Jan 24 20:32 libreoffice25.2 -> /opt/libreoffice25.2/program/soffice -rwxr-xr-x 1 root staff 233 Nov 6 20:01 normalizer -rwxr-xr-x 1 root staff 214 Nov 6 20:01 pyspnego-parse -rwxr-xr-x 1… Continue reading libreoffice
python加减乘除
>>> print (3//2) 1 >>> print (3**2) 9 >>> print (3/2); 1.5 >>> print (10/3); 3.3333333333333335 >>> print (10//3); 3 >>> print (10*3); 30 >>> print (10**3); 1000 >>> print (10+3); 13 >>> print (10+3-1); 12 >>> print (10+(3-5)); 8 >>> print (10/(3-5)); -5.0 >>> print (10//(3-5)); -5 >>> print (10**(3-5)); 0.01 >>> print (10*(3-5));… Continue reading python加减乘除