100 Linux/Unix Basic Commands in 60 Min | You Must Know Today 🔥🔥🔥

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024
  • #engrabhishekroshan
    Support My blogging Website : freshertube.com
    In This Video I have Explained 100 linux/unix basic commands:
    pwd: Print current working directory.
    ls: List files and directories in the current directory.
    cd: Change directory.
    mkdir: Create a new directory.
    rmdir: Remove an empty directory.
    touch: Create an empty file.
    rm: Remove files or directories.
    cp: Copy files or directories.
    mv: Move or rename files and directories.
    cat: Display the contents of a file.
    more or less: View file contents page by page.
    head: Display the beginning of a file.
    tail: Display the end of a file.
    nano or vim: Text editors.
    grep: Search for text patterns in files.
    find: Search for files and directories.
    which: Locate a command.
    whoami: Display the current user.
    who: Show who is logged on.
    ps: List running processes.
    top or htop: Monitor system activity.
    kill: Terminate processes.
    chmod: Change file permissions.
    chown: Change file ownership.
    chgrp: Change group ownership.
    df: Show disk space usage.
    du: Display directory space usage.
    free: Display system memory usage.
    tar: Archive and compress files.
    gzip or gunzip: Compress or decompress files.
    zip or unzip: Create or extract ZIP archives.
    wget: Download files from the internet.
    curl: Transfer data with URLs.
    ping: Test network connectivity.
    ifconfig or ip: Network configuration.
    ssh: Secure Shell for remote login.
    scp: Securely copy files over SSH.
    rsync: Synchronize files and directories.
    passwd: Change user password.
    useradd: Create a new user.
    userdel: Delete a user.
    usermod: Modify user properties.
    groupadd: Create a new group.
    groupdel: Delete a group.
    groupmod: Modify group properties.
    sudo: Execute commands with superuser privileges.
    su: Switch to another user.
    whois: Look up domain information.
    date: Display the current date and time.
    cal: Display a calendar.
    hostname: Display or set the system's hostname.
    uname: Display system information.
    lsblk: List block devices.
    mount: Mount a filesystem.
    umount: Unmount a filesystem.
    ps aux: List all running processes.
    killall: Terminate processes by name.
    netstat: Network statistics.
    lspci: List PCI devices.
    lsusb: List USB devices.
    mkfs: Create a filesystem.
    fsck: Filesystem consistency check.
    rpm -ivh
    rpm -qa
    service or systemctl: Manage system services.
    rpm -e
    history: Display command history.
    awk: Text processing language.
    sed: Stream editor.
    sort: Sort lines of text.
    uniq: Remove duplicate lines.
    cut: Extract sections from lines of files.
    wc: Word, line, character, and byte count.
    tee: Redirect output to a file and stdout.
    alias: Create a shortcut for a command.
    unalias
    echo: Print text to the terminal.
    sleep: Pause for a specified amount of time.
    watch: Repeatedly execute a command.
    nc: Network utility for reading/writing network connections.
    lsof: List open files and processes.
    man: Display the manual page for a command.
    whatis: Display a short description of a command.
    kill: Terminate processes.
    ssh-keygen: Generate SSH keys.
    pvs or pvdisplay
    vgs or vgdisplay
    lvs or lvdisplay
    nslooup
    ll
    tailf or tail -f
    crontab -l
    reboot: Reboot the system.
    shutdown: Schedule a system shutdown.
    Click the below link and Join the membership
    Join this channel to get access to perks:
    / @engrabhishekroshan
    Watch Hindi Playlist of Linux 100+ Realtime Scenario based interview Questions and Answers
    अब हिंदी में
    Part 1 • Linux 100 + Realtime S...
    Part 2 • Linux 100 + Realtime S...
    AWS 300 + Realtime Scenario based Interview questions and answers explained in detail
    Part 1 : • AWS 300 + Realtime sce...
    Part 2 : • AWS 300 + Realtime sce...
    Part 3 : • AWS 300 + Realtime Sce...
    Part 4 : • AWS 300 + Realtime Sce...
    Watch English Playlist of Linux 100 + Realtime Scenario Based Interview Questions and Answers Explained in Detail
    Part 1 • Linux 100 + Realtime S... ( In this video I covered 8 Q&A)
    Part 2 • Linux 100 + Realtime S... ( In this video I covered 10 Q&A)
    Part 3 • Linux 100 + Realtime S... ( In this video I covered 10 Q&A)
    Part 4 • Linux 100 + Realtime S... ( In this video I covered 12 Q&A)
    Part 5 • Linux 100 + Realtime S... (In this video I covered 10 Q&A)
    Part 6 • Linux 100 + Realtime S... (In this video I covered 10 Q&A)
    Part 7 • Linux 100 + Realtime S... (In this video I covered 10 Q&A)
    Part 8 • Linux 100 + Realtime S... (In this video I covered 10 Q&A)
    Part 9 • Linux 100 + Realtime S... (In this video I covered 10 Q&A)
    Part 10 • Linux 100 + Realtime S... (In this video I covered 12 Q&A)
    Part 11 • Linux 100 + Realtime S... (In this video I covered 10 Q&A)
    Part 12 • Linux 100 + Realtime S... (In this video I have covered 10 Q&A)
    Part 13 • Linux 100 + Realtime S... (In This Video I have covered 1 Scenario based Interview Q&A )

