鳥哥

bc計算器 scale=4 小數是4位

whatis ls
make what is
ls --help
man ls
man -k pass
info pass

[root@centos01 ~]# ls /etc/init.d/ #服務所在的文件夾

[root@centos01 ~]# runlevel #查找自己在哪個級別 n 表示上一個沒有
N 5
-bash-4.1# init 3 #切換到3級別的服務

級別0 關機模式
級別1 單用戶模式,相當于windows的安全模式
級別2 單用戶模式,不能使用nfs
級別3 正常的模式,不能使用圖形化模式
級別4 未定義
級別5 圖形化界面
級別6 重啟

-bash-4.1# startx 啟用圖形化界面

-bash-4.1# chmod -R 000 01 #遞歸改變01文件夾權限

chown tom 01 #改變01文件夾為tom

chown tom:tom 01 #把文件夾改為tomf個人和tom組
chgrp tom 01 #把所屬組改為tom組
tree #查看文件樹結構
[root@centos01 ~]# lsb_release -a #查看centos 是哪個版本
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.4 (Final)
Release: 6.4
Codename: Final
[root@centos01 ~]# cat /etc/issue #查看centos 是哪個版本
CentOS release 6.4 (Final)
Kernel \r on an \m

創建目錄
[jack@centos01 ~]$ mkdir xx yy zz #同時創建xx yy zz 文件夾
[jack@centos01 ~]$ mkdir -p 01/02/03 #同時創建目錄和子目錄

[root@centos01 ~]# echo $PATH #環境變量

[jack@centos01 ~]$ ls -ld --time=atime 01 #文件夾的訪問時間

[jack@centos01 ~]$ ls -ld --cime=atime 01 #文件夾的的生成時間

