Listenin Ports penceresinde hangi uygulamanın hangi portu dinlediği görülebilir. Hem TCP hem de UDP portlarını gösteriyor
3 Şubat 2025 Pazartesi
Windows resmon komutu - Resource Monitor
Network Sekmesi
2 Ekim 2023 Pazartesi
Windows msinfo32 komutu
Komut satırından msinfo32 yazıp çalıştırırsak bir pencere açılır. Bun pencerede bilgisayar hakkında bilgiler bulunur
23 Şubat 2023 Perşembe
Windows dir komutu
Giriş
Linux'taki find komutunun Windows'taki karşılığı dir komutudur.Örnek
Şöyle yaparız:
Belli attribute'lara sahip olan dosyaları gösterir. Örnekte sadece jpg olan dosyaların sayısı bulunur. Attribute olarak -d vererek dizinler atlanır.
bare format kullanır yani sadece dosya ismi+uzantısı veya dizin ismi şeklindedir.Çıktı da header yoktur. Eğer /s seçeneği ile kullanılırsa dizin ve dosyalar alt dizinler de dahil edildiği için full path olarak gösterilir.
s seçeneği
Bence recursive olarak adlandırılmalıydı.
dir *.cpp *.h *.java /b/sÖrnek
dir komutunda aranacak dizin seçeneklerden önce veya sonra gelebilir.dir /s /b "D:\FOLDER\*"a seçeneğiBelli attribute'lara sahip olan dosyaları gösterir. Örnekte sadece jpg olan dosyaların sayısı bulunur. Attribute olarak -d vererek dizinler atlanır.
Dir /b /a-d *.jpeg | find /c ".jpeg"b seçeneğibare format kullanır yani sadece dosya ismi+uzantısı veya dizin ismi şeklindedir.Çıktı da header yoktur. Eğer /s seçeneği ile kullanılırsa dizin ve dosyalar alt dizinler de dahil edildiği için full path olarak gösterilir.
s seçeneği
Bence recursive olarak adlandırılmalıydı.
15 Şubat 2023 Çarşamba
Powershell Get-PnpDevice - Plug And Play
Örnek
Şöyle yaparız
Get-PnpDevice -PresentOnly -Class CameraStatus Class FriendlyName InstanceId------ ----- ------------ ----------OK Camera Integrated Webcam USB\VID_0C45...OK Camera Integrated Webcam USB\VID_0C45...OK Camera Elgato Facecam
Windows pnputil komutu - Plug And Play
Örnek
Şöyle yaparız
pnputil /enum-devices /class Camera /connected
Çıktısı şöyle
Microsoft PnP Utility
Instance ID: USB\VID_0C45&PID_672E&MI_02\6&3d846a0&0&0002
Device Description: Integrated Webcam
Class Name: Camera
Class GUID: {ca3e7ab9-b4c3-4ae6-8251-579ef933890f}
Manufacturer Name: Microsoft
Status: Started
Driver Name: usbvideo.inf
Instance ID: USB\VID_0C45&PID_672E&MI_00\6&3d846a0&0&0000
Device Description: Integrated Webcam
Class Name: Camera
Class GUID: {ca3e7ab9-b4c3-4ae6-8251-579ef933890f}
Manufacturer Name: Microsoft
Status: Started
Driver Name: usbvideo.inf
Instance ID: USB\VID_0FD9&PID_0078&MI_00\8&e3fc9d&0&0000
Device Description: Elgato Facecam
Class Name: Camera
Class GUID: {ca3e7ab9-b4c3-4ae6-8251-579ef933890f}
Manufacturer Name: Microsoft
Status: Started
Driver Name: usbvideo.inf
20 Ekim 2022 Perşembe
Powershell Set-Location - Change Directory İçindir
Örnek
Şöyle yaparız
$currentDir = Get-Location # Save for setting back laterSet-Location ......Set-Location $currentDir
4 Ekim 2022 Salı
3 Ekim 2022 Pazartesi
Oturum Açma Seçenekleri
Giriş
How to Remove PIN and Password on Lock Screen with Local Account.Without Programs videosundan öğrendim. Ayarlar/Hesaplar veya Settings/Accounts menüsünden Parola veya Password kaldırılıyor
15 Eylül 2022 Perşembe
Windows mountvol komutu
/p seçeneği - remove the volume
Örnek
Şöyle yaparız
1. Enter mountvol to list all the volumes. D should look something like -\\?\Volume{b77a3ed1-0651-5gdf-90b1-d1a3672d96e4}\D:\You should remember which one was D for later.2. Enter mountvol D: /p which will unmount D.3. Enter diskpart4. Enter list volume and note volume D's index in the ### column. Let's say it's 1.5. Enter sel vol 1 to select volume D.6. Enter att vol set readonly yo make D read only.7. Enter det vol to see the volume's info and confirm that D is now read only.8. Enter exit to go back to the command prompt.9. Enter mountvol D: \\?\Volume{b77a3ed1-0651-5gdf-90b1-d1a3672d96e4}\ to remount D. Of course, replace the gibberish address from this example with the one you have listed in mountvol.10. reboot.
14 Temmuz 2022 Perşembe
Windows Batch pushd
Giriş
Açıklaması şöyle
To remember a folder, you could use the pushd command together with the popd command.To remember a folder :pushdTo return to the remembered folder :popdThese commands use a stack that can remember more than one folder.
Powershell Test-NetConnection
Örnek
Şöyle yaparız
> Test-NetConnection -ComputerName 172.18.17.215 -Port 30324ComputerName : 172.18.17.215RemoteAddress : 172.18.17.215RemotePort : 30324InterfaceAlias : OpenVPN TAP-Windows6SourceAddress : 172.31.252.65TcpTestSucceeded : True
27 Mayıs 2022 Cuma
PSReadline
Kurulum
Powershell 7'yi kurdum
Ayarlar
PSReadline etkin olarak gelmiyor. Önce halihazırda profile yoksa bir tane oluşturmak lazım. Şöyle yaparız
if (!(Test-Path -Path $PROFILE)) {New-Item -ItemType File -Path $PROFILE -Force}
Profile dosyasını açmak için şöyle yaparız
notepad $PROFILE
Dosyaya şu satırları ekleriz
Import-Module PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -HistoryNoDuplicates
Set-PSReadLineOption -Colors @{InlinePrediction = 'DarkGreen' }
# Browse history
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward- Böylece "sağ ok" ile önerileri kabul ederiz
- Yukarı ve aşağı ok ile tarihçeyi dolaşırız
23 Mart 2022 Çarşamba
Windows bcdedit komutu
Giriş
Açıklaması şöyle
BCDEdit is a command-line tool for managing Boot Configuration Data (BCD).
BCD files provide a store that is used to describe boot applications and boot application settings.
BCDEdit can be used for a variety of purposes, including creating new stores, modifying existing stores, adding boot menu options, and so on.
set seçeneği
Örnek
Docker Desktop çalışsın diye şöyle yaparız.
bcdedit /set hypervisorlaunchtype auto
Yoksa şu hatayı alırız"Hardware assisted virtualization and data execution protection must be enabled in the BIOS"
20 Mart 2022 Pazar
Windows attrib komutu
Giriş
Dosya veya dizini attributes hakkında bilgi verir.
H : Hidden anlamına gelir
S : System anlamına gelir
/d seçeneği
Örnek
Şöyle yaparız
Açıklaması şöyleC:\>attrib /dSH C:\$Recycle.BinR C:\Documents and SettingsA SH I C:\hiberfil.sysA SH C:\pagefile.sysC:\PerfLogsR C:\Program FilesR C:\Program Files (x86)H I C:\ProgramDataSH I C:\RecoveryA SH C:\swapfile.sysSH C:\System Volume InformationR C:\UsersC:\Windows
As you can see, the swapfile.sys, a system file has both +S and +H set, and thus it remains hidden unless you have the Hide protected operating system files (Recommended) unchecked in your settings.
The A stands for Archived, and the I for indexed. Type Attrib /? to get a full list of each letter.
In order to make the folder visible, you have to type Attrib -s -h "Old HDD"
Even though you can set the s and h individually, removing the s attribute also requires the h to be removed.
Also, explorer can set attributes on a file, but if you set it on a folder, the changes are usually ignored. With attrib, it just always works.
15 Mart 2022 Salı
Chocolatey - Komut Satırı Uygulama Yöneticisi
install
Örnek
9 Mart 2022 Çarşamba
VSCode Kurulum
Giriş
Linux Subsystem olarak Ubuntu kullanıyorum. Ubuntu'dan VSCode kullanmak için şöyle yaptım
1. Window's VSCode kurulur
2. Ubuntu'dan şöyle yapılır
Kurduğum eklentiler şöylesudo ln -s /path/to/vscode/Code /usr/local/bin/code
- Remote - WSL
- C/C++ Extension Pack
- Gradle for Java
Java kurmak için şöyle yaptım, ama sonra C++ projesinde bazı include header dosyalarının olmadığını gördüm
sudo apt install openjdk-17-jre-headlessBu sefer Oracle JDK 17 kurmak için şöyle yaptım
sudo add-apt-repository ppa:linuxuprising/java sudo apt update sudo apt install oracle-java17-installerKurulum penceresindeki seçenekleri kabul ettim. Daha sonra JAVA_HOME ortam değişkenini /etc/profile dosyasına ekledim
sudo vi /etc/profile
Eklenen satır şöyle
JAVA_HOME="/usr/lib/jvm/java-17-oracle"
Sonra bu dosyayı bir kere daha okutmak gerekti. Şöyle yaptım
source /etc/profile
Kontrol için de şöyle yaptım
$ echo $JAVA_HOME /usr/lib/jvm/java-17-oracle
9 Kasım 2021 Salı
Windows tasklist komutu
/fi seçeneği
Filtreler şöyleÖrnekSTATUSIMAGENAMEPIDSESSIONSESSIONNAMECPUtimeMEMUSAGEUSERNAMESERVICESWINDOWTITLEMODULES
Şöyle yaparız
tasklist /fi "WindowTitle eq TF*" /v /fo list
tasklist /fi "WindowTitle eq TF*" /v /fo csv
tasklist /fi "WindowTitle eq TF*" /v /fo list | find /i "TF"
/fo seçeneği
Çıktı formatını belirtir. {table | list | csv} seçeneklerinden birisi verilebilir
/v seçeneği
verbose yani detaylı çıktı verir.
29 Eylül 2021 Çarşamba
Windows where komutu
Giriş
Bu komutu yeri şöyle
Path içindeki bir dosyayı kolayca bulabilmeyi sağlar. Linux'taki "which" komutuna benzerC:\Windows\System32\where.exe
Örnek
Şöyle yaparız
where java D:\Kurulumlar\jdk-16.0.2.7-hotspot\bin\java.exe
13 Eylül 2021 Pazartesi
Windows mdsched komutu - Running a Memory Check
Giriş
Bu komutu ilk olarak burada gördüm. Tüm uygulamaları kapattıktan sonra komut satırından "mdsched.exe" çalıştırılır. Bilgisayarı yeniden başlatır ve bellek modüllerinin kontrolünü yapar. Hata varsa gösterir.
10 Ağustos 2021 Salı
Windows fsutil komutu
createnew
Belirtilen büyüklükte dosya oluşturur
Örnek
Şöyle yaparız
fsutil file createnew <filename> <length>
Kaydol:
Kayıtlar (Atom)
