Found 975 Articles for Software & Coding

How To Install and Configure Sysdig to Monitor your Ubuntu 16.04

Sharon Christine
Updated on 23-Jan-2020 10:40:23

205 Views

In this article, we will learn – How to install and configure the Sysdiag tool. Sysdiag is an open-source activity monitoring tool which can be used to capture and analyze application logs which have powerful filtering features with customizable outputs.Sysdig works from getting the information from the kernel which allows capturing system calls and the information which comes to the kernel. It also monitors the servers which are installed on the system.Pre-requisitesTo complete this demo we need the following requirements − film John Wick − Chapter 2 online.Ubuntu 16.04 installed on the machineA non-root user with Sudo permission of the ... Read More

Red Hat Updates OpenShift Container Platform with New Service Catalog

karthikeya Boyini
Updated on 23-Jan-2020 09:54:35

160 Views

Red Hat, an American multinational software company, recently released an update of its OpenShift container platform on August 9. This update provides users with capacities which are taken from open-source Kubernetes 1.6 release. This is Red Hat’s quarterly update of the OpenShift platform. This update brings in a lot of changes but the major one is an addition of a Service Catalog which will help IT or third-party vendors in creating connections to internal or external services.This shows that in recent years, OpenShift has mainly become a Red Hat distribution of Kubernetes. The OpenShift is largely responsible for providing enterprise-grade ... Read More

How to change the size of the Console using PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 08:05:01

1K+ Views

You can change the size of the PowerShell Console with GUI and CLI both.With GUI −With CLI −To change the Width of the console,$host.UI.RawUI.WindowSize.Width = 150To change the Height of the console,$host.UI.RawUI.WindowSize.Height = 60

How to change the background color of the font in PowerShell?

Chirag Nagrekar
Updated on 14-Jul-2020 13:16:43

4K+ Views

To change the background color of the font, you can use the GUI and command line both.With GUI − Colors → Screen Background.CLI −$host.UI.RawUI.BackgroundColor = "DarkBlue"You will notice that the background color of the text has been changed to DarkBlue.

How to change the Foreground color or Font color of the console using PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 08:03:21

8K+ Views

Font color is termed as the Foreground color in the PowerShell. To change the font color you can use the console GUI property “Screen Text”. There are various 16 colors available and you can change RGB properties as well.CommandTo change the color with the script, use the below command.$Host.UI.RawUI.ForegroundColor = "Yellow"OutputYou can see the immediate change in the Foreground color.

How to change the Title of the console using PowerShell command?

Chirag Nagrekar
Updated on 23-Jan-2020 08:02:29

6K+ Views

For various reasons, you need to change the title of the PowerShell console. Like the title to describe the script. For example, System Information or Service Information.To change the PowerShell Console Title use the “WindowsTitle” property in RawUI. It is just a temporary change. When you close the console and open it again, the title will be set to the default.$host.UI.RawUI.WindowTitle = "System Information"Now the title of the PowerShell console is changed to “System Information”.You can also supply variable value to this parameter.$Title = "System Information" $host.UI.RawUI.WindowTitle = $Title

How to check the properties of the Windows PowerShell Console?

Chirag Nagrekar
Updated on 23-Jan-2020 08:01:45

948 Views

You can check the Powershell console properties in two ways. The first method is by right-clicking on the title bar and open the properties.For Example,CommandYou can find various properties there. Like Windows Size, Cursor size, Font Size, font colors, etc. But you can dynamically change the properties when the script runs using the RawUI properties in the $host UIconfiguration. You can view the properties of the console using the below command, which is the second method.$host.UI.RawUIOutputForegroundColor       : DarkYellow BackgroundColor       : Black CursorPosition        : 0,6 WindowPosition        : 0,0 CursorSize            : 25 BufferSize            : 120,3000 WindowSize            : 120,43 MaxWindowSize         : 120,44 MaxPhysicalWindowSize : 151,44 KeyAvailable          : False WindowTitle           : Administrator: Windows PowerShell

How to get only files but not the folders with Get-ChildItem using PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 08:00:41

9K+ Views

To get only files, you need to use NOT operator in Directory attribute parameter.ExampleGet-ChildItem D:\Temp\ -Attributes !DirectoryOutputirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- -a----       07-05-2018     23:00            301 cars.xml -a----       29-12-2017     15:16           4526 healthcheck.htm -a----       29-12-2017     15:16           4526 healthcheck1.htm -ar---       13-01-2020     ... Read More

How to get only folders but not the files in the Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 08:02:54

2K+ Views

To get only folders excluding files, we need to use –Attribute parameter with Directory attribute.CommandGet-ChildItem D:\Temp\ -Attributes DirectoryOutputDirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- d-----       13-12-2019     09:52                GPO_backup d-----       24-11-2018     11:31                LGPOSimilarly, you can combine different operations.To get the only system directories, use the below command.Get-ChildItem D:\Temp\ -Attributes Directory –System -RecurseTo get the system directories that are hidden.Get-ChildItem D:\Temp\ -Attributes Directory -Recurse –System -HiddenTo get the system directories which are Readonly.Get-ChildItem D:\Temp\ -Attributes Directory -Recurse –System -Readonly

Which attribute parameters are supported in Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:54:55

575 Views

Below attribute parameters are supported in Get-ChildItem in PowerShell.Get-ChildItem Alias Reference: --------------------------------- Get-ChildItem     dir Directory         d, ad File              af Hidden            h, ah ReadOnly          ar System            as

Advertisements