Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

change time linux

date -s “YYYY-MM-DD HH:MM:SS”
timedatectl set-time “YYYY-MM-DD HH:MM:SS”
hwclock -w
Comment

update time in linux

sudo date +"%d %b %Y %T %Z" -s "$(curl -s --head http://google.com | grep '^Date:' | cut -d' ' -f 3-)"
Comment

PREVIOUS NEXT
Code Example
Shell :: which equivalent powershell 
Shell :: to clean npm cache 
Shell :: copy directory 
Shell :: mongodb start 
Shell :: docker install python 
Shell :: git ignore updates to file 
Shell :: ngb-tabset install 
Shell :: reset gpg passphrase 
Shell :: bash function arguments 
Shell :: Git - checkout a specific remote branch 
Shell :: dartlang ubuntu 
Shell :: wsl2 taking much memory 
Shell :: grep without pattern 
Shell :: apt package info 
Shell :: how to add git bash to context menu 
Shell :: how to overwrite file linux cli 
Shell :: Powershell TLS 
Shell :: win add to startup 
Shell :: git push url change 
Shell :: install nix macos 
Shell :: matplotlib log colorbar 
Shell :: git commands download 
Shell :: git revert back to specific commit 
Shell :: git diff two commits 
Shell :: Error: Unable to find a match: ansible 
Shell :: install visual studio on ubuntu 
Shell :: dhcp release mac os 
Shell :: ssh permission denied publickey 
Shell :: gnome 42 force dark mode 
Shell :: ubuntu vs kali linux 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =