Skip to main content

Command Palette

Search for a command to run...

system commands

Published
•2 min read•View as Markdown
  • uname : used to get type of OS

  • uname -r : used to get kernel version of our OS

  • uname -a : used to get full info about OS

  • clear: this command is used to clear the clear (or) you can use ctrl + l as a short cut

  • uptime : used to get since how long our system is in running state

  • uptime -p : this will give only time

  • hostname: used to get private dns name of our system

  • hostname -i : used to get private ip of our system

  • hostnamectl set-hostname “swiggy” : used to change hostname

  • ip addr : used to get private IP

  • ip route : used to get private IP

  • ifconfig : used to get private IP

  • date : to get todays date

  • timedatectl : used to get timezones

  • timedatectl set-timezone Asia/Kolkata : used to change Timezone to IST

  • who : used to see how many users have been loggin into your system

  • whoami : used to see the current user.

  • ps : used to see the running processors in system

  • kill -9 PID : used to kill a processor

  • date : Shows system date and timestamp

  • date +”%d” : Prints day of the month (01-31)

  • date +”%m” : Prints the month of the year 01-12

  • date +”%y” : Prints only the last two digits of Year

  • date +”%H” : Prints the hour 00-23

  • date +”%M” : Prints the Minute of the hour 00-59

  • date +”%S” : Prints the current seconds count in the minute (00-60)

  • date +"%D" : Prints Date in MM/DD/YY

  • date +”%F” : Prints only the Full date as YYYY-MM-DD

  • date +”%A” : Prints the Day of the Week Saturday-Sunday

  • date +”%B” : Prints the month between January-December