Комментарии • 25

  • @bhallaldev88
    @bhallaldev88 8 месяцев назад +2

    Excellent sirji aapki 1 video ne muje bahut kuch sikha diya.
    Thank you so much 😊

    • @EngrAbhishekRoshan
      @EngrAbhishekRoshan  8 месяцев назад

      Welcome & Thank you.....and lets grow our channel together, So that everyone can get benefit out of it. Share with more and more people.

  • @mrigankaz
    @mrigankaz Месяц назад

    Thank you so much sir for this tutorial . Me heartfelt appreciation for creating it. I will watch it as daily revision in 1.5x speed for my upcoming Linux+ exam
    Thank you so much !!!!
    🙏🙏🙏

    • @EngrAbhishekRoshan
      @EngrAbhishekRoshan  Месяц назад

      You are most welcome.
      And also check my below course to get updated in this IT for next 15 years.
      www.abhishekroshan.com/courses/100-Days-IT-Corporate-Bootcamp--Linux-Shell-Scripting-AWS-Cloud-Devops--Automation--Monitoring----Realtime-Project-668c2c25924bab7ed1d83a78

  • @manojboura9131
    @manojboura9131 4 месяца назад +3

    sir can you please make a video on how fresher can apply for as a linux administrator

  • @user-ds6me3kq5q
    @user-ds6me3kq5q 7 месяцев назад +2

    Nice class very helpful 👏

  • @user-ff1vp4oj7u
    @user-ff1vp4oj7u 8 месяцев назад +2

    sir, Excellent video. Thanks a lot.

  • @user-ds6me3kq5q
    @user-ds6me3kq5q 7 месяцев назад +2

    Grep stands for ...global regular expression

  • @venkateshvenky9907
    @venkateshvenky9907 4 месяца назад +1

    Hi Abhishek
    -How to recovering the deleted files in linux
    -How to schedule cron jobs for every 30 second
    -who will change the umask value either root user or normal user
    -

    • @EngrAbhishekRoshan
      @EngrAbhishekRoshan  3 месяца назад

      Q1.How to recovering the deleted files in linux
      Answer:Recovering deleted files in Linux can be done using several methods, depending on the filesystem and the circumstances of deletion. Here are some common approaches:
      1.Check Trash/Bin: Just like in Windows or macOS, Linux desktop environments often have a Trash or Bin where deleted files are temporarily stored before being permanently deleted. You can check there first.
      2.Restore from Backup: If you have a backup system in place, you can restore deleted files from your backup.
      3.Using File Recovery Tools:
      TestDisk: TestDisk is a powerful data recovery tool that can recover lost partitions and make non-booting disks bootable again. It's command-line based but has a step-by-step guide.
      PhotoRec: Also part of the TestDisk suite, PhotoRec is specifically designed to recover lost files including video, documents, and archives from hard disks, CD-ROMs, and lost pictures from digital camera memory.
      Scalpel: Scalpel is another file recovery tool for Linux that operates on a file-by-file basis, searching for file signatures to recover deleted files. It's more manual than some other tools but can be highly effective.
      4.Use Forensics Tools: Tools like Sleuth Kit or Autopsy are more advanced and typically used for forensic analysis, but they can also be used for file recovery.
      5.Stop Writing to the Disk: When you realize files have been deleted, avoid writing any new data to the disk immediately. This minimizes the chance of overwriting the deleted files, increasing the chances of recovery.
      6.Check Filesystem Journal: Some filesystems, like ext3 and ext4, keep a journal that logs changes before they are committed to the filesystem. Tools like extundelete can utilize this journal to recover deleted files.
      7.Check for Temporary Files: Sometimes, applications create temporary copies of files that might still be accessible even if the original was deleted. Look for directories like /tmp or /var/tmp.
      Q2.How to schedule cron jobs for every 30 second
      Answer: Cron jobs in Linux typically have a minimum granularity of one minute, so scheduling a job to run every 30 seconds directly with cron is not possible. However, you can achieve a similar effect by using a combination of cron and a short shell script or command
      1.Create a shell script (let's call it every_30_seconds.sh) with the command you want to run:
      #!/bin/bash
      while true; do
      # Your command here
      echo "This command runs every 30 seconds"
      sleep 30
      done
      2.Make the script executable:
      chmod +x every_30_seconds.sh
      3.Now, you can schedule this script to run every minute using cron:
      * * * * * /path/to/every_30_seconds.sh
      This will run the script every minute, but since the script itself sleeps for 30 seconds after each execution, the command inside the script effectively runs every 30 seconds.
      Q3.who will change the umask value either root user or normal user
      Answer:In Linux, both the root user and normal users have the ability to change the umask value.
      1.Root User: The root user has full administrative privileges and can change system-wide settings, including the default umask value for all users on the system. Changes made by the root user typically affect all users unless overridden by individual user configurations.
      2.Normal User: Normal users can also change their own umask value for their current session. This change affects the permissions assigned to files and directories they create during that session. However, normal users generally cannot change system-wide umask settings unless they have sufficient privileges to modify system configuration files (e.g., through sudo).
      It's important to note that while normal users can change their own umask value for their current session, it typically doesn't have any impact on other users or on the system as a whole. System-wide changes to the umask value are usually made by the root user for broader effects across the system.

  • @NaagaPraveen-um5dx
    @NaagaPraveen-um5dx 7 месяцев назад +1

    Thank you so much Sir

    • @EngrAbhishekRoshan
      @EngrAbhishekRoshan  7 месяцев назад +1

      Most welcome…keep watching and keep sharing with others

  • @koteswarichemuru3837
    @koteswarichemuru3837 10 месяцев назад +1

    Thank you sir

  • @049-sowmyapunna3
    @049-sowmyapunna3 9 месяцев назад +1

    Sir, please suggest me is there any option to recover the data if i accidentally execute rm * / command

    • @EngrAbhishekRoshan
      @EngrAbhishekRoshan  9 месяцев назад

      Unfortunately, if you accidentally execute the rm * / command. This command will attempt to remove all files and directories in the current directory and then proceed to delete everything in the root directory ("/"). Recovering data after such a command is extremely challenging, but if you have recent backup of your system, than restore from that backup. or it's always to good prevention is better than cure.

  • @VinothKumarVinothan
    @VinothKumarVinothan 10 месяцев назад +3

    Publish RUclips video later

    • @EngrAbhishekRoshan
      @EngrAbhishekRoshan  10 месяцев назад +1

      Hi Vinoth you are watching the same video 100 Linux basic command in 60 min. I have published at 10 AM today 😊 🙏.Only thing is for early hours I put this video as premiered so that I can do live chat with everyone.

  • @krithwal1997
    @krithwal1997 Месяц назад +1

    Tee command is used to put the output in a file on the same time right ??

    • @EngrAbhishekRoshan
      @EngrAbhishekRoshan  Месяц назад +1

      Yes, that's correct. The tee command in linux like operating systems is used to read from standard input and write to standard output and files simultaneously. It is especially useful when you want to view the output of a command in the terminal and also save it to a file. For example, the command ls -l | tee output.txt will display the directory listing in the terminal and write the same output to output.txt.

    • @krithwal1997
      @krithwal1997 Месяц назад

      @@EngrAbhishekRoshan thanks sirjii