Linux
dd if=/dev/zero of=test bs=1M count=100000 --製作test檔案為100000M
Windows
fsutil file createnew <file_name> <file_size_in_kBs>
fsutil file createnew test 1073741824 --製作test檔案為1G(要*1024)
Linux
dd if=/dev/zero of=test bs=1M count=100000 --製作test檔案為100000M
Windows
fsutil file createnew <file_name> <file_size_in_kBs>
fsutil file createnew test 1073741824 --製作test檔案為1G(要*1024)
centos 安裝 ssh
yum install openssh openssh-server
修改遠端ssh登入
vi /etc/ssh/sshd_config
將#PermitRootLogin yes 的#拿掉
請參閱
https://www.itread01.com/content/1548655050.html
https://www.itread01.com/p/1373923.html
https://codertw.com/%E4%BC%BA%E6%9C%8D%E5%99%A8/382291/
主要修正
允許單一IP
# vim /etc/hosts.allow最後一行加入:
sshd:IP:allow //多個IP可以按照此格式寫多行
# vim /etc/hosts.deny最後一行加入:
sshd:ALL //除了上面允許登入的IP,其它IP都拒絕登入
# service sshd restart
允許網段
# vim /etc/hosts.allow最後一行加入
sshd:x.x.x.*:allow
# vim /etc/hosts.deny最後一行加入:
sshd:ALL
# service sshd restart
只允許192.168.0.222以sct使用者身份、192.168.1.135以root使用者身份登入192.168.1.81
# vim /etc/ssh/sshd_config最後一行加入
AllowUsers sct@192.168.0.222 root@192.168.1.135 //多個使用者名稱@IP之間使用空格分隔
# service sshd restart
192.168.0.222以預設的root使用者身份不能正常登
建議可以嚐試 刪除 C:\Users\使用者名稱\AppData\Roaming\NDCODFApplicationTools 目錄,並重新啟動 ODF 文件應用工具來重設軟體預設值。
進入dos視窗,輸入 attrib +s +a +h (+h 後需要輸入一個空格!)並再將你想隱藏的文件/資料夾拖入命令行中,如果已經無需隱藏的話,可以重新打開「cmd」,然後輸入 attrib -s -a -h 並將你想隱藏的文件/資料夾拖入命令行中
1.Windows-->fsutil file createnew 檔名 檔案大小
2.Linux-->dd if=/dev/zero of=go.txt bs=1M count=1000 建立1000M的go.txt
刪除某個檔案/資料夾時,出現「找不到此項目」,而無法刪除檔案,該怎麼解決這個問題?
1.請先"建立一個檔案(我取名為 del.bat )"
2.開啟del.bat,填入
DEL /F /A /Q \\?\%1
RD /S /Q \\?\%1
3.存檔
4.將無法刪除的檔案或資料夾拖曳至此檔案ICON,即可刪除。
1.Windows 10 電腦或筆電要「開啟無線網路功能」,同樣的 Android 端也不需要真的連上網路
2.打開 Windows 10 內建的一個叫做「連線」的 App。
3.打開你的 Android 手機,開啟手機上的 Miracast 投影功能。