라벨이 Check인 게시물 표시

Linux(Ubuntu) Check your computer resource status or components model

이미지
Basic Provide by Ubuntu(Linux) Check Your computer resource status(pre-installed) $ top copy Check Your computer resource status(need to install) $ htop copy check my Linux ip $ curl https://ipinfo.io/ip copy check ubuntu(linux) version $ lsb_release -a copy check cpu model by using Ubuntu $ lscpu copy

Ubuntu(Linux) Check and Set TimeZone in Ubuntu 20.04

이미지
  Checking your current Ubuntu TimeZone $ cat /etc/timezone copy Get more detail about your current Ubuntu TimeZone $ timedatectl copy Get list of Ubuntu TimeZone $ timedatectl list-timezones copy Get one list of Ubuntu TimeZone $ timedatectl list-timezones | grep [conuntry : ex America] copy Set your Ubuntu TimeZone $ sudo timedatectl set-timezone [select timezon : ex America/Adak] copy

node.js check how long you run your PC

이미지
  Please read how to initialize npm from this  post. 1. Uptime First, you need to type the 'const os = require('os');' to import the os module. After that type 'console.log(os.uptime());'.  Now run the node to run index.js or index. Enter: need to check your file path - node index.js - node index The number is a second. 2. variable build const variable to put 'os.uptime()' - 'os_time' 3. Divide the number to 3600(using console.log) Now print the number(os_time/3600) to find how long your does your OS run(hour).

node.js check your RAM specification

이미지
  Please read how to initialize npm from this  post. 1. Free Memory First, you need to type the 'const os = require('os');' to import the os module. After that type 'console.log(os.freemem());'.  Now run the node to run index.js or index. Enter: need to check your file path - node index.js - node index 2. Total Memory First, you need to type the 'const os = require('os');' to import the os module. After that type 'console.log(os.totalmem());'.  Now run the node to run index.js or index. Enter: need to check your file path - node index.js - node index After you type 1,2 Your OS system RAM info will appear on the Terminal.

node.js check your CPU specification

이미지
 Please read how to initialize npm from this post. 1. Arch First, you need to type the 'const os = require('os');' to import the os module. After that type 'console.log(os.arch());'.  Now run the node to run index.js or index. Enter: need to check your file path - node index.js - node index 2. CPUs First, you need to type the 'const os = require('os');' to import the os module. After that type 'console.log(os.cpus());'.  Now run the node to run index.js or index. Enter: need to check your file path - node index.js - node index After you type 1,2 Your OS system CPU info will appear on the Terminal.

node.js check your OS specification

이미지
Enter 'npm init' to install 'package.json' Use Terminal to enter the information. Check your information and press 'enter'. Check your package.json. First, you need to type the 'const os = require('os');' to import the os module. After that type 'console.log(os.platform());'.  Now run the node to run index.js or index. Enter: need to check your file path - node index.js - node index Your OS system will appear.