[jack@centos01 ~]$ ls -R 01 #遞歸顯示文件夾里面內容
[jack@centos01 ~]$ cp /01/* #COPY 01 文件夾所有內容
[jack@centos01 ~]$ cp -p /01/* #copy文件包括屬性
[jack@centos01 ~]$ cp -a /01/* #copy 所有內容包括屬性
[jack@centos01 ~]$ cp -u /01/* #copy 對比最新文件,以最新文件為準
[jack@centos01 ~]$ cp xx yy #copy 快捷方式為實為xx快捷方式 的原文件
[jack@centos01 ~]$ cp -d xx yy #copy 快捷方式為實為xx快捷方式
[jack@centos01 ~]$ dirname /etc/sysconfig/network-scripts/ifcfg-eth0 #顯示該目錄目錄名
/etc/sysconfig/network-scripts

[jack@centos01 ~]$ cat -n /etc/sysconfig/network-scripts/ifcfg-eth0 #查看文本以行數顯示
1 DEVICE=eth0
2 HWADDR=00:0c:29:79:38:bb
3 TYPE=Ethernet
4 UUID=31b2e3cb-096e-41a8-a6aa-da6db0935222
5 ONBOOT=yes
6 NM_CONTROLLED=yes
7 BOOTPROTO=static
8 IPADDR=192.168.1.7
9 NETMASK=255.255.255.0
10 DNS2=114.114.114.114
11 GATEWAY=192.168.1.1
12 DNS1=202.96.134.133
13 IPV6INIT=no
14 USERCTL=no
[jack@centos01 ~]$ nl /etc/sysconfig/network-scripts/ifcfg-eth0 #查看文本以行數顯示

more 文件名 然后 :/ 22 查找22并高亮
tail -f *.log 時時查看日志變化

[root@centos01 ~]# od -t c /bin/ls #查看二進制文件內容
[root@centos01 ~]# strace /bin/ls #查看二進制文件內容

查找命令文件
http://www.jb51.net/os/RedHat/1307.html

[root@centos01 ~]# which setup #命令位置
/usr/sbin/setup
[root@centos01 ~]# whereis date #命令位置
date: /bin/date /usr/share/man/man1/date.1.gz /usr/share/man/man1p/date.1p.gz
[root@centos01 ~]# whereis -b date #命令位置
date: /bin/date
[root@centos01 ~]# whereis -m date #命令位置
date: /usr/share/man/man1/date.1.gz /usr/share/man/man1p/date.1p.gz
[root@centos01 ~]# locate ifcfg #查找“ifcfg” 相關文件
[root@centos01 ~]# updatedb #如新創建的文件需要更新updatedb數據庫
[root@centos01 ~]# find / -name *ifcfg* #在/ 目錄下查找 ifcfg 相關文件
[root@centos01 ~]# find / -name "*.log" #查找.log 文件類型的文件
[root@centos01 ~]# find / -user jack #查找jack用戶的所有文件
[root@centos01 ~]# find / -user jack -group market #查找屬于jack 又屬于market組的文件
[root@centos01 ~]# find / -user jack or -group market #查找屬于jack 或者屬于market組的文件
[root@centos01 ~]# find / -uid 500 #查找uid為500 這個用戶的文件
[root@centos01 ~]# find / -size +2M #查找大于2M的文件
[root@centos01 ~]# find / -size-2M #查找小于2M的文件
[root@centos01 ~]# find / -size +2M -size -5M #查找大于2 小于5M的文件
[root@centos01 ~]# find / -ctime 1 #查找大于一天的文件
[root@centos01 ~]# find / -ctime -1 #查找小于一天的文件
[root@centos01 ~]# find -cmin -1 #查找小于一分鐘的文件
[root@centos01 ~]# find -cmin -20 #查找小于20分鐘的時間
[root@centos01 ~]# find -newer 01 # 查找01 之前創建的文件
[root@centos01 ~]#find -atime n? # 查找系統中最后n*24小時訪問的文件
[root@centos01 ~]#find /opt/soft/test/ -perm 777 #查找ugos777權限的文件
[root@centos01 etc]# find . -size +1000c -print #按大小查找文件
[root@centos01 test]# find -perm +644 #ugo 或, 6 4 4 的權限
./01
./02
./wanger
[root@centos01 test]# find -perm -644 # ugo u要有6 g要有4 o 要有4 的權限的文件

[root@centos01 test]# find -perm -644???????? # ugo? u要有6 g要有4 o 要有4 的權限的文件
[jack@centos01 ~]$ filefrag -v 01?????? #查看01文個屬于哪個塊
[root@centos01 ~]# dumpe2fs /dev/sda1???? #查看分區1信息
[root@centos01 ~]# ls -id /etc/
913922 /etc/
[root@centos01 01]# ls -id /?????????? #逐步找塊信息
2 /
[root@centos01 01]# ls -id /01/
653033 /01/
[root@centos01 01]# ls -id /01/02
653040 /01/02?
?
[root@centos01 01]# dumpe2fs? /dev/sda1 |more???
[root@centos01 01]# df -h????? #查看已掛載文件系統情況
[root@centos01 01]# du -sh /etc/??? #查看etc文件夾大小
?
[root@centos01 ~]# fdisk -l /dev/sda?? #查看sda分區信息
[root@centos01 ~]# fdisk /dev/sda????? #對硬盤進行分區
[root@centos01 ~]# partprobe /dev/sda??? #更新sda 分區表
?
[root@centos01 ~]# mkfs. #格式化文件系統
mkfs.cramfs?? mkfs.ext3???? mkfs.ext4dev? mkfs.vfat????
mkfs.ext2???? mkfs.ext4???? mkfs.msdos?
?
[root@centos01 ~]# badblocks #檢查分區大小
[root@centos01 ~]# fsck??? -f -b
[root@centos01 ~]# badblocks -sv /dev/sda1???
[root@centos01 ~]# fuse -mv /dev/sda1
[root@centos01 ~]# cat /etc/fstab?? #開機自動掛載
[root@centos01 ~]# mount /dev/cdrom /mnt/?? #掛載光盤到/mnt
-bash-4.1# cp /etc/services .?????? #
[root@centos01 ~]# yum install ncompress??
[root@centos01 ~]# uncompress services.Z
[root@centos01 ~]# compress -v services
?
[root@centos01 test]# cp /etc/hosts .??? #copy hosts文件到當前目錄
[root@centos01 test]# cp /etc/hosts .
[root@centos01 test]# ls
hosts
[root@centos01 test]# gzip hosts #壓縮hosts文件
[root@centos01 test]# ls
hosts.gz
[root@centos01 test]# zcat hosts.gz? #查看host.gz 文件內容
127.0.0.1?? localhost localhost.localdomain localhost4 localhost4.localdomain4
::1???????? localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@centos01 test]# gzip -d hosts.gz??? #解壓host.gz 文件
[root@centos01 test]# gzip -c hosts >hosts.gz
[root@centos01 test]# ls
hosts? hosts.gz
[root@centos01 test]# zip hosts.zip hosts???? #壓縮hosts文件為hosts.zip
? adding: hosts (deflated 65%)
[root@centos01 test]# ls
hosts? hosts.zip
[root@centos01 test]# ls
hosts? hosts.zip
[root@centos01 test]# unzip hosts.zip???? #解壓hosts.zip 文件
[root@centos01 test]# tar cvf hosts.tar hosts?? #歸檔原文件
?
[root@centos01 test]# tar cvf hosts.tar hosts --remove-files?? #歸檔原文件,并保留原文件
?
[root@centos01 test]# tar tvf hosts.tar?? #不解壓,查看tar文件里面的內容
[root@centos01 test]# tar xvf hosts.tar???? #解壓tar文件
[root@centos01 test]# tar xx.tar * --remove-files???? #歸檔當前文件夾所有文件為xx.tar 并刪除原文件
[root@centos01 test]# tar tvf xx.tar #查看xx.tar 文件內容
[root@centos01 test]# tar xvf xx.tar 01?????? #只解壓xx.tar 里面的01 文件
[root@centos01 test]# tar zcvf xx.tar.gz? * --remove-files? #歸檔并壓縮當前文件夾
[root@centos01 test]# tar zxvf xx.tar.gz --remove-files #歸檔并解壓當前文件夾
mount
dd
dump
cpio
?
vi 、vim文件編輯器
?
vi 命令模式
插入模式
ex模式
?
yy?? 3+yy???? u? p? dd??? wq q?? x !
?
:set number??? 再 4
s/*/*/
s/*/*/g
%s/*/*/g
1,12s/^/#/g??? 把第1到12行注釋掉
1,12s/^#//g??? 把第1到12行取消注釋
?
:set? number???????????? 3+shiftg?? 快速進入3行
?
r???? 再8
ctrl +v?? 可視模塊??? 選中,再按↑?? 按y 再按p手復制
:next?? 下一個文檔
:n 下一個文檔
:N
:sp? 分屏? 再ctrl+ww? 屏幕相互切換
[root@ntpserver sysconfig]# unix2dos???? linux文檔格式轉換為dos格式
?
[root@ntpserver ~]# cal ; date?
[root@ntpserver ~]# set #顯示所有的變量
[root@ntpserver ~]# env????? #顯示所有環境變量
[root@ntpserver ~]# export???? #顯示所有環境變量
[root@ntpserver ~]# export???? -p #顯示所有環境變量
?
[root@ntpserver ~]# export?? aa=3??????? #定義環境變量aa=3
[root@ntpserver ~]#??? aa=3???????????????? #定義本地變量aa=3
declare
?
[root@ntpserver ~]# echo $PS2? #查看SP2環境變量
>
[root@ntpserver ~]# echo $PS1
?
read aa??????? #輸入的值給aa
-bash-4.1# ulimit?? # 限制命令
?
history? -c??? #? 刪除歷史命令
?
stty -a??? 顯示標準設備輸入環境變量
?
-bash-4.1# echo $? 命令對錯
?
&& 與?? ||或
?
[root@ntpserver ~]# ifconfig eth0 |tee xx|grep "inet addr"?? 管道倒重定向
?
[root@centos01 ~]# cut -d: -f1 /etc/passwd???? #查看現有用戶
[root@centos01 ~]# last |cut -d" " -f1?? #查看最后登陸的用戶
[root@centos01 ~]# grep root /etc/passwd? --color?? #過濾passwd 文件中的root 并標顏色
[root@centos01 ~]# grep -inv root /etc/passwd? --color?? #-i 忽略大小寫;-n顯示在哪行出現 -v 排除找到的行
[root@centos01 test]# cut -d: -f3 passwd? | sort?????? #查找并排序
[root@centos01 test]# cut -d: -f3 passwd? | sort -n???? #查找并以數字的順序排序
[root@centos01 test]# cut -d: -f3 passwd? | sort -nr??? #從大到小的排序
[root@centos01 test]# sort -t: -k3 passwd??? #以第三部分排序
[root@centos01 test]# last |cut -d" " -f1 |sort -u??? #查找最后操作
[root@centos01 test]# last |cut -d" " -f1 |sort|uniq -c?? #重復多少次
[root@centos01 test]# wc passwd? # wc 34行53單詞數 1619 個字符
? 34?? 53 1619 passwd
?
[root@centos01 test]# cat passwd |tr -d ":"???? #刪除passwd里面所有的“:”
[root@centos01 test]# diff 01 02? 比較兩個文件的不同之處
-bash-4.1# grep tom passwd? --corlor?
-bash-4.1# grep 't.m' passwd? --color
-bash-4.1# grep '[Tt].m' passwd? --color
-bash-4.1# grep '^tom' passwd? --color
-bash-4.1# grep 'tom$' passwd? --color
?
grep 查找 sed? 修改?? awk
?
[root@proxy test]# cat xx.sh????? 腳本編寫
#!/bin/bash
#這是我的第一個腳本
date
echo $$
[root@proxy test]# ./xx.sh? #執行腳本
Sun May? 3 20:32:48 HKT 2015
2600
[root@proxy test]# bash xx.sh? 執#行腳本
Sun May? 3 20:32:52 HKT 2015
2602
[root@proxy test]# source xx.sh? #執行腳本
Sun May? 3 20:32:57 HKT 2015
1378
?
[root@proxy test]# cat xx.sh?????? #腳本定義變量
#!/bin/bash
#這是我的第一個腳本
read -p "請輸入您的名字:" name
echo "您好 $name"
[root@proxy test]# bash xx.sh
請輸入您的名字:tom
您好 tom
[root@proxy test]# declare -i bb?? #數值計算
[root@proxy test]# bb=7+8
[root@proxy test]# echo $bb
15
root@proxy test]# let bb=1+8
[root@proxy test]# echo $bb
9
[root@proxy ~]# cc=$((5+8))
[root@proxy ~]# echo $cc
13
[root@proxy test]# x #返回值
-bash: x: command not found
[root@proxy test]# echo $?
127
[root@proxy test]# echo $?
0
?
數值比較???? 字符比較
-eq ==
-gt >
-ge >=
-lt????????? <
-le <=
[root@proxy ~]# [ $aa -gt $bb ]
[root@proxy ~]# echo $?
1
[root@proxy ~]# [ $aa -gt $bb ] && echo 0k??? #比較兩數大小
[root@proxy ~]# [ $aa -lt $bb ] && echo 0k?
0k
[root@proxy ~]# [ -f /etc/passwd ] #passwd是否存在
[root@proxy ~]# [ -r /etc/passwd ]???????
[root@proxy ~]# [ -w /etc/passwd ]? #passwd是否寫權限
[root@proxy ~]# [ -x /etc/passwd ]
[root@proxy ~]# echo $?
1
[root@proxy ~]# cat yy.sh????? #判斷用戶是否存在
#!/bin/bash
grep ^$1 /etc/passwd
if [ "$?" -eq 0 ];then
??????? echo "$1 是存在的"
else
??????? echo "不存在$1"
fi
[root@proxy ~]# bash yy.sh tom
tom:x:500:500::/home/tom:/bin/bash
tom 是存在的
[root@proxy ~]# cat vv.sh
#!/bin/bash
#set -x
read -p "請輸入您的年齡:" name
if [ "$name" -le 0 ] || [ "$name" -ge 150 ]; then
??????? echo "請重新輸入您的年齡"
elif [ "$name" -gt 0 ] && [ "$name" -lt 20 ]; then
??????? echo "您好小孩子"
elif [ "$name" -ge 20 ] && [ "$name" -lt 50 ]; then
??????? echo "您好成年人"
else
??????? echo "您好,老年人"
fi
#case w是用做匹配用的
[root@proxy ~]# gpasswd? -a tom test???? #添加tom到test組
Adding user tom to group test
[root@proxy ~]# groups tom??? #查看tom屬于哪些組
tom : tom test
[root@proxy /]# useradd -D???? #查看默認值
[root@proxy /]# cat /etc/default/useradd
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
CREATE_MAIL_SPOOL=ye
[root@centos01 ~]# usermod -u 505 tom?? #修改用戶的uid
?
[root@centos01 ~]# passwd -S tom? #查看用戶狀態
tom LK 2015-05-05 0 99999 7 -1 (密碼已被鎖定。)
[root@centos01 ~]# passwd? -d tom?? #刪除tom密碼
清除用戶的密碼 tom。
passwd: 操作成功
[root@centos01 ~]# echo ggggufgg | passwd? --stdin tom??? #修改用戶密碼
[root@centos01 ~]# passwd -x 20 tom??? 最大使用20天
?
[root@centos01 ~]# chsh -s? /sbin/nologin? tom??? 修改用戶所在的shell
?
root@mini mnt]# cp /dev/cdrom yy.iso???? 直接把光盤文件轉為iso文件
root@mini mnt]#mount -o loop yy.iso /mnt/ 掛載光盤到/mnt
root@mini mnt] dd if=/dev/zero of=file1 bs=1M count=1?? 假設,dev設備默認為0,單位為1M,取一個單位,給file1
[root@mini test]# dd if=/dev/sdb1 of=/test/uu 備份所有的sdb1所有的文件到uu?
[root@mini test]# dd if=/test/uu of=/dev/sdb1 uu文件還原到sdb1
[root@mini test]# find / -name *ifcfg* |cpio -o > ifcf.cpio? 找到相關ifcf的文件打包為cpio
[root@mini test]# cpio -iu <ifcf.cpio? 解壓打包的文件

