- dd - to make the bootable usb device.
- if = input file
- dd = disk data
- of = usb path
- dd if=<source> of=<target> bs=512; sync
- bs = byte size
- dd if=/home/faraz/ubuntu.iso of=dw/sdb1 bs=512; sync
- lsusb - shows all the list of usb devices connected
- lsblk - block devices, all usb and hard drive devices
- fdisk -l - to find if devices are connected
- format flash drive
- sudo umount /dev/sdb1 - data stop showing after unmounting
- sudo mkfs = main file system
- sudo mkfs mkfs.ntfs /dev/sdb1 - to format the usb into ntfs
- apt advanced package tools
- apt-get update - to update the OS
- apt-get install package name
- to install any package
- yum - install the packages in centos/rhel
- date --set='20 Dec 2021 15:25'
- lpr - to print, line print
- lpr -P laserjet test.pdf
- CUPS is an interface for printing
- sudo apt-get install cups cups-client lpr
- alias ls='ls -l'
- to create an alias, ls will now act as ls -l
- alias d='date'
- now d will show date
Recent Pastes