Found 989 Articles for Software & Coding

How to get services based on start-type in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 07:57:33

3K+ Views

Below commands are useful to filter services based on their start types (Automatic, Manual or Disabled).CommandTo get the Automatic start-type service. These services are started automatically when the system starts.Get-Service | where{$_.StartType -eq "Automatic"} | Select Name, StarttypeOutputSystemEventsBroker          Automatic TeraCopyService             Automatic Themes                      Automatic TrkWks                      Automatic UserManager                 Automatic UsoSvc                      Automatic VMUSBArbService     ... Read More

How to search for the specific service in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 07:54:59

2K+ Views

You can get the specific service-related information using –name parameter and you just need to provide the service name.CommandGet-Service –Name "Spooler"OutputStatus Name DisplayName ------ ---- ----------- Running Spooler Print SpoolerCommandSimilarly, you can search for more than one service with the –name parameter.Get-Service –Name "Spooler", "RemoteAccess" OutputStatus Name DisplayName ------ ---- ----------- Stopped remoteaccess Routing and Remote Access Running Spooler Print SpoolerYou can also use the wildcard character (*) in service name so the console can fetch the entire name.When wildcard character (*) is used at the end of the name then debug console will check the starting string of the ... Read More

How to display specific properties from Get-Service output in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 07:51:51

3K+ Views

To display the other properties of the services than the default ones (which are supported by Get-Member), you need to pipeline the Select-Object (alias Select) command. For example, in the below command we will display theService name, start type and status of the service.CommandGet-Service | Select-Object Name, StartType, StatusOutputName                                                   StartType  Status ----                                               ... Read More

How to get all properties and methods available for the service in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 07:50:10

3K+ Views

To display all the properties and methods available for the get-service cmdlet you need to pipeline Get-Member (alias gm). MemberType ‘Property’ is to display the specific property like machinename, servicename, etc. and with the MemberType ‘Method’ you can perform specific operations on the object, for example, Start, Stop, Pause the service, etc.CommandThe below command is to display all the members (properties, methods) the Get-Service.Get-Service | Get-MemberOutputName                         MemberType ----                         ---------- Name             ... Read More

How to get the services on a local computer with PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 07:48:28

432 Views

To get the services on the local computers you need to use Get-Services cmdlet. This command will give you all the services which have running, stopped, stop pending or start pending status, and which has startup type is Automatic, Manual or Disabled.The output of the default table will display Status, Name, and DisplayName three columns.CommandGet-ServiceOutputStatus   Name               DisplayName ------   ----               ----------- Stopped  AarSvc_158379      Agent Activation Runtime_158379       Running  AdobeARMservice    Adobe Acrobat Update Service Stopped  AdobeFlashPlaye... Adobe Flash Player Update ... Read More

How to Install Python 3.4.4 on Ubuntu

Sharon Christine
Updated on 22-Jan-2020 07:09:04

3K+ Views

Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during 1985- 1990. Like Perl, Python source code is also available under the GNU General Public License (GPL).This article describes “How to install Python on Ubuntu”Installing Required PackagesTo install python, it should require prerequisites as shown below-$ sudo apt-get install build-essential checkinstallThe sample output should be like this –Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. The following packages were automatically installed and are no longer required:    gtk2-engines-pixbuf libbs2b0 libopusfile0 libpyside1.2 libqmmp-misc ... Read More

How to Enable or Install Byobu for Terminal Management on Ubuntu 16.04

karthikeya Boyini
Updated on 14-Jul-2020 11:57:17

1K+ Views

In this article, we will learn about Byobu on the Ubuntu 16.04, Byobu which is a terminal multiplexer and easy to use, Byobu is used to have multiple windows, consoles and split panes within the windows and will also show the status badges and notifications on the terminal.To complete this tutorial we needed an Ubuntu 16.04 installed and a Linux user with sudo permissions.Installing or Checking the ByobuAs a default feature of Ubuntu 16.04, Byobu is installed. However, as a practice, we will check the installation and version and if not we will install the Byobu.To check the Byobu is ... Read More

How to Enable and Install Third Party Packages Using EPEL Repository on CentOS/RHEL

Sharon Christine
Updated on 21-Jan-2020 10:42:03

697 Views

In this article we shall try to learn, how to add EPEL Repository for Linux. EPEL (Extra Package for Enterprise Linux) is an open source and free community based repository from the Fedora community team which provides high quality and good add-on software’s for Linux distributions. It has Red Hat Enter Linux, CentOS, Scientific Linux and most of the repositories which are maintained by the Fedora team only.Why we use EPEL Repositories for PackagesProvides a lot of open source packages which are installed using yum.EPEL repositories are open source and they are 100% free to use.There will not be any ... Read More

How to Create a Cron Job and Execute at a Given Time in Linux

Sharon Christine
Updated on 21-Jan-2020 10:11:47

2K+ Views

In this article, we will teach you on – how to schedule a corn job to execute at a specific time.General Syntax of a Cron JobMIN    HOUR    Day of month    Month    Day of Week    Command 0-59   0-23       1-31          1-12       0-6       linux command or scriptTo see a list of Cron Jobs which exists on the machine, run the below command –# crontab -l no crontab for rootTo add the new cron job, run the below command –#crontab -e no crontab for root - using an empty one Select an editor. To change later, run 'select-editor'. 1. /bin/ed 2. /bin/nano

How To Configure and Install Redis on Ubuntu Linux

Sharon Christine
Updated on 21-Jan-2020 09:33:06

468 Views

In this article we will learn how to configure Redis, Redis is an in-memory Key-value store which is popular for its flexibility, performance and used with wide language support. We will configure this on the Ubuntu Linux server. To do this demo we need a non-root user and we will set Sudo privileges to the user to perform.Install the Build and Test DependenciesTo get the latest version of Redis, we will get the latest source code and will compile and install the software. For that, we needed to install the dependencies for the software compiling.We also need to install build-essential ... Read More

Advertisements