IT Questions and Answers :)

Thursday, March 19, 2020

drwxr-xr-x 3 root root 73728 Dec 26 08:39 /usr/bin/ <=== This directory file on an ext4 filesystem is listed in long format (ls -ld). The value of the fifth field, 73728, reports the size of what?

drwxr-xr-x 3 root root 73728 Dec 26 08:39 /usr/bin/ <=== This directory file on an ext4 filesystem is listed in long format (ls -ld). The value of the fifth field, 73728, reports the size of what?

  • The disk usage, in blocks, of the top level of the directory.
  • The disk usage, in blocks, of the directory and all of its subdirectories.
  • The exact size of the directory file, in bytes.
  • The size in bytes of the total blocks in use by the directory file. [ (bytes/block) * blocks ] 

drwxr-xr-x 3 root root 73728 Dec 26 08:39 /usr/bin/ <=== This directory file on an ext4 filesystem is listed in long format (ls -ld). The value of the fifth field, 73728, reports the size of what?

EXPLANATION

A directory file contains a list of names and corresponding inodes. 
A newly created directory file on an ext4 filesystem will have only 2 entries, dot "." and dot dot ".."  
The size of the new directory file will be 4096 bytes.  As additional entries are made to the directory, the reported size will remain at 4096 until additional bytes are required for the next directory entry.  At that point, additional blocks will be allocated to the directory and the reported directory file size will increase.
As directory entries are removed, the blocks already allocated to the directory file do not decrease, but allocated blocks are freed for future use by new entries in the directory.
https://unix.stackexchange.com/questions/234065/why-size-reporting-for-directories-is-different-than-other-files#
https://superuser.com/questions/142893/why-is-the-size-of-a-directory-always-4096-bytes-in-unix/1428...
http://www.linfo.org/directory.html
Note that when the same "ls" command is used on a regular file, the size field will report the actual file size in bytes, which is stored in the inode.  The " -s " option to "ls" will report allocated blocks, in addition to actual file size.

SOURCE

https://superuser.com/questions/142893/why-is-the-size-of-a-directory-always-4096-bytes-in-unix/142895
Share:

Wednesday, March 18, 2020

Which of the following is a routing protocol?

Which of the following is a routing protocol?

  • NTP
  • VLAN
  • EIGRP
  • NTLMv2 

Which of the following is a routing protocol?

EXPLANATION




Enhanced Interior Gateway Routing Protocol (EIGRP) is an interior gateway protocol suited for many different topologies and media.
In a well designed network, EIGRP scales well and provides extremely quick convergence times with minimal network traffic.

SOURCE

https://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/16406-eigrp-toc.html
Share:

Tuesday, March 17, 2020

How many pairs are usually in a Cat5 or Cat6 network cable?

How many pairs are usually in a Cat5 or Cat6 network cable?

  • 6 pair
  • 8 pair
  • 2 pair
  • 4 pair 

How many pairs are usually in a Cat5 or Cat6 network cable?

EXPLANATION

Usually cat5 or cat 6 cable is 4 pair package.


SOURCE

https://community.spiceworks.com/topic/258905-in-network-cable-4-pair-of-wire-is-there-only-2-pair-is-used-why-other-2-pair
Share:

Friday, March 13, 2020

What function on VMware allows the manual or automatic distribution of VM's between hosts for a balanced computing resourse?

What function on VMware allows the manual or automatic distribution of VM's between hosts for a balanced computing resourse?

  • X-Switch vMotion
  • DRS
  • HA
  • vMotion 

What function on VMware allows the manual or automatic distribution of VM's between hosts for a balanced computing resourse?

EXPLANATION

VMware DRS (Distributed Resource Scheduler) is a utility that balances computing workloads with available resources in a virtualized environment. The utility is part of a virtualization suite called VMware Infrastructure 3.
With VMware DRS, users define the rules for allocation of physical resources among virtual machines. The utility can be configured for manual or automatic control. Resource pools can be easily added, removed or reorganized. If desired, resource pools can be isolated between different business units. If the workload on one or more virtual machines drastically changes, VMware DRS redistributes the virtual machines among the physical servers. If the overall workload decreases, some of the physical servers can be temporarily powered-down and the workload consolidated.

SOURCE

https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.wssdk.pg.doc_50%2FPG_Ch13_Resources.15.6.html
Share:

Thursday, March 12, 2020

Which of these is NOT an FSMO role?

Which of these is NOT an FSMO role?

  • RID Master
  • Schema Master
  • TCP Master
  • PDC Emulator 

 
Which of these is NOT an FSMO role?

EXPLANATION

There are 5 FSMO roles:
PDC Emulator (One per domain), RID Master (One per domain), Schema Master (One per forest), Domain Naming Master (One per forest), Infrastructure Master (One per domain)
https://wiki.samba.org/index.php/Flexible_Single-Master_Operations_(FSMO)_Roles

SOURCE

https://wiki.samba.org/index.php/Flexible_Single-Master_Operations_(FSMO)_Roles
Share:

Wednesday, March 11, 2020

What kind of connectors can be used to connect a PC power supply to a hard drive?

What kind of connectors can be used to connect a PC power supply to a hard drive?

  • Molex
  • P9
  • AT
  • Mini-molex 

What kind of connectors can be used to connect a PC power supply to a hard drive?

EXPLANATION

A molex connector has cylindrical spring-metal pins that fit into cylindrical spring-metal sockets. The pins and sockets are held in a rectangular matrix in a nylon shell. The connector typically has two to 24 contacts and is polarized or keyed to ensure correct orientation. Pins and sockets can be arranged in any combination in a single housing, and each housing can be either male or female.
There are three typical pin sizes: 1.57 mm (0.062 in), 2.13 mm (0.084 in), and 2.36 mm (0.093 in). The 1.57 mm pin can carry 5 A of current, while the 2.36 mm can carry 8.5 A. Because the pins have a large contact surface area and fit tightly, these connectors are typically used for power.
https://en.wikipedia.org/wiki/Molex_connector

SOURCE

Share:

Tuesday, March 10, 2020

Linux and Unix systems typically track 3 timestamps in file inodes: atime, ctime, and mtime. The "a" in atime means access. The "m" in mtime means modify. What does the "c" in ctime mean?

Linux and Unix systems typically track 3 timestamps in file inodes: atime, ctime, and mtime. The "a" in atime means access. The "m" in mtime means modify. What does the "c" in ctime mean?

  • create
  • cache
  • change
  • copy-on-write 
Linux and Unix systems typically track 3 timestamps in file inodes: atime, ctime, and mtime. The "a" in atime means access. The "m" in mtime means modify. What does the "c" in ctime mean?

 

EXPLANATION

"c" in ctime means change.  Specifically, a change to the inode's status, eg, permissions, ownership, link count, file size, etc.
http://man7.org/linux/man-pages/man7/inode.7.html
"Last status change timestamp (ctime) stat.st_ctime; statx.stx_ctime"

http://www.linux-mag.com/id/8658/
"Timestamps telling when the inode itself was last change (ctime, changing time), the file content was last modified (mtime or modification time), and when the file was last accessed (atime or access time)"

SOURCE

http://man7.org/linux/man-pages/man7/inode.7.html
Share:

Popular Posts