Skip to main content

Posts

Showing posts with the label terminal

How to Rename a Local Branch in Git?

Renaming a local branch in Git is quite simple. To rename a branch from another branch, use this: $ git branch -m <current-branch-name> <new-branch-name> On the other hand, if already in the current branch, use this: $ git branch -m <new-branch-name> -m specifies the move operation. Pretty much the same kind of operation you would use to rename file in terminal.

Accessing USB device Through terminal

Identify usb device with lsblk. In this case, the usb is sda1. We first need to mount this into /media $ sudo mkdir /media/usb $ sudo mount /dev/sda1 /media/usb After that, we can now access the contents of the usb device through /media/usb You can check it by doing: $ ls /media/usb

Generating a PDF file from several images in Linux!

So you wanna build a PDF from pages you have scanned or images you have gathered? Here is the simplest way to do it through the amazing terminal! First, open the terminal and install the imagemagick software: $ sudo apt-get install imagemagick Next, freaking generate the PDF with this simple command! $ convert image1.jpg image2.png image3.bmp output.pdf And there you go!