To get the output of the get-childitem with a specific extension, we need to use –includeparameter.ExampleIn the below example, we will use the below script to get only .xml files.Get-ChildItem D:\Temp\ -Recurse -Include *.xmlOutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Recurse -Include *.xml Directory: D:\Temp\GPO_backup\{C9C3DB4C-2E51-4201-B3C3-7C0F1ACECBE9} Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 24-11-2018 11:34 6215 Backup.xml -a---- 24-11-2018 11:34 ... Read More
Since the dawn of humanity, we humans have been innovating and improvising the recording and storage of data. Though it may look like one of the simplest activities we humans usually practice, but storing data has been one of the most integral parts of the human existence.This is one of the most significant advantages our race possesses over every other species that have ever traversed the blue planet. The art of storing data had empowered our ancestors to share their knowledge, experiences, art and culture with us through recording their data on paintings, sculptures, monuments and books.Starting with simple strokes ... Read More
Xkill is a utility for forcing the X server to close connections to consumers. This software is very harmful but is priceless for aborting applications.This article explains about-“How to Kill Linux Processes Using ‘xkill’ Command”.Sample Syntax of Xkill CommandThe sample syntax of Xkill command as shown below – $xkill [-option ...]Options of XkillOptions of Xkill are shown below –usage: xkill [-option ...] where options include: -display displayname X server to contact -id resource resource whose client is to be killed -frame don't ignore window manager frames -button number specific button to be pressed to select window -all kill all clients ... Read More
To display files along with hidden files, you need to use –Force parameter.CommandGet-ChildItem D:\Temp\ -ForceOutputIf you see the above output, hiddenfile.xlsx is the hidden file and same can be identified with the mode where –a-h—attribute of the file.You can also use this parameter with –Recurse or –Depth.Get-ChildItem D:\Temp\ -Recurse -Force
People having access to Wifi can easily make free and cheap calling, but what, if they do not have an internet connection. Given below is a list of a few companies which have developed clever programs which helps the users to make free calls or calls at highly reduced rates.Leveraging FreeKall ServiceFreeKall is a startup company, based in Bangalore. It is a savior for many, as it helps them to make calls even when their balance is running out on their mobile phone. The Master brain behind this startup is Yashas Sekhar, the company has received an incredible response from ... Read More
To display files along with hidden files, you need to use –Force parameter.CommandGet-ChildItem D:\Temp\ -ForceOutputIf you see the above output, hiddenfile.xlsx is the hidden file and same can be identified with the mode where –a-h—attribute of the file.You can also use this parameter with –Recurse or –Depth.Get-ChildItem D:\Temp\ -Recurse -Force
To display only hidden files and folders –hidden parameter is used while using Get-ChildItem.CommandGet-ChildItem D:\Temp\ -HiddenOutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Hidden Directory: D:\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- -a-h-- 13-12-2019 09:52 6182 Hiddenfile1.xlsxCommandSimilarly, you can use this –Hidden with –Recurse or–DepthGet-ChildItem D:\Temp\ -Recurse -HiddenOutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Recurse -Hidden Directory: D:\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- -a-h-- 13-12-2019 09:52 6182 Hiddenfile1.xlsx Directory: D:\Temp\GPO_backup Mode LastWriteTime Length Name ---- ------------- ------ ---- -a-h-- 13-12-2019 09:52 0 HiddenFile2.txt
When –Depth parameter is used along with Get-ChildItem, it controls the recursion of displaying the subfolders and their contents. For example, if –Depth parameter is set to 1 then it will display only the content of the parent folder and immediate subfolders but not the subfolders of the subfolders.CommandWhen you specify –Depth parameter, no need to add –Recursion parameter. It will automatically set the depth level.Get-ChildItem D:\Temp\ -Depth 1OutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Depth 1 Directory: D:\Temp Mode LastWriteTime Length Name ---- ... Read More
In this article, we will learn how to install and configure the Mytop to monitor the MySQL performance. Mytop is an open-source monitoring tool for MySQL performance, this tool uses command line to monitor MySQL, it looks like the Linux System monitoring tool top which will connect to MySQL and runs the show process list and show global status commands and summarize the information in a meaning-full format where the humans can understand it. We can use mtop for monitor the MySQL real-time threads, uptime and queries and will also show the users running the queries and the database they ... Read More
When –Depth parameter is used along with Get-ChildItem, it controls the recursion of displaying the subfolders and their contents. For example, if –Depth parameter is set to 1 then it will display only the content of the parent folder and immediate subfolders but not the subfolders of the subfolders.CommandWhen you specify –Depth parameter, no need to add –Recursion parameter. It will automatically set the depth level.Get-ChildItem D:\Temp\ -Depth 1OutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Depth 1 Directory: D:\Temp Mode LastWriteTime Length Name ---- ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP