BASH 28
OS Lab - Class 3 Guest on 20th December 2021 11:26:14 AM
  1. dd - to make the bootable usb device.
  2. if = input file
  3. dd = disk data
  4. of = usb path
  5. dd if=<source> of=<target> bs=512; sync
  6. bs = byte size
  7. dd if=/home/faraz/ubuntu.iso of=dw/sdb1 bs=512; sync
  8.  
  9. lsusb  - shows all the list of usb devices connected
  10. lsblk - block devices, all usb and hard drive devices
  11. fdisk -l - to find if devices are connected
  12.  
  13. format flash drive
  14. sudo umount /dev/sdb1 - data stop showing after unmounting
  15. sudo mkfs = main file system
  16. sudo mkfs mkfs.ntfs /dev/sdb1 - to format the usb into ntfs
  17.  
  18. apt advanced package tools
  19. apt-get update - to update the OS
  20. apt-get install package name
  21. to install any package
  22.  
  23. yum - install the packages in centos/rhel
  24.  
  25. date --set='20 Dec 2021 15:25'
  26.  
  27. lpr - to print, line print
  28. lpr -P laserjet test.pdf
  29.  
  30. CUPS is an interface for printing
  31. sudo apt-get install cups cups-client lpr
  32. alias ls='ls -l'
  33. to create an alias, ls will now act as ls -l
  34.  
  35. alias d='date'
  36. now d will show date

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.