?

轉載于:https://www.cnblogs.com/wz0314/p/4458779.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/375093.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/375093.shtml
英文地址,請注明出處:http://en.pswp.cn/news/375093.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

[奇葩 bug]視圖在 ipad5 上正常顯示,在 iPad3上超出了邊界

一,問題分析 1.理論上 iPad 是按像素點排列的,可 iPad5為什么和 iPad3差別那么大??? 2.iPad3超出邊界的視圖,都有一個 leading 是superview 的 leading 加上-20.感覺是這個地方有問題. 3.重新添加一下約束,去掉了那個默認的 constraint 選項,就沒有那個-20的差值了.運行后發…

VMware虛擬機安裝

創建新的虛擬機&#xff1a;在 VMWare 中創建虛擬機&#xff0c;要求設置內存大小為 1G&#xff0c;CPU 為 2&#xff0c;硬盤大小自行選擇&#xff0c;網絡連接采用 NAT 模式&#xff0c;其他保持默認即可 上面是安裝啥系統就選啥系統 下一步 下一步 磁盤大小按自己需求來

二叉樹算法:中序、后序推導先序(數組遞歸實現 【*模板】)

中根序列和后根序列重建二叉樹 描述我們知道如何按照三種深度優先次序來周游一棵二叉樹&#xff0c;來得到中根序列、前根序列和后根序列。反過來&#xff0c;如果給定二叉樹的中根序列和后根序 列&#xff0c;或者給定中根序列和前根序列&#xff0c;可以重建一二叉樹。本題輸…

