Some handy tools for Linux command line (primarily for Ubuntu)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


GitHub release

Some handy tools for Linux command line (primarily for Ubuntu)

This project is heavily inspired by the project Mac-CLI but without much installation.

The project name is suggested by Mario


git clone

Add the alias to the terminal profile:

alias lman="/path/to/linuxman/linuxman"

And you are done!


Get help!

lman list
# or
lman help

Shutdown your machine

lman shutdown

Available Functions - 98 and counting...


Command Parameters Description
list or help List all the available commands.
helper or h Get help for help functions.
gen Get help for General functions.
git or g Get help for Git related functions.
fun or f Get help for Functors related functions.
com or c Get help for Compressor related functions.
term or t Get help for Terminal Multiplexer related functions.
info Get OS X version information.
lock Lock your mac.
restart Restart your mac.
shutdown Shutdown your mac.
uptime Get the time since last restart.
mem Get the memory status.
speed Network speed test with npm's fast-cli package.
ports List all used ports.
ip.loc Get local IP address. Get public IP address.
clock Show a clock at the top right of your terminal.
fd.size Show the folder size.
fd.hid List only hidden files in the folder.
md5 file Calculate MD5 for a file.


Command Parameters Description
g.init Init a Git repository locally.
g.clone repo link Clone a project through URL.
g.log (OPT) file Get the log for the file or the repo.
g.stat Get the status of the repo. or go Open the Git repo from URL.
g.size Calculate the size of Git repo. URL Add an pull/pull origin.
g.conf List the Git repo configuration.
g.undo (OPT) commit num Undo last commit(s), get commit number from g.log.
g.add file Stage a file.
g.add.all Stage all the changes.
g.commit msg Commit the changes. file msg Stage a file and commit.
g.aca msg Stage all changes and commit.
g.acp file msg Stage file, commit and push.
g.acap msg Stage all changes, commit and push. file1 file2 Move file to new destination
g.rm file Remove file.
g.wipe (OPT) msg Wipe all history and keep current stauts.
g.clean [Y/y] Clean untracked files in .gitignore.
g.push Push current branch.
g.pull Pull current branch.
g.merge branch Merge a specific branch. branch Create a new branch. remote branch Clone a remote branch. branch Checkout a existing branch. remote branch Checkout a remote branch. List all the branch. branch Remove a local branch. branch Remove a branch from local and remote.
g.stash Make a stash, stay away from dirty work tree.
g.unstash Get out from stash (EVERY CHANGES IN THERE COUNTS)
g.lfs.init Initial LFS storage. file LFS track files.
g.lfs.untk file LFS untrack files. List all tracked files.
glfs.conf Get the environmetn variables for the LFS.


Command Parameters Description
wttr Show the weather for a city.
top10 Show the top 10 used shell commands.
starwar Text based Starwar IV. or olgo Open a Overleaf Project.


Command Parameters Description
lszip file List file in a ZIP archive.
zip file or folder Zip a file or folder.
unzip file (OPT) folder Unzip a file to a folder.
lstar file List file in a tar archive.
tar file or folder Tar a file or folder.
untar file (OPT) folder Untar a file to a folder.

Terminal Multiplexer

Command Parameters Description (OPT) name Create a new screen session. name Reattach a screen session. name Detach a screen session. List all available screen session(s).
s.rm name Remove a screen session.
s.rm.all Remove all available screen session(s).
s.div.h Split region horizontally.
s.div.v Split region vertically.
s.go.left or sl Go left region.
s.go.right or sr Go right region.
s.go.up or su Go above region.
s.go.down or sd Go below region.
spx Kill current region. or srl (OPT) +space Expand region horizontally or srr (OPT) -space Shrink region horizontally or sru (OPT) +space Expand region vertically or srd (OPT) -space Shrink region vertically (OPT) name Create a new tmux session. name Detach a tmux session. Detach current tmux session.
t.rm name Remove a tmux session.
t.rm.all Remove all tmux session(s). List all available tmux session(s).
t.div.h Split pane horizontally.
t.div.v Split pane vertically.
t.go.left or tl Go left pane.
t.go.right or tr Go right pane.
t.go.up or tu Go above pane.
t.go.down or td Go below pane.
tpx Kill current pane.

Tools for Extra Functions

Git related

One could install Git from popular packaging management systems or visit Git-website.


One could install Git LFS from Git LFS

Open Overleaf from cloned project

The git URL that is given by Overleaf cannot be opened. Therefore, one can use to open the corresponding project from terminal.

Terminal Multiplexer

One could install screen or tmux on the platform to enable terminal multiplexer.

GNU Screen is known to be stable and fast over SSH connection, whereas tmux is very slow via SSH connction.

However, tmux is has very powerful configuration so it works perfectly in local environment.


Yuhuang Hu