touch for powershell
Function Touch-File
{
$file = $args[0]
if($file -eq $null) {
throw "No filename supplied"
}
if(Test-Path $file)
{
(Get-ChildItem $file).LastWriteTime = Get-Date
}
else
{
echo $null > $file
}
}
Also in Shell:
- crop video from specific time to specific time ffmpeg
- switch session windows tmux
- linux list
- sound output raspberry pi
- how to add image in github readme
- check ubuntu version cmd
- macos homebrew unattended cask installs
- xampp linux
- sudo msys2
- how to update git on windows
- terminal delete fle
- start mariadb on linux terminal
- could not connect to server: Connection refused Is the server running on host and accepting TCP/IP connections on port 5432?
- start-process id powershell
- linux check used space in folder
- kill process on port windows
- connect to git repo with ssh-rsa
- how to check which packages homebrew has installed
- git push to heroku
- list interfaces centos
- exit from jshell
- check installed packages apt-get
- install kubernetess on mac
- extract a tar.xz file linux