Found 989 Articles for Software & Coding

How to use the -recursive parameter in Get-ChildItem using PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:33:19

908 Views

To display the contents of the subfolders including files and folders, -Recurse parameter is used.CommandGet-ChildItem -Path D:\Temp -Recurse-Recurse parameter will not display the hidden files and folders.OutputDirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- d-----       13-12-2019     09:52                GPO_backup d-----       24-11-2018     11:31                LGPO -a----       07-05-2018     23:00     ... Read More

How to list the subfolder contents using Get-ChildItem using PowerShell?

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

6K+ Views

To display the contents of the subfolders including files and folders, -Recurse parameter is used.CommandGet-ChildItem -Path D:\Temp -Recurse-Recurse parameter will not display the hidden files and folders.OutputDirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- d-----       13-12-2019     09:52                GPO_backup d-----       24-11-2018     11:31                LGPO -a----       07-05-2018     23:00     ... Read More

How To Set Up and Configure NFS on Ubuntu 16.04

Samual Sam
Updated on 23-Jan-2020 07:31:54

783 Views

In this article, we will learn how to install NFS on Ubuntu 16.04Network File System (NFS) protocol and a filesystem which allows you to access the shared folders from the remote system or server and also allows you to mount as a remote directory on the servers. This allows you to share the storage space between different clients in different locations. NFS has been always the easiest way to access the remote storages over a network.To accomplish this demo, we need two systems which Ubuntu installed and user with sudo permissions with a private network.Installing the Packages on ServerWe will ... Read More

Microsoft Emergency Path for RCE (Remote Code Execution) in Windows Malware Scanner (CVE-2017-0290)

karthikeya Boyini
Updated on 23-Jan-2020 07:13:48

87 Views

The famous security researcher Tavis Ormandy has recently announced on Twitter that he and his researcher Natalie Silvanovich has discovered a vulnerability called “Remote Code Execution” in recent memory. According to them, the vulnerability will work against the default installation which is “Wormable” has the ability to replicate itself on an infected computer and then spread to the other PCs automatically in the network.Microsoft has announced that their own antivirus is made of Windows 7, 8.0, 8.1 and 10 computers as well as Windows Server 2016, is vulnerable due to the latest released out-of-band update for the patch “Remote Code ... Read More

Basic Commands of APT-GET and APT-CACHE for Package Management

Sharon Christine
Updated on 23-Jan-2020 05:52:53

257 Views

Apt-get is the command-line utility for dealing with applications and may be considered for the person’s “back-end” to other tools for making use of the APT library.Apt-cache performs a variety of operations on APT’s package.This article explains about -“Basic Commands of APT-GET and APT-CACHE for Package Management”.Apt-getTo get the more options about apt-get, use the following command as shown below –$ apt-get -hThe sample output contains the following options as shown below –update - Retrieve new lists of packages    upgrade - Perform an upgrade    install - Install new packages (pkg is libc6 not libc6.deb)    remove - Remove ... Read More

How to list the directory content in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:42:10

32K+ Views

To display the directory content, Get-ChildItem cmdlet is used. You need to provide the path of the directory or if you are in the same directory, you need to use only Get-ChildItem directly. In the below example, we need to display the contents of the D:\temp directory.When Get-ChildItem command is run outside of this directory then the path of the directory should be provided. This is called the absolute path.PS C:\> Get-ChildItem D:\Temp\CommandWhen this command is run directly within the directory then simply run this command. This is called a relative path.PS D:\Temp> Get-ChildItem OutputDirectory: D:\Temp Mode       ... Read More

How to retrieve specific file(s) information using Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:40:58

2K+ Views

When the item (file) path is provided to the Get-ChildItem cmdlet, it extracts the file information like Name, LastWriteTime, Size, etc.ExampleGet-ChildItem -Path D:\Temp\style.cssOutputDirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- -a----       08-12-2017     10:16            393 style.cssCommandTo get the full properties of the file then you need to use fl * (Format-List *) pipeline command.Get-ChildItem -Path D:\Temp\style.css | fl * OutputPSPath            : Microsoft.PowerShell.Core\FileSystem::D:\Temp\style.css ... Read More

What are the parameters supported by Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:39:08

243 Views

Below parameters are supported by Get-ChildItems. Get-ChildItem[[-Path] ] [[-Filter] ] [-Include ] [-Exclude ] [-Recurse] [-Depth ] [-Force] [-Name] [-Attributes ] [-FollowSymlink] [-Directory] [-File] [-Hidden] [-ReadOnly] [-System] []

Which methods are supported by Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:44:39

332 Views

There are methods or functions which are useful for directories and file operations.Methods for the directory.TypeName: System.IO.DirectoryInfo Name                      MemberType ----                      ---------- Create                    Method CreateObjRef              Method CreateSubdirectory        Method Delete                    Method EnumerateDirectories      Method EnumerateFiles            Method EnumerateFileSystemInfos  Method Equals                    Method ... Read More

Which properties are supported by the Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:37:46

3K+ Views

When you pipeline the parameter Get-Member (alias gm) and filter out properties then there will be two different properties that will be displayed. One is for the File and another is for the Folders.Get-ChildItem propertiesCommandGet-ChildItem | gm | where{$_.Membertype -eq "Property"}Output** Properties of Directory TypeName: System.IO.DirectoryInfo Name              MemberType Definition ----              ---------- ---------- Attributes        Property   System.IO.FileAttributes Attributes {get;set;} CreationTime      Property   datetime CreationTime {get;set;} CreationTimeUtc   Property   datetime CreationTimeUtc {get;set;} Exists            Property   bool Exists {get;} Extension ... Read More

Advertisements