اطلاعیه

Collapse
No announcement yet.

ترفندهای گنو/لینوکس

Collapse
X
 
  • Filter
  • زمان
  • Show
Clear All
new posts

  • ترفندهای گنو/لینوکس

    با سلام

    تمام ترفندهای به درد بخور تو این تاپیک قرار می گیرد

    لطفا قوانین را رعایت کنید و اسپم نکنید

    با تشکر جوکر
    (◕‿◕)

  • #2
    فرمت یو اس بی درایو با خط فرمان

    CTRL + ALT + T ، ترمینال را باز کنید

    تایپ کنید : df

    /dev/sdc1 یو اس بی درایو هستش

    تایپ کنید : sudo umount /dev/sdc1

    اگر میخواهید یو اس بی خود را با fat32 فرمت کنید

    تایپ کنید : sudo mkfs.vfat -n 'Shabgard' -I /dev/sdc1

    Shabgard : نام درایو

    mkfs.vfat : برای فرمت fat32

    و بقیه فرمت ها

    mkfs.bfs, mkfs.ext2, mkfs.ext3, mkfs.ext4, mkfs.minix, mkfs.msdos, mkfs.vfat, mkfs.xfs, mkfs.xiafs
    (◕‿◕)

    Comment


    • #3
      تکه تکه کردن فایل ها در لینوکس

      به مسیر فایلتان بروید

      تایپ کنید : split -b bytes filename.xxx

      برای بازگرداندن فایل به حالت اولیه*ی خود

      تایپ کنید : cat part1 part2 part3 > filename.xxx

      bytes : حجم فایل

      filename.xxx : فایل مورد نظر

      برای اطلاعات بیشتر تایپ کنید :

      man split Ùˆ man cat
      (◕‿◕)

      Comment


      • #4
        More swap with a swap file

        .You installed a new Linux system, but forgot to set enough swap space for your needs
        ?Do you need to repartition and reinstall
        .No, the swap utilities on Linux allow you to make a real file and use it as swap space
        ;The trick is to make a file and then tell the swapon program to use it. Here's how to create
        ;for example, a 64megs swap file on your root partition
        :(of course make sure you have at least 64 megs free)

        dd if=/dev/zero of=/swapfile bs=1024 count=65536

        :This will make a 64 megs (about 67 millions bytes) file on your hard drive. You now need to initialize it

        mkswap /swapfile 65536
        sync


        :And you can then add it to your swap pool

        swapon /swapfile

        .With that you have 64 megs of swap added
        .Don't forget to add the swapon command to your startup files so the command will be repeated at each reboot
        (◕‿◕)

        Comment

        Working...
        X