福昕熊雨前:PDFium開源項目的背后

今天編譯android的時候&#xff0c;無意中看到命令行提示出輸出編譯external/pdfium這個目錄&#xff0c;于是乎上百度搜索了一下&#xff0c;找到了如下關于PDF文件解析的開源代碼的文章&#xff1a; http://www.csdn.net/article/2014-06-23/2820351-Why-Foxit-Open-Sourced-…

Windows主機安全加固

Windows主機安全加固 賬戶安全 更名administrator本地用戶并禁用guest賬戶步驟: 點擊“開始”,找到“管理工具”,點擊里面的“計算機管理”,找到“本地用戶和組”

JS筆記 入門第四

小測試:注意:取消所有的設定可以直接使用document.getElementById("txt").removeAttribute("style");這個是個神奇的東西.<!DOCTYPE HTML><html><head><meta http-equiv"Content-Type" Content"text/html; charsetutf…

數論神題——進擊的羊角獸

數論神題 進擊的羊角獸 題目描述&#xff1a; 求滿足 \(ab|ab(a,b \leq n,a \neq b)\)的有序數對\((a,b)\)的個數。 solution 設\((a,b)d , (a < b \leq n)\),則$ axd , byd , ( x < y )$ \(ab|ab\) \((xy)d|xyd^2\) \(\because (xy, x)1,(xy, y)1\) \(\therefore (xy)|d…

