Skip to main content

Command Palette

Search for a command to run...

Exploring the linux !!! Blog 2

Updated
•2 min read•View as Markdown
Exploring the linux !!! Blog 2

Hey! Hi, hello! As you know, I am Suyash Gawde. Today, I attended the second day of the Linux workshop at DBATU, Lonere. It was conducted by Pranav Jambare , as mentioned in my previous blog.

Today, we delved into the fascinating topic of Remote Copying Tools. Remote copying tools can be classified into three types:

  1. SCP (Secure Copy): The SCP command in Linux is used to securely copy file(s) between servers. It facilitates the secure transfer of files between the local host and remote hosts, or between two remote hosts. Syntax: scp [username]@[IP]:[destination]

  2. Rsync: Rsync is a command-line tool that enables the copying of files and directories between local and remote systems. It is a must-have tool for every Linux sysadmin. Syntax: rsync -av [filename]@[IP]:[destination]

  3. SFTP (Safe File Transfer Protocol): SFTP is part of the SSH protocol and is designed to securely transfer files between remote systems. It allows users to view, manage, and modify file and directory permissions on remote systems. Syntax: sftp [user]@[IP]

Next, let's explore Archive Tools:

  • Gzip: Gzip is used to compress files. To compress: gzip [filename] To decompress: gunzip [filename].gz

  • XZ: XZ is used for file compression. To compress: xz [filename] To decompress: unxz [filename].xz

  • Bzip2: Bzip2 is another compression tool. To compress: bzip [filename] To decompress: bunzip [filename].bz2

Backup: In Linux, a backup refers to a copy of computer data taken and stored elsewhere, allowing the restoration of the original data after a data loss event.

The location of backups in Linux: In most cases, all user data is stored under the /home directory, which typically consists of static files that are easy to recover. Therefore, an effective solution for backing up user data is to back up the home directory in Linux.

Tar: Tar stands for "tape archive" and allows you to create backups using tar, gzip, and bzip. It compresses files and directories into an archive file.

To create an archive file: Syntax: tar -cvzf <destn.backup> Example: tar -cvzf test.backup file1 file2 file3

To extract an archive file: Syntax: tar -xvf <destn.backup> Example: tar -xvf test.backup

User Management:

  • Adding a User

  • Verifying the User

  • Deleting the User

  • Managing the Password Policy

  • Changing/Restricting User Access

  • Locking and Unlocking User Accounts

  • Adding a Group

  • Adding a User to a Group

  • Deleting a Group

  • Changing the User ID

Day 2 covered the following topics:

  • Remote Copying Tools

  • Archive Tools

  • User Management

I hope you find this blog interesting!

Thanks for reading!

P

Good Going !!! Amazing Work !!!

More from this blog

WHERE , WHAT , WHY LINUX ?

8 posts