IT Questions and Answers :)

Friday, August 7, 2020

In linux, what command will output the 10 most recently created users?

In linux, what command will output the 10 most recently created users?

  • last /etc/users
  • tail /etc/passwd
  • head /etc/passwd
  • vim /etc/passwd 


EXPLANATION

The "tail" command outputs the last 10 lines of the file that it is passed.
Since Linux stores usernames in the order in which they were created in the file, /etc/passwd/, the command "tail /etc/passwd/" will return the 10 most recently created users

SOURCE

https://shapeshed.com/unix-tail/
Share:

IRQ (Interrupt Request Line) 6 was commonly assigned to:

IRQ (Interrupt Request Line) 6 was commonly assigned to:

  • Floppy drive controller
  • LPT1
  • Sound card
  • Com1 
IRQ (Interrupt Request Line) 6 was commonly assigned to:

 

EXPLANATION

IRQs ((Interrupt Request Line) are hardware lines over which devices can send interrupt signals to the microprocessor. When you add a new device to a PC, you sometimes need to set itsIRQ number by setting a DIP switch. This specifies which interrupt line the device may use.
Prior to plug and play devices, users had to set IRQ values of devices manually when adding the device, such as a modem or printer, to a system.


The following list of IRQ numbers specifies what each of the 16 IRQ lines are used for.
IRQ 0System timerThis interrupt is reserved for the internal system timer. It is never available to peripherals or other devices.IRQ 1 KeyboardThis interrupt is reserved for the keyboard controller. Even on devices without a keyboard, this interrupt is exclusively for keyboard input.
IRQ 2 Cascade interrupt for IRQs 8-15This interrupt cascades the second interrupt controller to the first.
IRQ 3 Second serial port (COM2)The interrupt for the second serial port and often the default interrupt for the fourth serial port (COM4).
IRQ 4 First serial port (COM1)This interrupt is normally used for the first serial port. On devices that do not use a PS/2 mouse, this interrupt is almost always used by the serial mouse. This is also the default interrupt for the third serial port (COM3).
IRQ 5 Sound cardThis interrupt is the first choice that most sound cards make when looking for an IRQ setting.
IRQ 6 Floppy disk controllerThis interrupt is reserved for the floppy disk controller.
IRQ 7 First parallel portThis interrupt is normally reserved for the use of the printer. If a printer is not being used, this interrupt can be used for other devices that use parallel ports.
IRQ 8 Real-time clockThis interrupt is reserved for the system's real-time clock timer and can not be used for any other purpose.
IRQ 9 Open interruptThis interrupt is typically left open on devices for the use of peripherals.
IRQ 10 Open interruptThis interrupt is typically left open on devices for the use of peripherals.
IRQ 11 Open interruptThis interrupt is typically left open on devices for the use of peripherals.
IRQ 12 PS/2 mouseThis interrupt is reserved for the PS/2 mouse on machines that use one. If a PS/2 mouse is not used, the interrupt can be used for other peripherals, such as network card.
IRQ 13 Floating point unit/coprocessorThis interrupt is reserved for the integrated floating point unit. It is never available to peripherals or other devices as it is used exclusively for internal signaling.
IRQ 14 Primary IDE channelThis interrupt is reserved for use by the primary IDE controller. On systems that do not use IDE devices, the IRQ can be used for another purpose.
IRQ 15 Secondary IDE channelThis interrupt is reserved for use by the secondary IDE controller.

SOURCE

Share:

Wednesday, August 5, 2020

Given a subnet address of 10.1.129.0/25, what is the broadcast address?

Given a subnet address of 10.1.129.0/25, what is the broadcast address?

  • 10.1.129.25
  • 10.1.129.127
  • 10.255.255.255
  • 10.1.129.255 


EXPLANATION

If we look at the address and subnet mask in binary, we can see the following:
0000 1010 . 0000 0001 . 1000 0001 . 0000 0000
1111  1111 . 1111 1111  . 1111 1111  . 1000 0000
Looking at the last octet, we can see that there are 7 binary zeros. These indicate that we have 7 host bits. When you change all of those bits to ones, you end up with:



 0000 1010 . 0000 0001 . 1000 0001 . 0111 1111
Converting back to decimal, we get:
10.1.129.127.

https://subnet.techlanda.com/
Share:

Friday, July 31, 2020

In PowerShell, how do you list drives?

In PowerShell, how do you list drives?

  • list-drives
  • get-Psdrive
  • dir PsDrives
  • ls PsDrives
In PowerShell, how do you list drives?

EXPLANATION

Get-PsDrive lists all physical and virtual drivers you can use with PowerShell to change just add : (colon) like:
cd HKLM:

SOURCE

http://go.microsoft.com/fwlink/?LinkID=113327
Share:

Tuesday, July 28, 2020

What is the database design process used to increase integrity and reduce redundancy of data?

What is the database design process used to increase integrity and reduce redundancy of data?

  • Relational Design
  • Data Constraints
  • Error Handling
  • Normalization


EXPLANATION

This process is used to create the Entity Relationship Diagrams necessary to design a database. Each level of normalization is a new "normal form". Typically databases use 3NF or 4NF.
The higher the normal form the more relational your database will be.

SOURCE

https://en.wikipedia.org/wiki/Database_normalization
Share:

Friday, July 24, 2020

In Chrome OS what command allows your to refresh a webpage on Chrome?

In Chrome OS what command allows your to refresh a webpage on Chrome?

  • CTRL + R
  • ALT + F4
  • F5
  • CTRL + F5 

EXPLANATION

in most browsers a simple F5 refreshes your webpage. However on Chrome OS F5 is the switch window key, therefore your need to use CTRL+R in order to refresh a page.

SOURCE

https://support.google.com/chromebook/answer/183101?hl=en-GB
Share:

Monday, July 20, 2020

Which SQL Server edition does not require a license for production use?

Which SQL Server edition does not require a license for production use?

  • Express
  • Standard
  • Developer
  • Enterprise 

EXPLANATION

Both Standard and Enterprise require licensing.  Developer also does not require a license but cannot be used for production.

SOURCE

https://www.microsoft.com/en-us/sql-server/sql-server-2017-editions

 

Share:

Popular Posts