Useful tips for everyday
How can I add a directory to the$ path? You can use the export command to add a directory to the $PATH. The directory is…
Does swap partition need to be mounted? The swap partition isn’t mounted like the other partitions. It is usually enabled automatically during bootup if listed…
How to catch an error in a Linux bash script? Alternatively, or in addition, in bash (and ksh and zsh, but not plain sh), you…
How to configure a virtual machine in Fedora? Choose qemu for KVM, or Xen for Xen. Choose local or select a method to connect to…
How do I change permissions in Drwxr-XR-X? To add permissions, use chmod command along with plus sign ( + ), which means “add these permissions”.…
When to remove lines based on duplicates within one column? I have large 3-column files (~10,000 lines) and I would like to remove lines when…
Should you have a separate boot partition? 4 Answers. To answer the outright question: no, a separate partition for /boot is certainly not necessary in…
How to print a line that matches a pattern? /pattern/s/.*/_/: if current line matches pattern, which means we should print the NEXT following line, then…
How to delete first two lines and last four lines? I am trying to delete first two lines and last four lines from my text…
What is LUKS Cryptsetup dm-crypt? dm-crypt+LUKS – dm-crypt is a transparent disk encryption subsystem in Linux kernel v2. 6+ and later and DragonFly BSD. It…