Man Pages

Sections Executable programs or shell commands System calls (functions provided by the kernel) Library calls (functions within program libraries) Special files (usually found in /dev) File formats and conventions, e.g. /etc/passwd Games Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7), man-pages(7) System administration commands (usually only for root) Kernel routines (Non standard) To see if any COMMAND has available sections use whatis of man -f man -f COMMAND

October 18, 2022 · 1 min

Introduction to Linux

What is Operating System ? An operating system (OS) is system software that manages computer hardware, software resources, and provides common services for computer programs. What is Kernel? The kernel is a part of operating system which has complete control over everything in the system. It is the portion of the operating system code that is always resident in memory,[2] and facilitates interactions between hardware and software components. What is Linux? Linux is a clone of the operating system Unix, written from scratch by Linus Torvalds with assistance from a loosely-knit team of hackers across the Net. It aims towards POSIX and Single UNIX Specification compliance. ...

July 12, 2022 · 6 min

degoogle rom

/e/ OS settings put global captive_portal_http_url http://204.ecloud.global settings put global captive_portal_https_url https://e.foundation/net_204/ change ntp settings put global ntp_server pool.ntp.org DeBlot pre-installed apps Use this command to list all the apps installed adb shell pm list packages To search any particular keyword use grep command adb shell pm list packages | grep 'keyword' Package names will be somewhat like this, eg. for Google Assistant its com.android.hotwordenrollment.okgoogle, for Google Auto its com.google.android.projection.gearhead Copy the name of the package you want to uninstall and use the following command ...

November 23, 2021 · 1 min

Understanding Farmers

Job profile of a farmer A Farmer is the CEO, COO, CFO, Sales manager, Investment manager of a propritary fariming firm. It will directly effect his income if he is not good in even one of the fields Before the cropping season: What to sow, when to sow, credit availability, plan for inputs, land preparation, soil nutrient status Farmers has to have the access to the data that howmuch has it rained, moisture level in soil. When to sow based on forcasting Svaings, loans –> moneylenders Seed varity and quality, selection from number of options, authenticity of seeds Land preparation, machinery and labours, funds for that Gap filling for requirements of soil for a crop, suppliments, fertilizers, NPK (should be made easy to understand) During the cropping season: choose appropriate agriculture technology monitor the progress of crop observe anomalies and take action, monitor weather labour/machinery management for sowing and intercultural operations water management weed/pests/ wild animals management respond to climate contingencies in case of damege file claim for insurance After the cropping season: Harvesting based on weather conditions, checking if crop is actually ready labour management primary processing, storage market assessment, where and when to sell grading/sorting/packing/transportation value addition, negotiation for better prices realization of prices repayments(loans, etc.) surplus investment planning(future planning) During the lean season: Remaining 6 to 7 months: Migration, ancillary works, MGNAREGA Repeats it season after season and year after year ...

November 20, 2021 · 3 min

Technical Analysis

Analyzing the past It is a well established fact that stock prices show cyclical movements, similar to a business. It is a process of identifying trends & trend reversals at an earlier stage to formulate buy-sell strategy. A good technical Analyst always considers facts. He stays away from emotions like greed & panic while taking his decision Know Yourself Intraday Trader - Closes the trade within a day. Short Term Investor - Closes a trade in 2 days to 3 months. Medium Term Investor - Closes a trade in 3 months to 1 year. Long Term Investor - Closes a trade after 1 year. Trends The meaning of trend in finance isn’t all that different from the general definition of the term - a trend is really nothing more than the general direction. We do see trends even while watching IPL matches! Uptrends ...

October 10, 2021 · 11 min

Rich Dad Poor Dad Summary

Introduction For example, one dad would say, “The love of money is the root of all evil.” The other, “The lack of money is the root of all evil.” Money is not taught in schools. Schools focus on scholastic and professional skills, but not on financial skills. This explains how smart bankers, doctors and accountants who earned excellent grades in school may still struggle financially all of their lives. Our staggering national debt is due in large part to highly educated politicians and government officials making financial decisions with little or no training on the subject of money. ...

October 2, 2021 · 3 min · Robert Kiyosaki

Compile your Custom Linux Kernel

Preparation Install Dependencies sudo pacman -S base-devel xmlto kmod inetutils bc libelf git --needed Downloading source and local setup It is recommended to create a separate build directory for your kernel(s). In this example, the directory kernelbuild will be created in the home directory: mkdir ~/kernelbuild cd ~/kernelbuild Goto kernel.org and download kernel source wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.14.5.tar.xz Note: you can verify signature of the downloaded tarball if you want Extract tarball tar -xvJf linux-5.14.5.tar.xz Check ...

September 17, 2021 · 3 min

xfiles

