Lunski's Clutter

This is a place to put my clutters, no matter you like it or not, welcome here.

0%

Windows小技巧

Windows也是可以很好用的!!!

小技巧

  • 壓縮檔中的文字文件解壓完是亂碼用word開可以選編碼

常用軟體

  • Sourcetree: 方便追蹤git
  • NetBeans: Java IDE
  • Simplenote: 支持MD的筆記
  • Sqldeveloper: 看資料庫

換目錄

檔案總管中選取想要的目錄>在網址列輸入:「cmd」,按一下 Enter 鍵

副檔名

檢視> 副檔名

遠端共享硬碟

subst T: C:\Temp\RdpTransfer 新增T槽

子系統

截圖

win+shift+S

更改cmd顏色

COLOR 背景前景
COLOR 0A
0 = 黑色 8 = 灰色
1 = 藍色 9 = 淡藍色
2 = 綠色 A = 淡綠色
3 = 藍綠色 B = 但藍綠色
4 = 紅色 C = 淡紅色
5 = 紫色 D = 淡紫色
6 = 黃色 E = 淡黃色
7 = 白色 F = 亮白色

Windows media player將cd存成音樂檔

https://blog.xuite.net/yh96301/blog/47552086-Windows+Media+Player%E5%B0%87CD%E9%9F%B3%E6%A8%82%E8%BD%89%E6%8F%9B%E7%82%BAMP3

合併csv

將所有的csv檔案放到一個資料夾,位置任意。
開啟cmd,切換到存放csv的資料夾,也可以在csv資料夾中,按住shift加滑鼠右鍵,選擇在此處開啟命令視窗。
輸入copy *.csv all-groups.csv,all-group的名字,可以任意。然後按enter,等待完成就可以了。
開啟csv資料夾就可以看到all-group.csv

設定開機自動執行

PowerShell

  • 裝Vim

  • grep: select-string

  • 看歷史:
    cat (Get-PSReadlineOption).HistorySavePath

  • 終止程序

1
2
3
1. CMD as run as administrator
2. Enter netstat -a -o -n and hit enter. Now you can see like below. Port can see Local Address column after : sign.
3. select the process id(not port) that your port running and type taskkill /F /PID <process_id_here> command and hit enter.

Cmdlet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
檢查哪些進程正在降低您的PC速度
Get-PhysicalDisk | Where-Object {$_.HealthStatus -ne 'Healthy'}

檢查哪些進程正在降低您的PC速度
CPU
Get-Process | Sort-Object CPU -Descending
記憶體
Get-Process | Sort-Object WorkingSet -Descending

檢查系統事件日誌
Get-EventLog -LogName System -Newest 10
Get-EventLog -LogName Application -EntryType Error -Newest 10

Cmdlet的.net語句,擴充傳統win指令
get-alias 看指令與擴充對應
| 傳給下個指令
.ps1 powershell 的bash結尾

cmd輸入ls.exe /?查看功能。

Windows套件管理比較

  • Chocolatey: 套件最廣,自動化部屬但需要管理員權限
  • Scoop: 使用簡單但資源/支援較少
  • winget: 親兒子安全保障但太新

燒系統用rufus


如果你覺得這篇文章很棒,請你不吝點讚 (゚∀゚)

Welcome to my other publishing channels