$ docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function calculateResourceMetrics() { | |
let resources = window.performance.getEntriesByType('resource'); | |
// Iterate through each resource | |
resources.forEach(function(resource) { | |
let transferedOverNetworkSize = `${resource.transferSize/1000}kb`; | |
let dnsLookupTime = `${resource.domainLookupEnd - resource.domainLookupStart}ms`; | |
let tcpHandshakeTime = `${resource.connectEnd - resource.connectStart}ms`; | |
let sslHandshakeTime = 0; | |
if (resource.secureConnectionStart > 0) { | |
sslHandshakeTime = resource.connectEnd - resource.secureConnectionStart; |
You navigate through linux file system using cd
command which means "change directory". You can use ls
command to print the files and sub-directories of any directory or use ll
command to check their permission and modified time as well.
The root directory in the Linux file system is denoted by a single forward slash (/
). It is the top-most directory in the hierarchy of the file system and acts as the starting point for all other directories and files. Everything on a Linux system, including all mounted filesystems, starts from the root directory.