靶場練習第一天~vulnhub靶場之Me-and-My-Girlfriend-1

兄弟們第一天打vulnhub靶場&#xff0c;我kali連靶場ip都掃不到&#xff0c;淚奔了&#xff0c;不說了開整 注意&#xff1a; vm虛擬機里面的編輯下面的虛擬機網絡編輯器&#xff0c;把除了NAT模式外的模式&#xff0c;其他模式不啟動。 至于為什么要這樣操作&#xff0c;感覺…

ubuntu的網絡配置

1&#xff0c;檢查網絡是否通暢 ping www.baidu.com 2&#xff0c;檢查網線是否插好 3&#xff0c;使用ifconfig查看當前活躍網絡接口 ifconfig 4&#xff0c;配置IP地址、子網掩碼、網關地址 sudo vi /etc/network/interfaces 確保此文件中有以下信息&#xff1a;&#xff08;…

pstree 命令詳解

作用&#xff1a; 以命令樹狀圖的方式展現進程之間的派生關系&#xff0c; 顯示效果比較直觀。 選項&#xff1a;-a 顯示每個程序的完整指令&#xff0c; 包含路徑&#xff0c; 參數或者是常駐服務的標志-c 不使用精簡標示法-h 列出樹狀圖&#xff0c;特別標明現在執行的程序-l…

