Found 975 Articles for Software & Coding

What is the use of -Force parameter in Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:41:17

885 Views

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

How to display files/folders including hidden files/folders in PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:40:15

644 Views

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

How to get only hidden files and folders in PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:38:59

1K+ Views

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

How to use Depth pararmeter in Get-ChildItem PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:38:08

3K+ Views

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

How to control recursion in Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:37:03

1K+ Views

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

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

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

1K+ 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

8K+ 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

931 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

160 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

363 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

Advertisements