How to find all users with cron jobs in Linux

I ran into an issue where I had to clear several cron jobs that were firing off backups. They were no longer needed and were causing some issues. I found that the command listed below would show all cron jobs on the system. You may need to switch users accounts from root depending on which user account created the job.

sudo su -

for user in `cat /etc/passwd | grep bash | awk -F: {'print $1'}`; do crontab -u $user -l; done

The output will list all entries in crontab, you can then change to the account that owns the job and use crontab -e to make changes as needed.

Add-CertificateEnrollmentPolicyServer

NAME

Add-CertificateEnrollmentPolicyServer

SYNOPSIS

Adds an enrollment policy server to the current user or local system configuration.

SYNTAX

    Add-CertificateEnrollmentPolicyServer [-AutoEnrollmentEnabled] 
    [-Credential [<PkiCredential>]] [-NoClobber] 
    [-RequireStrongValidation] -context {Machine | User} -Url <Uri> 
    [-Confirm] [-WhatIf] [<CommonParameters>]
    

DESCRIPTION

Add-BitsFile

NAME
Add-BitsFile

SYNOPSIS
Adds one or more files to an existing BITS transfer job.

SYNTAX

    Add-BitsFile [-BitsJob] <BitsJob[]> [-Source] <String[]> 
    [[-Destination] [<String[]>]] [-Confirm] 
    [-WhatIf] [<CommonParameters>]

DESCRIPTION

Add-BitLockerKeyProtector

NAME
Add-BitLockerKeyProtector

SYNOPSIS
Adds a key protector for a BitLocker volume.

SYNTAX

Add-BCDataCacheExtension

NAME
Add-BCDataCacheExtension

SYNOPSIS
Increases the amount of cache storage space that is available on a hosted cache server by adding a
new cache file.

SYNTAX

Add-AppxVolume

NAME
Add-AppxVolume

SYNOPSIS
Adds an appx volume to the Package Manager.

SYNTAX

Add-AppxProvisionedPackage

NAME
Add-AppxProvisionedPackage

SYNOPSIS
Adds an app package (.appx) that will install for each new user to a Windows image.

SYNTAX

Add-AppxPackage

NAME
Add-AppxPackage

SYNOPSIS
Adds a signed app package to a user account.

SYNTAX

    Add-AppxPackage [-Path] <String> [-DependencyPath [<String[]>]] 
	[-ForceApplicationShutdown] [-ForceTargetApplicationShutdown] 
	[-InstallAllResources] [-Volume [<AppxVolume>]] [-Confirm] 
    [-WhatIf] [<CommonParameters>]
	


Add-ADComputerServiceAccount

NAME
Add-ADComputerServiceAccount

SYNOPSIS
Adds one or more service accounts to an Active Directory computer.

SYNTAX

Checkpoint-Computer

1st Microsoft Example

Checkpoint-Computer [-Description] <String> [[-RestorePointType] <String>] 
[-Verbose] [-Debug] [-ErrorAction <ActionPreference>] 
[-WarningAction <ActionPreference>] [-ErrorVariable <String>] 
[-WarningVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]

Pages

Subscribe to Joustin RSS