Page 100 - Nodejs 교과서 개정2판
P. 100

$	node	os
           운영체제	정보---------------------------------
           os.arch():	x64
           os.platform():	win32
           os.type():	Windows_NT
           os.uptime():	53354
           os.hostname():	DESKTOP-RRANDNC
           os.release():	10.0.18362
           경로---------------------------------
           os.homedir():	C:\Users\zerocho
           os.tmpdir():	C:\Users\zerocho\AppData\Local\Temp
           cpu	정보---------------------------------
           os.cpus():	[	{	model:	'Intel(R)	Core(TM)	i5-9400F	CPU	@	2.90GHz',
           				speed:	2904,
           				times:	{	user:	970250,	nice:	0,	sys:	1471906,	idle:	9117578,	irq:	359109	}	},
           				//	다른	코어가	있다면	나머지	코어의	정보가	나옴
           		]
           os.cpus().length:	6
           메모리	정보---------------------------------
           os.freemem():	23378612224
           os.totalmem():	34281246720




         process ё୓৬ Ҁ஖ח ࠗ࠙ب ઑӘ ࠁੑפ׮  PT ݽٕب ࢎਊ੗ ஹೊఠ੄ ਍৔୓ઁ ੿ࠁܳ оઉয়ח Ѫ੉޲۽

         ௑ࣛ Ѿҗо ੉ ଼җ ׮ܳ Ѫੑפ׮

            • os.arch()  process.arch৬ زੌ೤פ׮

            • os.platform()  process.platformҗ زੌ೤פ׮
            • os.type()  ਍৔୓ઁ੄ ઙܨܳ ࠁৈસפ׮

            • os.uptime()  ਍৔୓ઁ ࠗ౴ ੉റ ൒ܲ दр ୡ ਸ ࠁৈસפ׮  process.uptime()਷ ֢٘੄ प೯ दр੉঻
             णפ׮

            • os.hostname()  ஹೊఠ੄ ੉ܴਸ ࠁৈસפ׮
            • os.release()  ਍৔୓ઁ੄ ߡ੹ਸ ࠁৈસפ׮

            • os.homedir()  ക ٣۩ఠܻ ҃۽ܳ ࠁৈસפ׮

            • os.tmpdir()  ੐द ౵ੌ ੷੢ ҃۽ܳ ࠁৈસפ׮
            • os.cpus()  ஹೊఠ੄ ௏য ੿ࠁܳ ࠁৈસפ׮

            • os.freemem()  ࢎਊ оמೠ ݫݽܻ 3". ܳ ࠁৈસפ׮

            • os.totalmem()  ੹୓ ݫݽܻ ਊ۝ਸ ࠁৈસפ׮
          


           /PUF ™ ௏য ѐࣻ ഛੋೞӝ
   95   96   97   98   99   100   101   102   103   104   105