ubuntu 開發板ping通虛擬機掛載nfs服務器

先.nfs服務配置1.設置開發板ip &#xff0c;同一網段2.開發板上操作&#xff1a;ifconfig eth0 192.168.1.203.測試是否能夠ping通&#xff1a;ping 192.168.1.194.測試開發板ip是否被占用&#xff1a; 在主機上&#xff1a;sudo ifconfig eth0 down,看開發板上的ip是否斷開。重…

靶場練習第二天~vulnhub靶場之 THE PLANETS: EARTH

前期準備&#xff1a; 靶機下載鏈接: https://pan.baidu.com/s/1_w8OZOPVsQaojq2rnKcdRA 提取碼: gguw kali攻擊機ip&#xff1a;192.168.101.10 靶機地址&#xff1a;192.168.101.101 一、信息收集 1.nmap掃描 因為kali與靶機在同一個網段下&#xff0c;使用nmap 192.168…

測試與封裝5.1

我的隊友是52吳舒婷&#xff0c;博客內容主要是白盒黑盒的測試數據分析 我們通過簡單的四則運算來進行程序的測試與封裝 我們主要完成的是事情 &#xff08;1&#xff09;封裝&#xff1a;將運算要運用的方法進行封裝 文件主要有三個&#xff1a;Calculate&#xff08;存放運算…

