Shell-scripting

dipanwita sahoodipanwita sahoo
1 min read
  1. Create Directories Using Shell Script:

2.Create a Script to Backup All Your Work:

This script will copy files from a specified source directory to a backup directory, creating a timestamped backup folder for each backup run.

  1. Read About Cron and Crontab to Automate the Backup Script:

What is Cron?

Cron is a time-based job scheduler in Unix-like operating systems. It allows you to run scripts or commands at specified intervals.

What is Crontab?

Crontab (cron table) is a file where you can define cron jobs, which are the scheduled tasks. Each user can have their own crontab file, and there’s also a system-wide crontab file.

  1. Read About User Management:User Accounts

    1. User Types:

      • Regular Users: Created for individuals to use the system.

      • Root User: The superuser with full administrative privileges.

    2. User Information: User details are stored in the /etc/passwd file. Each line represents a user and includes information such as username, user ID (UID), group ID (GID), home directory, and default shell.

0
Subscribe to my newsletter

Read articles from dipanwita sahoo directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

dipanwita sahoo
dipanwita sahoo