Exclude Specific Extension in Get-ChildItem in PowerShell

Chirag Nagrekar
Updated on 23-Jan-2020 07:49:27

4K+ Views

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

Search for Files Using Wildcard Character in PowerShell

Chirag Nagrekar
Updated on 23-Jan-2020 07:48:25

4K+ Views

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

Install Git on Linux

Samual Sam
Updated on 23-Jan-2020 07:47:55

13K+ Views

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

Configure and Set Up a Firewall on Ubuntu 16.04

Sharon Christine
Updated on 23-Jan-2020 07:47:45

2K+ Views

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

Use Wildcard Character in Get-ChildItem in PowerShell

Chirag Nagrekar
Updated on 23-Jan-2020 07:47:45

3K+ Views

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

Search for a Specific Extension Using Get-ChildItem in PowerShell

Chirag Nagrekar
Updated on 23-Jan-2020 07:47:07

2K+ Views

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

Install PlayOnLinux

Samual Sam
Updated on 23-Jan-2020 07:46:36

528 Views

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

Use Get-ChildItem in PowerShell to Filter by Extension

Chirag Nagrekar
Updated on 23-Jan-2020 07:46:01

19K+ Views

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

Keep Data on a USB Flash Drive Secure

Samual Sam
Updated on 23-Jan-2020 07:44:35

280 Views

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

Kill Linux Processes Using xkill Command

Samual Sam
Updated on 23-Jan-2020 07:43:21

788 Views

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

Advertisements