Monday, August 17, 2020
Friday, August 14, 2020
In a basic client program, which of the following UNIX system calls is used to create an endpoint for communication with a server program in C?
In a basic client program, which of the following UNIX system calls is used to create an endpoint for communication with a server program in C?
- socket()
- connect()
- fork()
- bind()
EXPLANATION
int sockfd;sockfd = socket(AF_INET, SOCK_STREAM, 0);
SOURCE
http://man7.org/linux/man-pages/man2/socket.2.htmlWednesday, August 12, 2020
If i wanted to find the Windows 10 Spotlight Lock Screen Pictures... Where would you find them?
If i wanted to find the Windows 10 Spotlight Lock Screen Pictures... Where would you find them?
- C:\Users\[USERNAME]\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager\LocalState\Asset
- C:\Windows\Web\Screen
- C:\Windows\Web\Wallpaper
- C:\ProgramData\Microsoft\Windows\SystemData
EXPLANATION
C:\Users\[USERNAME]\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager\LocalState\Asset is the correct answer... given 100 characters to work with. Since the backgrounds are downloaded, stored and overwritten.. they are stored here.C:\ProgramData\Microsoft\Windows\SystemData is where the lock screen can be changed or overwritten, given permission.
C:\Windows\Web\Screen is the location of the windows prelogin screen background.
And C:\Windows\Web\Wallpaper is where default windows 7 wallpapers for your desktop are saved.
SOURCE
https://www.laptopmag.com/articles/find-windows-10-lock-screen-picturesIn a cluster, what VMware vSphere feature allows a virtual machine to run a replica of itself on a different host to allow for seamless fail-over in case of host failure?
In a cluster, what VMware vSphere feature allows a virtual machine to run a replica of itself on a different host to allow for seamless fail-over in case of host failure?
- Distributed Resource Scheduler
- Fault Tolerance
- High Availability
- vMotion
EXPLANATION
With Fault Tolerance, a replica VM is created on a different host in the cluster to work in sync with the primary virtual machine on which Fault Tolerance is enabled. When host failure is detected,the replica VM takes place of the primary virtual machine with no downtime. This differs from High Availability in that the virtual machine is typically restarted on to another host, requiring downtime.
SOURCE
https://pubs.vmware.com/vsphere-60/index.jsp?topic=%2Fcom.vmware.vsphere.avail.doc%2FGUID-623812E6-D253-4FBC-B3E1-6FBFDF82ED21.htmlFriday, 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