To exclude specific extensions, you need to use –Exclude parameter in Get-ChildItem.ExampleFor example, as shown below when we run command, it will exclude .html files and display the rest.Get-ChildItem D:\Temp\ -Recurse -Exclude *.htmlOutputDirectory: D:\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 24-11-2018 11:31 LGPO Directory: D:\Temp\LGPO Mode LastWriteTime Length Name ---- ... Read More
You can also search for files with a specific name or using the wildcard (*) character.CommandBelow command will search for the files (including hidden files) starting with “Bac”.Get-ChildItem D:\Temp -Recurse -Force -Include Bac*OutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp -Recurse -Force -Include Bac* Directory: D:\Temp\GPO_backup\{C9C3DB4C-2E51-4201-B3C3-7C0F1ACECBE9} Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 24-11-2018 11:34 6215 Backup.xmlCommandWhen you use the wildcard character (*) at both the ends, file ... Read More
Git is a popular open source version control system like CVS or SVN. This article is for those, who are not familiar with Git. Here, we are providing you with basic steps of installing Git from source, Creating a new project, and Commit changes to the Git repository.Difference between Git and other Version Control SystemsMost of the other version control systems, store the data as a list of files and changes are made to each file over time. Instead, Git thinks of its data more like a set of snapshots in a file system. Every time, it takes a snapshot ... Read More
In this article we will learn about – how to configure and setup UFW ( Firewall) on Ubuntu 16.04, UFW stands for Uncomplicated Firewall which acts as an interface to IPTABLES that simplifies the process of the configuration of firewalls it will be a very hard for a beginners to learns and configure the firewall rules where we will secure the network from unknown users are machines. UFW works on the policies we configure as rules.Pre-requisitesFor this, we needed a non-root user with root permission on the machine.Installing the UFW (Firewall)UFW is installed by default with Ubuntu, if not installed ... Read More
You can also search for files with a specific name or using the wildcard (*) character.CommandBelow command will search for the files (including hidden files) starting with “Bac”.Get-ChildItem D:\Temp -Recurse -Force -Include Bac*OutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp -Recurse -Force -Include Bac* Directory: D:\Temp\GPO_backup\{C9C3DB4C-2E51-4201-B3C3-7C0F1ACECBE9} Mode LastWriteTime Length Name ---- ------------- ------ ---- -a---- 24-11-2018 11:34 6215 Backup.xmlCommandWhen you use the wildcard character (*) at both the ends, file ... Read More
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
Wine platform is developed for allowing you to run Microsoft Windows applications on Linux and other UNIX-based operating systems (MacOS X, FreeBSD, Solaris). PlayOnLinux is a graphical interface for Wine, which streamlines the installation process of well-known Windows applications and games under Wine platform by automatically configuring Wine as needed.Installing PlayonLinuxTo install playOnLinux use the following command –$ sudo apt-get install playonlinuxThe output should be like this –Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgail-common liblouis-data liblouis2 python3-brlapi python3-louis python3-pyatspi python3-speechd qt-at-spi xbrlapi Use 'apt-get ... Read More
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
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP