1 . HOW TO TAKE BACKUP IN LINUX?
ANS :- TO TAKE A BACK UP IN LINUX , YOU CAN THE tar COMMAND . FOR EXAMPLE , TO CREATE A COMPRESSED ARCHIVE OF A DIRECTORY NAMED SOURCE , YOU CAN USE :
CODE EXAMPLE :-
tarc-czvf backup.tar.gz /path/to/source
2. WHY e2fsck IS USED ? IS IT NECESSARY TO USE THIS?
ANS :- e2fsck (ext2/3/4 file system check ) IS A UTILITY IN LINUX USED TO CHECK AND REPAIR INCONSITENCIES IN ext2, ext3, and ext4 file systems . IT IS PART OF THE e2fsprogs , WHICH PROVIDES TOOLS FOR MANAGING ext2/3/4 file system.
3. WHAT IS PID IN LINUX ?
ANS :- IN LINUX, PID ( PROCESS IDENTIFIER ) IS A UNIQUE NUMERICAL IDENTIFIER ASSIGNED TO EACH RUNNING PROCESS, ENABLING THE OPERATING SYSTEM TO MANAGE AND TRACK INDIVIDUAL PROCESSES.
4.HOW TO EXECUTE CMD IN PRIVILAGES LINUX ?
ANS :- TO EXECUTE A COMMAND WITH ELEVATED PRIVILAGES IN LINUX , YOU TYPICALLY USE THE ” sudo” COMMAND . “sudo” ALLOWS AUTHORISED USERS TO EXECUTE A COMMAND AS THE SUPERUSER OR ANOTHER USER , AS SPECIFIED BY THE SECURITY POLICY CONFIGURED IN THE /etc/sudoers FILE.
5. HOW TO FILE RENAME AND TRANSFER ONE MACHINE TO ANOTHER?
ANS :-(A) RENAME THE FILE :
ON THE SOURCE MACHINE , USE THE “mv” COMMAND TO RENAME THE FILE :
EXAMPLE :- mv file.txt new_file.txt
:-(B) TRANSFER THE FILE:
USE scp TO SECURELY COPY THE RENAMED FILE TO THE DESTINATION MACHINE. REPLACE USER WITH YOUR USERNAME, source_machine WITH THE IP ADDRESS OR HOSTNAME OF THE SOURCE MACHINE , AND ADJUST THE PATHS ACCORDINGLY:
EXAMPLE :- scp new_file.txt user @destination_machine:/path/to/destination/directory/