Linux | Technical Handbook


Issue: Create bootable USB using 'dd' command.

Solution

sudo dd bs=4M if=path/to/input.iso of=/dev/sd conv=fdatasync  status=progress


Issue: Install .deb file in Linux.

Solution

sudo dpkg -i /path/a.deb


Issue: Display the first few words of a file in Linux.

Solution

head -c 100 filename


Issue: Display last few words of a file in Linux.

Solution

tail -c 100 filename


Issue: Append words to the end of the file in Linux.

Solution

echo 'input' >> filename


Issue: Insert text into the beginning of a file in Linux.

Solution

sed -i '1s/^/abcde /' filename