.xinitrc The ~/.xinitrc file is a shell script read by xinit and by its front-end startx. It is mainly used to execute desktop environments, window managers and other programs when starting the X server (e.g., starting daemons and setting environment variables). .xprofiles An xprofile file, ~/.xprofile and /etc/xprofile, allows you to execute commands at the beginning of the X user session - before the window manager is started. .Xresources Xresources is a user-level configuration dotfile, typically located at ~/.Xresources. It can be used to set X resources, which are configuration parameters for X client applications. (xrdb ~/.Xresources) ...

September 14, 2021 · 1 min

Packages I use in any Linux based OS

Packages on Arch pacstrap base linux-lts linux-lts-headers base-devel btrfs btrfs-progs vim networkmanager grub efibootmgr intel-ucode Utils mtpfs : Reading and Writing from any MTP device ntfs-3g : NTFS filesystem driver and utilities gvfs-mtp : Virtual filesystem implementation for GIO (MTP backend; Android, media player) gvfs-gphoto2 : Virtual filesystem implementation for GIO (gphoto2 backend; PTP camera, MTP media player) nfs-utils : Support programs for Network File Systems tlp : Linux Advanced Power Management powertop : A tool to diagnose issues with power consumption and power management python-pip : The PyPA recommended tool for installing Python packages jre8-openjdk : OpenJDK Java 8 full runtime environment jre8-openjdk-headless : OpenJDK Java 8 headless runtime environment wget : Network utility to retrieve files from the Web gnome-keyring : Stores passwords and encryption keys Arch # Filesystem Support pacman -S mtpfs ntfs-3g gvfs-mtp gvfs-gphoto2 # Power Management pacman -S tlp powertop # Development pacman -S python-pip jre8-openjdk jre8-openjdk-headless wget gnome-keyring xorg libx11 : X11 client-side library xorg-xinit : X.Org initialisation program libxinerama : X11 Xinerama extension library libxft : FreeType-based font drawing library for X xorg-server : Xorg X server xorg-xrandr : Primitive command line interface to RandR extension xorg-xrdb : X server resource database utility xorg-xinput : Small commandline tool to configure devices xorg-xbacklight : RandR-based backlight control application xf86-video-intel : X.org Intel i810/i830/i915/945G/G965+ video drivers xclip : Command line interface to the X11 clipboard Arch pacman -S libx11 xorg-xinit libxinerama libxft xorg-server xorg-xrandr xorg-xrdb xorg-xinput xorg-xbacklight xclip pacman -S xf86-video-intel yay -S libxft-bgra-git Gentoo emerge x11-libs/libX11 x11-base/xorg-server x11-libs/libXrandr x11-libs/libXinerama x11-libs/libXft x11-apps/xinit x11-apps/xrdb x11-apps/mesa-progs x11-apps/xrandr x11-misc/unclutter x11-misc/xclip Basic picom : X compositor that may fix tearing issues unclutter : A small program for hiding the mouse cursor os-prober : Utility to detect other OSes on a set of drives man-db : A utility for reading man pages bash-completion : Programmable completion for the bash shell zsh-completions : Additional completion definitions for Zsh zip,unzip,tar,bzip2,atool,unrar : Compression utils Arch pacman -S picom unclutter os-prober man-db bash-completion zsh-completions pacman -S atool zip unzip tar bzip2 gzip lzip unrar Fonts noto-fonts : Google Noto TTF fonts noto-fonts-cjk : Google Noto CJK fonts ttf-joypixels : Emoji as a Service (formerly EmojiOne) Arch pacman -S noto-fonts ttf-joypixels ...

April 12, 2021 · 5 min

Git Undo Mistakes

Undo Mistakes 😱 git restore filename will discard uncommited change for this file cannot be undone afterward git restore -p filename p stands for patches will ask for each change in this file to be restore or not git restore . undo all changes since last commit git commit –ammend -m “Commit Message” change commit message of last commit do not change already pushed commit git revert <SHA> it reverts specified single commit <SHA> can be seen through git log, eg. 74e3b2b it makes new commit by exactly doing opposite changes, so it is very safe git reset –hard 74e3b2b it resets HEAD to certain commit in history while deleting all the commits after it if commits just local then they are gone forever git reset –mixed 74e3b2b same as previous one but it will store all the changes from the removed commits as uncommited changes git restore –source 74e3b2b filename will restore this file to certain commit (just 1 file) git reflog it is advance version of git log Restore after hard reset it even stores history for certain time after git reset --hard you can git reset 74e3b2b but creating mew branch is preferred by git branch branch_name 74e3b2b Restore after deleting entire branch look for <SHA> from git reflog then git branch branch_name 36a46a1 Moving commit to another branch if you want to move cirtain commits from current branch to new branch git branch new_branch_name git reset HEAD~1 --hard if moving commit to already present branch git checkout branch_name git cherry-pick 36a46a1 git checkout previous_branch_name git reset --hard HEAD~1 Interactive rebase is very advance, dangerous and powerful tool read comments during the process Change commit history for example if you want to change commit history upto 3 commits before current HEAD git rebase -i HEAD~3 you can change/reword commit messages, delete/drop commits, squash multiple commits together

March 24, 2021 · 2 min