Skip to main content



SystemD cheatsheet
systemd is a system and service manager for Linux, compatible with SysV
Overview of systemd for RHEL 7 Understanding and administering Systemd

WhatCommand service foobar start systemctl start foobar sservice foobar stop systemctl stop foobar service foobar status systemctl status foobar.service Listing dependencies: To see dependencies of a service systemctl list-dependencies nfs-server.service

Recent posts

vi tips and shot cheatsheet

Copy & Paste
WhatHowStart of line0End of line$Copy current lineyyCopy 5 lines5yyPastep (paste after line)
P (paste before line)Copy to a named bufferayy (name is 'a')Paste name bufferappDelete till a character XdfX

linux advanced commands for octane troubleshooting

OS related Total memory cat /proc/meminfo | head -n 1 Free disk space df -h Files related Look for files and replace strings in it find . -type f -exec grep -q "opt/octane" {} \; -print -exec sed -i "s+/opt/octane+/temp/octane+g" {} \;
Networking Who occupy port 8080 netstat -antp | grep 8080
-a = active connections -t = list only TCP & UDP connections -n = disable reverse lookup -p = get process and user id

Install4J ERROR: The installation/removal of a previoius program was not completed.

Error that may stop new installation:
The installation/removal of a previoius program was not completed. You will need to restart your computer to complete that installation. After restarting your computer, run Setup again to complete the installation of Program name.
How to solve the issue without restarting:
Remove following keys:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations 

elasticsearch installation cheatsheet

SystemD cheatsheet:
systemd is a system and service manager for Linux, compatible with SysV. Overview of systemd for RHEL 7 - Fedora Quick Docs | Fedora Quick Docs | Understanding and administering Systemd -

WhatCommandservice foobar startsystemctl start foobarsservice foobar stopsystemctl stop foobarservice foobar statussystemctl status foobar.serviceListing dependencies: To see dependencies of a servicesystemctl list-dependencies nfs-server.service

docker cheatsheet

Short docker commands list (in table view):

ImagesWhatHowList local imagesdocker imagesDelete local imagedocker rmi NAMEDownload imagedocker image pull NAMECreate container from image (detached) docker run –d …Display information on imagedocker image inspect hpsoftware/almoctane
ContainersWhatHowList of running docker containersdocker psList all docker containers (running and stopped)docker ps -aStart existing containerdocker start IDStop contianerdocker stop IDCreate container, start it and get a shell inside of itdocker run -it IMAGE bashRun a command inside of an already running containerdocker exec -it ID bashDelete containerdocker rm IDGet logdocker logs ID OtherWhatHowCreate virtual networkdocker create network octane_nwStart docker servicesystemctl start dockerDefine proxymkdir -p /etc/systemd/system/docker.service.d
vi /etc/systemd/system/docker.service.d/http-proxy.conf


sudo systemctl daemon-reload

Linux user management cheatsheet

RPM is the Linux deployment tool. Short commands list (in table view):

GroupsWhatHowList groupscat /etc/groupAdd groupgroupadd adminSee group of usergroups Groups of current usergroupsGet ids of user and groupid USERNAME UsersWhatHowAdd useruseradd USERAdd user with groupuseradd -G GROUP USERChange passwordpasswd USERAdd existing to groupusermod -a G GROUP USERDelete useruserdel USERList userscat /etc/passwd | sort