Skip to content

Instantly share code, notes, and snippets.

View Monmoy042's full-sized avatar
🎯
Focusing

Khaled Md Saifullah Monmoy042

🎯
Focusing
View GitHub Profile

Print the present working directory

pwd

Check Date and Calendar

Show current time and date: date
Show calendar: cal
Show particular year's calendar: cal 2021
@Monmoy042
Monmoy042 / ESP8266_NodeMCU_Setup.md
Last active August 3, 2021 14:58
Here is the details how we can configure the NodeMCU in Arduino IDE

Globaly React App Create

npm install -g create-react-app create-react-app <projectName>

create-react-app version

create-react-app --version

Locally React install

npx create-react-app my-app cd my-app npm start

@Monmoy042
Monmoy042 / systemAdministration.md
Last active July 29, 2021 05:01
In this gist I am going to discuss about one of the important topics of linux system administration. This gist is all about the create user and group and some other policies of linux system.

Linux User & Group Administration

There are three types of user we can see in the linux system
1) root : 0
2) System User : 1-999
3) Regular user: 1000+

Show all the user info

File permission & ownership in Linux

File permission and ownership is very important in linux system.

Types of file/directory in Linux System

  1. (-) = regular file : text/js//html/css/any file
  2. (d) = directory : regular directory
  3. (l) = link file : ls -l /dev/stdin
  4. (b) = block devices : ls -l /dev/sda --> (CD/DVD/HDD/ISO/USB)
  5. (s) = socket : ls -l /sun/rpcbind.sock
  6. (p) = pipe file : ls -l /run/initctl

VIM Editor

VIM is a terminal based text editor. It is very handy to use. This is the most powerful text editor that by default comes with almost all Unix/Linux system.

Basic guide of VIM editor has given below:

VIM Editor Basic Commands

Insert Mode --> Command = (i)
Escape Mode --> Command = (Esc)
File save and quit --> Command = (:x)

File Archive and Compression in Linux

Arhive Utility

tar -cvf [newDirectoryName].tar [directoryName]
Exp: tar -cvf archiveEtc.tar etc

Extract Archived Directory

tar -xvf [archivedDirectoryName]

Show all network interface card(NIC) info

ip link

Interface configuration files

/etc/hostname
/etc/nsswitch.conf
/etc/resolv.conf

Git Basic Commands


Git version check

$ git --version

User Name and Email Setting

$ git config --global user.email "email@example.com"
$ git config --global user.name "Mona Lisa"

Root Password Recover in Linux System

Step-1

First we need to reboot the system.

Step-2

Secondly from the grub boot loader we need to press e from the keyboard. Here e means edit.

Step-3

Now go to end of the line number-4 and write rd.break Note: rd = rescue disk

Step-4

Then press Ctrl+X to load the system

Step-5