Connection RDP
xfreerdp /u:<username> /p:<password> /v:$IP
powershell
Set-Location
: déplacement ds les répertoires - équivalent cd
Get-ChildItem
: lister répertoires - équivalent ls
Path
Specifies a path to one or more locations. Wildcards are accepted.File / -Directory
To get a list of files, use the File parameter. To get a list of
directories, use the Directory parameter. You can use the Recurse
parameter with File and/or Directory parameters.Filter
Specifies a filter to qualify the Path parameter.Recurse
Gets the items in the specified locations and in all child items of the locations.Hidden
To get only hidden items, use the Hidden parameter.ErrorAction SilentlyContinue
Specifies what action to take if the command encounters an error.Lister tout (fichiers cachés ET non cachés)
Get-ChildItem -File -Force
Get-Content -Path file.txt
: lire contenu fichier (équivalent cat
)
Select-String
: équivalent de grep
Select-String -Path 'c:\\users\\administrator\\desktop' -Pattern '*.pdf'
Get-Help
: équivalent de man