nice — Run a Command with Modified Priority

The nice command starts a program with a modified scheduling priority. It is useful when you want a background task to be less aggressive with CPU usage. Run a command with lower priority Example Higher nice values mean lower priority. To adjust a process that is already running, use renice.

cdecl and c++decl: Explain C and C++ Declarations

cdecl and c++decl translate complicated C and C++ declarations into English and can also generate declarations from plain-language descriptions. They are useful when pointer, function-pointer, or nested type syntax becomes hard to read. Interactive mode cdecl explain int (*signal(int, int (*)(int)))(int) declare p as pointer to integer quit c++decl uses C++ terminology and syntax where … Read more

install — Copy Files and Set Attributes

The install command copies files while setting ownership, permissions and target directories in one step. It is commonly used in build scripts and deployment tasks. Copy a file with permissions Create a directory with permissions For system locations such as /usr/local/bin, you may need appropriate privileges. Always check the target path before copying files.

dpkg — Debian Package Tool

dpkg is the lower-level package tool used by Debian-based Linux systems. It works directly with .deb files and the installed package database. Install a local .deb file If dependencies are missing, fix them with: List installed packages Check whether a package is installed Find which package owns a file For normal package installation from repositories, … Read more

Configure SSH Login Without a Password

SSH key-based login lets you connect to a remote server without typing the account password each time. It is also the preferred approach for automation, scripts and secure administration. Create an SSH key Use a passphrase unless the key is specifically for controlled automation. Copy the public key to the server Test the login Where … Read more

Mounting Windows Shares in Linux

Windows network shares can be accessed from Linux using CIFS/SMB. This is useful when a Linux machine needs to read or write files on a Windows share or NAS. Install CIFS tools Create a mount point Mount the share manually You will normally be prompted for the password. Avoid putting passwords directly into commands or … Read more