springmvc學習筆記--mybatis--使用插件自動生成實體和mapper

由于表對象在開發過程中會增刪字段&#xff0c;有時候需要重新生成實體和對應的mapper&#xff0c;這時候可以通過mybatis的插件的生成。 優點是快速簡潔&#xff0c;缺點同樣很明顯&#xff1a;覆蓋。因此&#xff0c;通常是在第一次搭建框架的時候使用&#xff0c;因為開發過…

靶場練習第三天~vulnhub靶場之narak

靶機下載鏈接: https://pan.baidu.com/s/1GxcSL6efwd0GcbY45WsD0A 提取碼: dhr5 一、信息收集 1.使用namp 192.168.101.0/24掃描該網段的地址&#xff0c;尋找靶機IP 2.直接訪問192.168.101.102 3.進行目錄掃描&#xff0c;dirb目錄掃描工具&#xff08;kali自帶的&#xff…

hdu 1754 塊狀鏈表 單點修改+單點查詢

經典的線段樹題目&#xff0c;也可以用塊狀鏈表做。 1 #include <iostream>2 #include <cstring>3 #include <cstdio>4 #include <cmath>5 using namespace std;6 7 const int N 200000;8 const int M 800;9 int n, m, tot;10 11 int max( int a, in…

靶場練習第四天~vulnhub靶場之Lazysysadmin

靶機下載鏈接: https://pan.baidu.com/s/1MMkgaYLRc78YX4s6nvqdjQ 提取碼: djpm 信息收集 查看kali的IP 使用nmap 192.168.101.0/24 探測靶機IP 發現開放445端口&#xff0c;并且開放的服務microsoft-ds。可以用enum4linux工具來掃描共享文件&#xff0c;使用方法: enum4linux…

關于代碼手寫UI,xib和StoryBoard

代碼手寫UI 這種方法經常被學院派的極客或者依賴多人合作的大型項目大規模使用。Geek們喜歡用代碼構建UI&#xff0c;是因為代碼是鍵盤敲出來的&#xff0c;這樣可以做到不開IB&#xff0c;手不離開鍵盤就完成工作&#xff0c;可以專注于編碼環境&#xff0c;看起來很cool很高效…

ODAC(V9.5.15) 學習筆記(十)TVirtualTable

名稱 類型 說明 Options TVirtualTableOptions 選擇項&#xff0c;包括&#xff1a; voPersistentData&#xff1a;在數據集關閉時不處理其相關數據內容 voStored&#xff1a;設計期對數據集的處理以及錄入的數據將保存在DFM文件中 AddField 增加一個字段&#xff0c…

SQLSERVER如何獲取一個數據庫中的所有表的名稱、一個表中所有字段的名稱

1.查詢數據庫中的所有數據庫名&#xff1a; 1 SELECT Name FROM Master..SysDatabases ORDER BY Name 2.查詢某個數據庫中所有的表名&#xff1a; 1 SELECT Name FROM SysObjects Where XTypeU ORDER BY Name 3.查詢表結構信息&#xff1a; 1 SELECT (case when a.colorder1 …