Bash Functions
Explore all available Bash functions on AutoCodeWizard. Click a function to view more details and the code implementation.
["APIs","Backup & Restore","Compute","Configuration","Data Processing","Database","Email","File Management","Google Cloud","Identity and Access Management","Log Analysis","Media Processing","Network Operations","Project Management","Security","Storage","System Monitoring","System Operations","User Management"]
[{"func_name":"check_disk_usage","func_desc":"Check the disk space usage on the system.","func_category":"System Monitoring"},{"func_name":"backup_directory","func_desc":"Backup a specified directory.","func_category":"Backup & Restore"},{"func_name":"monitor_cpu","func_desc":"Monitor CPU usage over time.","func_category":"System Monitoring"},{"func_name":"send_email_notification","func_desc":"Send an email notification from a Bash script.","func_category":"Email"},{"func_name":"fetch_http_content","func_desc":"Retrieve the content of a URL using curl or wget.","func_category":"Network Operations"},{"func_name":"compress_files","func_desc":"Compress multiple files into a zip archive.","func_category":"File Management"},{"func_name":"extract_tar_gz","func_desc":"Extract a .tar.gz file.","func_category":"File Management"},{"func_name":"find_large_files","func_desc":"Find files larger than a specific size.","func_category":"File Management"},{"func_name":"check_service_status","func_desc":"Check if a service is running.","func_category":"System Monitoring"},{"func_name":"list_open_ports","func_desc":"List all open network ports.","func_category":"Network Operations"},{"func_name":"kill_process_by_name","func_desc":"Kill a process based on its name.","func_category":"System Operations"},{"func_name":"monitor_log_changes","func_desc":"Continuously monitor a log file for changes.","func_category":"System Monitoring"},{"func_name":"parse_csv","func_desc":"Parse and read data from a CSV file.","func_category":"Data Processing"},{"func_name":"ping_multiple_hosts","func_desc":"Ping a list of IPs or hostnames.","func_category":"Network Operations"},{"func_name":"convert_file_encoding","func_desc":"Convert file encoding between formats.","func_category":"File Management"},{"func_name":"check_website_status","func_desc":"Check if a website is up.","func_category":"Network Operations"},{"func_name":"download_file","func_desc":"Download a file from the internet.","func_category":"[\"File Management\"]"},{"func_name":"check_network_speed","func_desc":"Test internet connection speed using a speed test tool.","func_category":"Network Operations"},{"func_name":"schedule_cron_job","func_desc":"Create a cron job to schedule script execution.","func_category":"System Operations"},{"func_name":"get_external_ip","func_desc":"Retrieve the external IP address of the system.","func_category":"Network Operations"},{"func_name":"automated_database_backup","func_desc":"Automate the process of backing up a MySQL database and compress the output into a .tar.gz file.","func_category":"Backup & Restore"},{"func_name":"log_file_rotation","func_desc":"Rotate log files by archiving old logs, compressing them, and keeping only the latest log files.","func_category":"File Management"},{"func_name":"monitor_memory_usage","func_desc":"Monitor system memory usage in real-time and alert if usage exceeds a defined threshold.","func_category":"System Monitoring"},{"func_name":"sync_directories_rsync","func_desc":"Sync two directories (local or remote) using rsync with error handling and email notifications.","func_category":"File Management"},{"func_name":"process_monitoring_daemon","func_desc":"Create a background daemon to monitor critical processes and restart them if they crash.","func_category":"System Operations"},{"func_name":"generate_ssl_certificates","func_desc":"Automatically generate and renew SSL certificates using Let's Encrypt and schedule the renewal using cron.","func_category":"Network Operations"},{"func_name":"fetch_api_data","func_desc":"Fetch data from a REST API using curl and process the JSON response for output in a human-readable format.","func_category":"Network Operations"},{"func_name":"user_account_cleanup","func_desc":"Search for and delete user accounts that have not been active for a specified number of days.","func_category":"User Management"},{"func_name":"advanced_file_permission_audit","func_desc":"Perform a detailed audit of file and directory permissions, focusing on sensitive files like \/etc and \/var.","func_category":"Security"},{"func_name":"network_latency_test","func_desc":"Test the network latency between your system and multiple remote servers, storing the results in a CSV file.","func_category":"Network Operations"},{"func_name":"disk_usage_report_with_visualization","func_desc":"Generate a disk usage report and create visual pie charts or bar graphs using gnuplot for better insights.","func_category":"System Monitoring"},{"func_name":"firewall_rule_report","func_desc":"Generate a detailed report of all active firewall rules (iptables) and export them to a formatted text file.","func_category":"Security"},{"func_name":"cronjob_health_check","func_desc":"Check the health of all configured cron jobs and log the status of each, including last run times.","func_category":"System Operations"},{"func_name":"docker_container_backup","func_desc":"Create backups of all running Docker containers by saving their images and configuration data to an archive.","func_category":"Backup & Restore"},{"func_name":"nginx_log_analysis","func_desc":"Analyze NGINX log files for suspicious IP addresses, high traffic, or slow response times, and output the findings.","func_category":"Log Analysis"},{"func_name":"custom_software_installer","func_desc":"Write a script that automates the installation and configuration of a set of software packages, including dependencies.","func_category":"System Operations"},{"func_name":"remote_server_reboot_schedule","func_desc":"Schedule reboots for a list of remote servers using SSH and log the uptime before and after each reboot.","func_category":"System Operations"},{"func_name":"system_hardening_audit","func_desc":"Perform a security audit of the system by checking for weak passwords, outdated software, and insecure file permissions.","func_category":"Security"},{"func_name":"automated_media_transcoding","func_desc":"Monitor a directory for new media files and automatically transcode them into a different format using FFmpeg.","func_category":"Media Processing"},{"func_name":"multi_server_log_collector","func_desc":"Collect logs from multiple servers via SSH and consolidate them into a central log file for easier monitoring.","func_category":"Log Analysis"},{"func_name":"generate_ssl_certificates","func_desc":"Automatically generate and renew SSL certificates using Let's Encrypt and schedule the renewal using cron.","func_category":"Network Operations"},{"func_name":"fetch_api_data","func_desc":"Fetch data from a REST API using curl and process the JSON response for output in a human-readable format.","func_category":"Network Operations"},{"func_name":"user_account_cleanup","func_desc":"Search for and delete user accounts that have not been active for a specified number of days.","func_category":"User Management"},{"func_name":"advanced_file_permission_audit","func_desc":"Perform a detailed audit of file and directory permissions, focusing on sensitive files like \/etc and \/var.","func_category":"Security"},{"func_name":"network_latency_test","func_desc":"Test the network latency between your system and multiple remote servers, storing the results in a CSV file.","func_category":"Network Operations"},{"func_name":"disk_usage_report_with_visualization","func_desc":"Generate a disk usage report and create visual pie charts or bar graphs using gnuplot for better insights.","func_category":"System Monitoring"},{"func_name":"firewall_rule_report","func_desc":"Generate a detailed report of all active firewall rules (iptables) and export them to a formatted text file.","func_category":"Security"},{"func_name":"create_user_with_sudo","func_desc":"Create a new user and add them to the sudoers group for elevated privileges.","func_category":"User Management"},{"func_name":"lock_user_account","func_desc":"Lock a user\u00e2\u20ac\u2122s account to prevent login without deleting the user.","func_category":"User Management"},{"func_name":"unlock_user_account","func_desc":"Unlock a previously locked user account.","func_category":"User Management"},{"func_name":"delete_user_and_home","func_desc":"Delete a user and remove their home directory and mail spool.","func_category":"User Management"},{"func_name":"list_sudo_users","func_desc":"List all users with sudo privileges on the system.","func_category":"User Management"},{"func_name":"change_user_shell","func_desc":"Change the default shell for a specified user.","func_category":"User Management"},{"func_name":"create_user_group","func_desc":"Create a new user group on the system.","func_category":"User Management"},{"func_name":"add_user_to_group","func_desc":"Add an existing user to a specified group.","func_category":"User Management"},{"func_name":"remove_user_from_group","func_desc":"Remove a user from a specified group.","func_category":"User Management"},{"func_name":"set_file_permissions_for_user","func_desc":"Set file permissions for a specific user on a given file or directory.","func_category":"User Management"},{"func_name":"set_acl_for_directory","func_desc":"Set Access Control List (ACL) permissions for a directory, allowing fine-grained control over user access.","func_category":"File Management"},{"func_name":"check_user_password_expiry","func_desc":"Check the password expiry date for a user account.","func_category":"User Management"},{"func_name":"disable_user_password_login","func_desc":"Disable password-based login for a specified user.","func_category":"User Management"},{"func_name":"enable_user_password_login","func_desc":"Enable password-based login for a user that was previously disabled.","func_category":"User Management"},{"func_name":"set_group_permissions_on_directory","func_desc":"Set group ownership and permissions on a directory.","func_category":"User Management"},{"func_name":"audit_user_activity","func_desc":"Audit user login and activity logs to track their actions on the system.","func_category":"User Management"},{"func_name":"grant_sudo_to_group","func_desc":"Grant sudo privileges to all members of a specified group.","func_category":"User Management"},{"func_name":"revoke_sudo_from_user","func_desc":"Revoke sudo privileges from a specified user.","func_category":"User Management"},{"func_name":"change_user_password","func_desc":"Force a password change for a specific user.","func_category":"User Management"},{"func_name":"find_files_owned_by_user","func_desc":"Find all files owned by a specific user on the system.","func_category":"File Management"},{"func_name":"create_gcp_vm_instance","func_desc":"Create a new virtual machine instance in Google Cloud using the gcloud CLI.","func_category":"[\"Google Cloud\",\"Compute\"]"},{"func_name":"list_gcp_vm_instances","func_desc":"List all virtual machine instances in a specific GCP project and zone using gcloud CLI.","func_category":"[\"Google Cloud\",\"Compute\"]"},{"func_name":"delete_gcp_vm_instance","func_desc":"Delete a virtual machine instance from a GCP project using the gcloud CLI.","func_category":"[\"Google Cloud\",\"Compute\"]"},{"func_name":"start_gcp_vm_instance","func_desc":"Start an existing virtual machine instance in GCP using the gcloud CLI.","func_category":"[\"Google Cloud\",\"Compute\"]"},{"func_name":"stop_gcp_vm_instance","func_desc":"Stop a running virtual machine instance in Google Cloud using the gcloud CLI.","func_category":"[\"Google Cloud\",\"Compute\"]"},{"func_name":"create_gcp_bucket","func_desc":"Create a new Google Cloud Storage bucket in a specified project.","func_category":"[\"Google Cloud\",\"Storage\"]"},{"func_name":"list_gcp_buckets","func_desc":"List all Google Cloud Storage buckets in a specified project using gcloud CLI.","func_category":"[\"Google Cloud\",\"Storage\"]"},{"func_name":"upload_to_gcp_bucket","func_desc":"Upload a file to a Google Cloud Storage bucket using gsutil.","func_category":"[\"Google Cloud\",\"Storage\"]"},{"func_name":"download_from_gcp_bucket","func_desc":"Download a file from a Google Cloud Storage bucket using gsutil.","func_category":"[\"Google Cloud\",\"Storage\"]"},{"func_name":"delete_gcp_bucket","func_desc":"Delete a Google Cloud Storage bucket using the gcloud CLI.","func_category":"[\"Google Cloud\",\"Storage\"]"},{"func_name":"set_gcp_bucket_permissions","func_desc":"Set permissions on a Google Cloud Storage bucket using the gsutil command.","func_category":"[\"Google Cloud\",\"Storage\",\"Security\"]"},{"func_name":"enable_gcp_apis","func_desc":"Enable specific Google Cloud APIs in a project using gcloud CLI.","func_category":"[\"Google Cloud\",\"APIs\",\"Configuration\"]"},{"func_name":"list_gcp_projects","func_desc":"List all GCP projects accessible to the user using gcloud CLI.","func_category":"[\"Google Cloud\",\"Project Management\"]"},{"func_name":"create_gcp_project","func_desc":"Create a new project in Google Cloud using gcloud CLI.","func_category":"[\"Google Cloud\",\"Project Management\"]"},{"func_name":"delete_gcp_project","func_desc":"Delete an existing Google Cloud project using gcloud CLI.","func_category":"[\"Google Cloud\",\"Project Management\"]"},{"func_name":"create_gcp_service_account","func_desc":"Create a new service account in Google Cloud using gcloud CLI.","func_category":"[\"Google Cloud\",\"Identity and Access Management\",\"Security\"]"},{"func_name":"assign_gcp_role_to_service_account","func_desc":"Assign a specific role to a service account in Google Cloud using gcloud CLI.","func_category":"[\"Google Cloud\",\"Identity and Access Management\",\"Security\"]"},{"func_name":"generate_gcp_service_account_key","func_desc":"Generate and download a key for a Google Cloud service account using gcloud CLI.","func_category":"[\"Google Cloud\",\"Identity and Access Management\",\"Security\"]"},{"func_name":"list_gcp_service_accounts","func_desc":"List all service accounts in a specific Google Cloud project using gcloud CLI.","func_category":"[\"Google Cloud\",\"Identity and Access Management\",\"Security\"]"},{"func_name":"create_gcp_sql_instance","func_desc":"Create a new Cloud SQL instance in Google Cloud using gcloud CLI.","func_category":"[\"Google Cloud\",\"Database\"]"}]