Git – Undoing Changes: git checkout git revert git reset git clean

Git Undoing Changes git checkout git revert git reset git clean https://www.atlassian.com/git/tutorials/undoing-changes Whereas reverting is designed to safely undo a public commit, git reset is designed to undo local changes. Because of their distinct goals, the two commands are implemented differently: resetting completely removes a changeset, whereas reverting maintains the original changeset and uses a…

Read More

Extract directory, filename, and extension in Bash shell

Extract directory, filename, and extension in Bash shell https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash $> FILE_PATH=”dir/example.tar.gz” $> FILE=”example.tar.gz” $> dirname $FILE_PATH dir $> dirname $FILE . $> basename $FILE_PATH example.tar.gz $> basename $FILE example.tar.gz # ——————————- # dir/example.tar(.gz) : $> echo “${FILE_PATH%.*}” dir/example.tar # dir/example(.tar(.gz)) : $> echo “${FILE_PATH%%.*}” dir/example # example.tar(.gz) : $> echo “${FILE%.*}” example.tar # example(.tar(.gz)) :…

Read More

modify `open-terminal-here` package for Elementary OS Atom Editor

Atom Editor Package: open-terminal-here Modify open-terminal-here for open elementary Terminal(io.elementary.terminal) in the current directory on Atom Editor of Elementary OS (Ubuntu base). Github usemodj/atom-open-terminal-here: https://github.com/usemodj/atom-open-terminal-here Open Terminal Here Open the Terminal (Mac OS X, Linux) or Command Prompt (Windows) in the given directory via context menu or keyboard shortcut. Ubuntu Linux Install xdotool: sudo apt-get…

Read More

How to Fix “Username is not in the sudoers file. This incident will be reported” in Ubuntu

https://www.tecmint.com/fix-user-is-not-in-the-sudoers-file-the-incident-will-be-reported-ubuntu/ How do I list the members of a group? https://askubuntu.com/questions/136788/how-do-i-list-the-members-of-a-group Use the getent commands: $ getent group <group-name> or $ getent group <group-name> | awk -F: ‘{print $4}’ Use members command and it will list all users in the group you chose You may need to install it: $ sudo apt-get install members Add…

Read More

Windows DiskPart : `MBR 기본 디스크 형식`으로 변환하기

ref. DiskPart 디스크 형식 변환하기 – Convert MBR (기본) 디스크 MBR 동적 디스크 GPT (기본) 디스크 GPT 동적 디스크 # 현재 디스크의 형식 파악하기 DISKPART> list disk 디스크 ### 상태 크기 사용 가능 Dyn Gpt ———- ————- ——- ———— — — 디스크 0 온라인 465 GB 2048 KB 디스크 1 미디어 없음 0 B 0…

Read More

How to Fix “Username is not in the sudoers file. This incident will be reported” in Ubuntu

https://www.tecmint.com/fix-user-is-not-in-the-sudoers-file-the-incident-will-be-reported-ubuntu/ How do I list the members of a group? https://askubuntu.com/questions/136788/how-do-i-list-the-members-of-a-group Use the getent commands: $ getent group <group-name> or $ getent group <group-name> | awk -F: ‘{print $4}’ Use members command and it will list all users in the group you chose You may need to install it: $ sudo apt-get install members Add…

Read More

Windows DiskPart : `MBR 기본 디스크 형식`으로 변환하기

MBR 디스크는 전통적인 BIOS 펌웨어 환경을 기반으로 하는 디스크 형식입니다. GPT 디스크는 새로운 EFI(UEFI) 펌웨어 환경을 기반으로 개발된 디스크 형식입니다. 최근 컴퓨터가 아닌 경우, EFI(UEFI) 부팅모드을 지원하지 못하고, BIOS 모드에서 부팅을 해야합니다. Mac OS를 애플컴퓨터가 아닌 Windows가 설치된 컴퓨터에 설치할 경우, USB Mac OS Installer를 만들 때 EFI(UEFI) 를 지원하지 못하는 컴퓨터는 Legacy Mode(BIOS) 부팅을…

Read More

Install Android Studio on Ubuntu & elementary OS

How To Install Java with Apt-Get on Ubuntu 16.04 https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 Installing the Oracle JDK, First, add Oracle’s PPA, then update your package repository. sudo add-apt-repository ppa:webupd8team/java sudo apt-get update Oracle JDK 9 : $ sudo apt-get install oracle-java9-installer or, Oracle JDK 8: $ sudo apt-get install oracle-java8-installer Managing Java, There can be multiple Java installations…

Read More

How to put minimize and maximize button in elementary OS loki

How to put minimize and maximize button in elementary os loki https://elementaryos.stackexchange.com/questions/4205/how-can-i-get-a-minimize-button https://elementaryos.stackexchange.com/questions/8775/how-to-put-minimize-and-maximize-button-in-elementary-os-loki Install elementary-Tweaks instead Gnome Tweak Tool: $ sudo apt-get install software-properties-common && $ sudo add-apt-repository ppa:philip.scott/elementary-tweaks && $ sudo apt-get update && $ sudo apt-get install elementary-tweaks After that, open system settings and select Tweaks, under the first panel you’ll find the…

Read More