What does the combination ^foo^bar do in Bash?

^x^y unix trick for all instances in last command?


What is this, how to obtain information about a process ID


Debian/Ubuntu apt pre-install hook for logging/commit messages?

Run a command before & after ubuntu apt upgrade & unattended-upgrades


How to get text in between two sections?

How to select first occurrence between two patterns including them


How to find the config file stored GLOBAL variable?

Environment variables. Where are they saved in?


In bash, read after a pipe is not setting values


How to prepend a particular text file contents to every text file in a directory and its subdirectories?


Shell script "apachectl restart" password automation

How to run a specific program as root without a password prompt?


How to match files that have spaces in their file naming format

Why does my shell script choke on whitespace or other special characters?


Find with two grep (contains AND not contains) and one awk

Find files that contain a string and do not contain another


Would cutting & pasting a file to a USB drive be the equivalent of deleting the file?

Where do files go when the rm command is issued?


syslog-ng startup failure when using /proc/kmsg

Cannot start syslog-ng when apparmor is running


Can bash do floating-point arithmetic without using an external command?

How to do integer & float calculations, in bash or other languages/frameworks?


Removing text from pattern1 up to and including 2nd match of pattern2?

How can I delete everything between two markers in a file?


How to find out the dynamic libraries executables loads when run?


How to view files, created by Linux and programs in /tmp directory?

The number of links for a folder doesn't reflect the real status?


Find and delete files, whilst keeping any matching files if in a specific directory

Delete all files except in a certain subdirectory with find


Inserting a file into another file at certain point

How to insert the lines from a file into another file after a key word?


Add an application to the command search path in csh


find: prune does not ignore specified path


How to substitute 'single' apostrophes to "double" apostrophes with sed


how to make a memory hungry application cause swap slowness only to itself?

How to set per process swapiness for linux?


make awk print the line that match a variable and the next n lines and use a variable in awk

Pass shell variable as a /pattern/ to awk


How to tar all files in current directory using tar but without inputing names of tar file and all files?

Tar compress folder without specifying the filename


How do I pass a variable into an FTP connection?

Why does my shell script choke on whitespace or other special characters?


xargs: Does `-n` and `-I` work with each other?


How can I use the expanded value of a shell variable in the name of another variable?

How to read value of variable, where the name of variable is the value of another variable


How do I make xrandr settings permanent in Debian 9?


How to assign a variable from another variable in a separate file

How do I get a variable's value from one script and import it in another script?


bash wait for process in process substitution even if command is invalid

The process substitution output is out of the order


Xresources / Xdefaults: Period or Asterisk?

"Xterm" or "xterm" in configuration file


How to find difference between two epoch time stamps?

How do I get the difference between two timestamps?


How to create a file with pre-inserted text inside with bash?

How do I echo a lot of content in a bash script?


Bash script -ne comparison giving "command not found" error

Brackets in if condition: why am I getting syntax errors without whitespace?


Unix replace all lines in a file starting with a string,by a variable

How to replace a string with a string containing slash with sed?


How to Check the location of a deleted file in CentOS Linux distribution?

Unix/Linux undelete/recover deleted files


Delete sub-directories with YYYYMMDD in name older than N days

Remove files older than 5 days in UNIX (date in file name, not timestamp)


What's the difference between $(stuff) and `stuff`?


How to reconnect a logically disconnected USB device?


Extracting IP addresses from a log file and list them in another file

Extracting IP address from a text and store it in a variable


Server login attempts NOT blocked after configuring fail2ban


Piping to file doesn't work with intermediate pipe

What are the shell's control and redirection operators?


What is causing my "Unexpected EOF Error while looking for ..." error?

How can I execute `date` inside of a cron tab job?


On FreeBSD, how to find packages depending on a specific package

Find FreeBSD ports that depend on another port


Sending mail from a script which is run by Crontab

Cronjob doesn't execute shell script, but when I am executing it standalone it works. Why?


How can i put the gcc warning messages in a text file?

How to redirect stderr and stdout to different files and also display in terminal?


How to SFTP through proxy if there is no netcat?


Keep a PHP script running indefinitely on a Web Server

Using nohup to keep a script running indefinitely


How to remove a specific string from file name


How to Recover Data in LINUX MINT Quiana


How to determine where an environment variable came from?


Find doesn't want to find *.sh in certain level

How to use find command with wildcard when current directory contains a match?


Pipe output to a command while still writing to stdout


Why do commands starting with a space, not show up in bash history?

Why is bash not storing commands that start with spaces?


Is possible to change X server without kill client?


How to execute consecutive commands from history?


Why does my custom bash prompt glitch when browsing the history

Why is my bash prompt getting bugged when I browse the history?


How can I make sed not append a newline character?

How do I stop sed from adding extra newline characters


How do I diff the output of these two commands?

How do I diff the outputs of two commands?


`hostname` result is different from “/etc/hostname”!


Stop executables and built-ins from interpreting a string argument starting with - as a switch?


Why is good idea to redirect files in shell arguments?

Why is `sort < "$f1" ` preferred over `sort -- "$f1"`, and why is this preferred over `sort "$f1"`?


Why does `printf "%s"` concatenate two following strings together?

How does printf with multiple arguments separated by space work


Get path of current script when executed through a symlink


How does xargs know when a stdin input ends, so that it can start processing it?

How does a program detect the end of stdin input?


What is one command to specify a file and what text is in it in that order without repetition?

How to create a file with pre-inserted text inside with bash?


grep ignoring pipe when aliased to 'grep -R'


An upgrade from 'zesty' to 'bionic' is not supported with this tool


What is the difference between $* and $@?


Why does my shell script choke on whitespace or other special characters?


sudo python3 is running different version than running python3 without sudo


Bash: what is the difference between `cp fileA fileB` and `cp -- fileA fileB`


How far can you go with rm -rf / as root


Bash - How do I loop through sub directories and execute this command


Why doesn't grep remove lines of terminal output from find command by default?


Get my IP address without 'ifconfig' or 'ip addr'?

How to get the IPV4 address for an interface from /proc


How to make a minimal bootable linux (only with terminal) from kernel source code?

What are the minimum root filesystem applications that are required to fully boot linux?


What program(s) is(are) lowering my entropy pool level?


Problem: Having file name contain Space and fetch the file


How to map Linux hard drive identifiers like "sd 3:0:0:0:" to ones like "ata8:"?

How to map ataX.0 identifiers in kern.log error messages to actual /dev/sdY devices?


Getting “Enter passphrase for key” for a linux machine from shell script

Asked for a passphrase for a passphrase-less private key when SSH'ing on a virtual machine


Sound doesn't work properly in root but does in normal user


How to force an application to use a specific cpu?

How can I set the processor affinity of a process on Linux?


How to copy files from one directory to another so that only new files are copied?

scp without replacing existing files in the destination


Problem with characters in SSH with MingW32 and not super-user

ssh login doesn't parse .profile or .bashrc properly and is generally being weird


Removing new line characters around patterns


How to replace a word in a file by a word get by read function?

How can I use variables in the LHS and RHS of a sed substitution?


Remove all special characters recursively from filename


Move a range of numbered files and change their value

How to rename files with sequential names to an another sequence using Terminal?


How to access external hard drive from Ubuntu Shell and Python code

Why does my shell script choke on whitespace or other special characters?


How can I address the path/file I just specified again?

Quickest way to rename files, without retyping directory path


Can one PC be used by two users at the same time via dual-monitor?


What is the difference between /opt and /usr/local?


Find pattern from one file listed in another


Why is bash not respecting ${PATH} and/or symlinks?

How do I clear Bash's cache of paths to executables?


Usage of dash (-) in place of a filename


How to copy a folder from remote using remote user with sudo?

Copying protected files between servers in one line?


How to execute a command for all mp3 files in a directory?

How to execute one command on all files within a folder


Why am I still being asked for an ssh password when I'm using private key authentication?


What is the number at the top for the results for ls -l?

ls command: what does the first line mean?


Understanding $() (and for-loops) in bash


Pass parameter to Bash function which will serve as a pattern to awk

Pass shell variable as a /pattern/ to awk


How to trigger shell script on Unix via email from Exchange Server

Creating an email that can trigger a script


Why the following bash snippet is not working?

How can I assign the output of a command to a shell variable?


Bizarre variable behavior in `while` loops

Why is my variable local in one 'while read' loop, but not in another seemingly similar loop?


After $PS1 modification - Cursors jumps left of the bash prompt


How do I assign last month's date (year and month only - 2016-07) as a variable?


why should I use tar.xz instead of tar.gz? xz is a lossless data compression program and file format

Why are tar archive formats switching to xz compression to replace bzip2 and what about gzip?


Why can't I access the files that I own?

Unable to read file although member of group with read permissions


How to detect what is causing entries in the "last" cmd's output?

Why does `last` show '{' and '|' in the TTY field?


Partial match of first file content from another and write in third file

I want to search a pattern from one file in another


find: What does it mean for "-a" to have higher precedence than "-o"?


read line by line and take a string in line and assign that string to the subsequent line using perl

read file record by record and do transformation to the subsequent record based on above record and write into another file


Debian, apt-get: how do I ignore NO_PUBKEY for good?

Bypass GPG signature checks only for a single repository


Security when plugging a USB device into machine running GNU/Linux (Debian)

How to safely insert USB stick/device to Linux computer?


How to find & replace pattern WITHIN specific pattern using sed


How to replace variable strings in a file?

Replace environment variables in a file with their actual values?


Why did this file not convert to UTF-8 when using iconv?

Converting from ascii to utf-8 format - iconv not working


sed, how to delete other lines, remain contained pattern lines

How to get text in between two sections?


Why doesn't regex '.+' work as expected?

Why does my regular expression work in X but not in Y?


apt-get build-dep is unable to find a source package for emacs24


doesn't work the bash script to check given single character is in lower case or uppercase

Why does [A-Z] match lowercase letters in bash?


Behavior of ANSI escape codes when mixing background and foreground

Can't apply brightness to terminal's background color


What will Debian releases be called after they run out of Toy Story characters?


Trying to use `pwd` inside an alias giving unexpected results

Trying to make aliases that open the last modified file


Linux tools to treat files as sets and perform set operations on them


Why is ondemand not available as a governor for cpu frequency scaling?

Can't use "userspace" cpufreq governor and set cpu frequency


Linux - how to get count of line in file

How can I assign the output of a command to a shell variable?


how to redirect output to multiple log files


Strange behavior of bash and SIGTERM with Ubuntu

Why does SIGTERM work to terminate bash but not ash or dash?


creating a cpio archive ingnoring modification time of files

Is there a practical way to make binary-reproducible CPIO (initramfs) archives?


passing env variables to commands in bash

What is this shell/Bash syntax: someVariable=someValue someCommand


How do I synchronize appending writes in shell scripts?

How to use flock and file descriptors to lock a file and write to the locked file?


How can I list net work devices and ipv4 address on linux without ifconfig/ip command

How to get my own IP address and save it to a variable in a shell script?


How to clear the bash history when i close the terminal?

How do I close a terminal without saving the history?


search a particular string and remove all the remaining after that string


Bash: multiple actions on error response

Bash - how to make explicit operator precedence without creating a subshell


Potential issues (if any) in recursively replacing spaces with underscores across all filenames on hard-drive

How to replace one char with another in all filenames of the current directories?


How can I start a remote process on a remote machine via ssh?

Keep processes running after SSH session disconnects


Delete files and directories by their names. No such file or directory


TCP *:hbci (LISTEN) - What does hbci mean?

Relation between port, port number and protocol?


What are Unix and Linux? And how do I tell which I'm using?

What is the difference between Unix, Linux, BSD and GNU?


How do I cd into a directory called "."?

When you type "ls -a", what is the significance of "." and ".."?


How do I set a user environment variable? (permanently, not session)


Why have both .bash_profile and .bashrc?

What is the difference between ~/.profile and ~/.bash_profile?


get first X characters from the cat command?


What is the difference between sourcing ('.' or 'source') and executing a file in bash?


How to delete everything after the 5th line with awk?

What's the best way to take a segment out of a text file?


Is there any linux command to get number of context switches for a process?

How to see how many context switches a process makes?


How to find which running process is modifying a file's permissions (Linux)?


Escaping _$ (underscore and dollar sign)

Bash nested command substitution not working


Can't pipe from echo to bash built-in read?

Why is my variable local in one 'while read' loop, but not in another seemingly similar loop?


How can I search list only the directory?

How do I remove "permission denied" printout statements from the find program?


Is there a robust command line tool for processing csv files?


Writing a systemd service to be executed at resume


How to find out if a specific package is installed on Debian?


Ubuntu VM shows 50GB, but df -h shows 30GB

How do I resize an ext3 partition that is not part of a LVM group?


Can I use command line to clean HDD during the installation of Debian Linux?


Can I set a new file's owner (user) based on the folder as I can for group with `chmod g+s`?

SUID has no effect on directories with Linux


Deference between command "sudo su ls" vs "sudo ls"

Is there ever a good reason to run sudo su?


Store output of a command into a ring-buffer


What are the fundamental differences between the mainstream *NIX shells?


How do I get my IP address from the command line?

How can I get my external IP address in a shell script?


Why are there so many virtual terminal devices?


Open a window on a remote X display (why "Cannot open display")?


iptables default rules numbers in square brackets what do they mean?

What do the numbers in brackets mean on the iptables-save output?


egrep -rnw . -e "string" returns line and adjacent lines

output neighbouring lines with line numbers while grepping


copy entire folder contents - not just the outputted file

Recursively list all directories that contain one or more jpg image files


apt-get: reasons for “…but it is not going to be installed”

What information do I need to solve an APT dependency issue?


Strange errors when using ffmpeg in a loop


Using tab delimiter in Cut in Unix Shell Scripting

How to define 'tab' delimiter with 'cut' in BASH?


Keeping lines repeated a set number of times

How do I print all lines of a file with duplicate values in a certain column


Do printf(1) implementations differ in how they handle argument overflow?

Why does printf print more arguments than expected?


Can the shell know what is the character encoding of the terminal?

How to determine the character encoding that a terminal uses in a C/C++ program?


How to insert file content after a certain string in a file?

Replace string with contents of a file using sed


My ethernet device has strange name on Ubuntu

Why is my ethernet interface called enp0s10 instead of eth0?


unix, difference between path starting with '/' and '//'


Where are you supposed to put user-specific programs?

Where should a local executable be placed?


What does the operator `-gt` in shell scripts mean?

Starting with bash: -lt and -gt arguments


how to protect the directory using password in LINUX (Need to add or modify files after encrypted )?

Simplest way to password protect a directory and its contents without having to create new files?


How many actual developers work on the Linux kernel?


bash: how for loop sorts files when iterating

Does the Bash star * wildcard always produce an (ascending) sorted list?


include variable in another variable in bash


Dash Slash Meaning vs just Slash -/var vs /var

What does the *.*;auth,authpriv.none -/var/log/syslog line mean in rsyslog config file?


What is causing my "Unexpected EOF Error while looking for ..." error?


If statement works with [ but not with [[ when comparing strings with -eq

Is "Arithmetic Expansion" the expected action on vars inside `[[` tests?


How can I run a same command in mac terminal for multiple files in a folder?

Why is looping over find's output bad practice?


How to disable parallel run in bash script

How to make sure only one instance of a bash script runs?


print lines if comma seperated fields matching together in another line

How do I print all lines of a file with duplicate values in a certain column


Why does redirecting a file into itself clear its content?

redirect to the same file as the source file processed by the command


Copying folders from MTP device using libmtp (over USB)

Accessing Android smartphone (Galaxy S3) via an unstable USB connection


Why use a variable in a bash regex match inside [[?

How does storing the regular expression in a shell variable avoid problems with quoting characters that are special to the shell?


Why does `sudo -i` but not `sudo` remove newline characters?

Why does a 'sudo -i' login shell break a here-doc command string argument?


du reports directory size as much smaller than the sum of its contents

How to remember the difference between du and df?


How can I remove the last comma separator from the end of a file?

sed - remove the very last occurrence of a string (a comma) in a file?


Paste contents of many files together within a vi bash script

How can I use $variable in a shell brace expansion of a sequence?


ls listing directory argument does not work as per expected

Is there any option with 'ls' command that I see only the directories?


redhat/bash - two equals scripts, one get "command not found" error

Bash can't run command from script: mkdir command not found


How can we find all the files under a directory whose contents contain any of several strings?

How to find files containing two strings in different lines


Inconsistent behavior when modifying file in-place with cat, sort, tee, and pipes

How to make reading and writing the same file in the same pipeline always "fail"?


Use the output of find as the input for another command?


Why the spaces are not being printed in this for loop?

Why does my shell script choke on whitespace or other special characters?


How to replace ']' with a new string when the text is stored in variable?

How to ensure that string interpolated into `sed` substitution escapes all metachars


How to avoid returning to the command prompt when running gnome-terminal

Run true multiple process instances of gnome-terminal


bash + how to set variable instead array element

Can I use variables inside {} expansion without `eval`?


Why cat command doesn't use its command environment?

What is this shell/Bash syntax: someVariable=someValue someCommand


difference between cp rm and mv in file transfers

cp vs. mv: which operation is more efficient?


How do I get command name of the last executed command?


Script Runs Fine In Terminal, But Not Under Cron

Why can't cron job find basic Linux commands?


Mistakenly moved the server files to a directory and the server wont work now

Moved bin and other folders! How to get them back?


Make a script in home to execute with sudo rights

How to run a specific program as root without a password prompt?


Use scp to transfer a file from local directory X to remote directory Y


Use variable inside bash brace expansion

How can I use $variable in a shell brace expansion of a sequence?


How to change the log file for sshd in Ubuntu 16.4 LTS?

Change sshd logging file location on CentOS?


Delete lines following the search pattern until blank line

Using sed to delete everything between two words?


How to use awk to find and replace with calculation?

Bash script Multiply only numbers from a text file?


how to pass environment variables into dtach?

How do I set an environment variable on the command line and have it appear in commands?


How to locate one or more underlying disks when you know only a directory?

Is there a command to see where a disk is mounted?


Save command output as environment variables

How can I make environment variables "exported" in a shell script stick around?


what's the difference between /bin/zsh and /usr/bin/zsh?

zsh is in /usr/bin, but also in /bin, what is the difference?


How to tail -f until a text is found and no more lines are printed?


Is there way to see `man` document only for specified option of a command


Cronjobs doesn't work but commands works

How can I execute `date` inside of a cron tab job?


In Bash, when to alias, when to script, and when to write a function?


How to fix vulnerabilities related to Spectre and Meltdown bugs in Ubuntu?

How to mitigate the Spectre and Meltdown vulnerabilities on Linux systems?


why "ls *bash*" doesn't show the .bashrc file


shell script /unix commands for text file content editing

Want to edit a file content for Removing the string after the last underscore and before the file extension using Unix commands


How to get a bash script argument given its position from the end?

How to get the last argument to a /bin/sh function


Why are there so many different ways to measure disk usage?


Does the Linux Kernel use event-loops to keep itself alive?

Why is cpu_idle called as the last function of the start_kernel routine?


Delete files that are older than x number of days


How to copy the rest of lines of a file to another file

How to print all lines after a match up to the end of the file?


awk to search the string and count for total in a one liner


modprobe gives: “FATAL: <module> not found in directory” error

How to list all loadable kernel modules?


How to pass a string to a command that expects a file?

Using data read from a pipe instead than from a file in command options


Can't run a background process and other command from bash in one line: unxepected token `;'

How can one run multiple programs in the background with single command?


GNU Parallel: redirect piped stdin as if it were a file


What is the difference between install a package from source(tar.xz) & from rpm

What is the difference between building from source and using an install package?


Cannot rm or cp files with a wildcard in name

Using an shell glob (wildcard (*)) after a double quoted variable expansion


Required Bash Code for Hide Password during Typing

Reading passwords without showing on screen in Bash Scripts


Do the common programs (for example: "ls", "cat") in Linux and BSD come from the same source code?

Were all Unix commands re-written in Linux?


How to use awk to print nth column and remove duplicates?


Handle filenames containing whitespaces passed to Bash function using wildcard

Passing arguments with spaces and quotes to a script (without quoting everything)


How to update display command result in one line?

Print something in console in the same place of the previous echo, with a sort of negative echo


Preserve presence of last newline when assigning to variable

How to preserve the newline character (\n) when capture output of a command in a variable


Finding and replacing text when there are custom elements within

How can I use sed to replace a multi-line string?


Why does my shell script choke on whitespace or other special characters?


Does Apple modify the GNU and BSD tools that comes with macOS?


How do I figure out which font file is chosen for a system generic font alias?


Why does the kernel even bother to send SIGKILL?

What does a program do when it's sent SIGKILL signal?


How to copy a remote tree without hidden files?

how to copy or backup files ignoring dot files


How to get sum of values in column based on variables in other column separately?

How to calculate the sum of the data that have the same ID in the first column?


Bash - meaning of the semicolon after the command

What are the shell's control and redirection operators?


how to unzip a zipped file which include various zip level files in unix/linux?


Do file writes as in-memory fake on Linux

GNU/Linux: overlay block device / stackable block device


How to exit from bash script where root shell is on foreground process

Why doesn't "sudo su" in a shell script run the rest of the script as root?


How to read/write system RAM via physical address

How can I reserve a block of memory from the Linux kernel?


Switch batteries in Thinkpad before performing a deep discharge

How to make sure that Thinkpad discharges external slice battery first?


How to unload kernel module 'nvidia-Modeset'

How to unload kernel module 'nvidia-drm'?


is it possible to increase disk size by using/adding another clean disk

Extend a filesystem when adding HDD without using LVM?


Is there a way to tell how many commands I've run since I ssh'd / logged in, in bash?


Set time with "Date -s" return "invalid date"

Bash - date, working around the 2038 bug on 32bit LINUX system


List files installed by a package on my Linux system (Ubuntu / APT)

How can I list all files which have been installed by an APT package?


Batch moving a custom set of images with Ranger?

How can I move all `marked` files to another directory in ranger?


Is there any way to install linux on a T2 chipset equiped laptop?

How can you get any version of Linux to see the 2018 MacBook Pro SSD?


What is the difference between grep root/etc/passwd and getent passwd root


xdg-open tries to open URLs as files on LXDE

xdg-open on debian 9 fails to open browser


Get rid of un-realizable space in hard disk Linux

df says I have 20G more disk space used than du. Why?


Move all files into subdirectories named after part of file name

Move files by reading their file names to different directories


Sum of cached memory and shared memory exceed total memory


Default permissions in certain path in Linux

Getting new files to inherit group permissions on Linux


how can i declare variable in shell and use with condition instruction


Linux Mint - Cinnamon - How to trigger a visual feedback from terminal

How can I create a message box from the command line?


Script continues execution after call to gnome-terminal

Run true multiple process instances of gnome-terminal


use one date variable but format it different ways

Extract date from a variable in a different format


How to start deb package after install automatically

Debian package containing combined systemd service and associated executed binary


What do the different colors in ls output mean?

What causes this green background in ls output?


Linux list only selected groups a user is part of?

How can I find out if the current user is in a specific group?


kali linux Package 'synaptic' has no installation candidate


Can I convert and replace unix times stored in a file with iso 8601 format?

How can I convert timestamps in a column to a date?


What is the maximum value of the Process ID?


After setting a new drive to be the home partition, where can I find the old /home files?

Access to original contents of mount point


Switched from bash to zsh and now I can't login as root

How could I reach root after switching from bash to zsh?


Hide HOST resources from a docker container


How to make sure OpenVPN stays connected?

Block all internet connections unless connected to OpenVPN server


Why does Unix store timestamps in a signed integer?


Can I resume a job in the background and redirect its standard output to a file?

How can I disown a running process and associate it to a new screen shell?


Vim colors conflicting with terminal ones


Running tar cmd in wrong format, how to recover


What happens when writing gigabytes of data to a pipe?


How to install a package from a repository which is missing some architectures?

apt looking for i386 files, even though architecture is amd64


Find number of duplicate file descriptors on Linux

find out which file descriptors share the same "open file description"


What are the shell's control and redirection operators?


avoid spaces and apostrophes problems with ls in a awk script

Why *not* parse `ls` (and what to do instead)?


How to concatenate "$@" or array to one string

Joining bash arguments into single string with spaces


Can I have more than one superuser account in unix?

New user with root access in Linux Debian


wget can see the internet, ping and git cannot

Wget and curl can work normally, but ping fails


What does `]` stands for in shell script?

What is the difference between the Bash operators [[ vs [ vs ( vs ((?


How to write text containing $var to a bash file?


Debian/Ubuntu:redirect boot messages to file?


Msfconsole-metasploit framework bad ruby interpreter

Metasploit ruby "bad interpreter: Permission denied"


Can We Input Return Using Shell Scripts?

How to inject keystrokes via a shell script?


Setting an alias for copying the current path from shell to clipboard fails

Single or Double quotes when defining an alias?


Why shall we use ./ to execute programs?

Why do we use "./" (dot slash) to execute a file in Linux/UNIX?


Is it safe to remove these kernel files in /boot?

How do I safely delete old kernel versions in CentOS 7?


Monitor/spy on tty1 or see the output from tty1 via SSH?

How can I hook on to one terminal's output from another terminal?


How reading command line happens in Ubuntu

How do keyboard input and text output work?


In Bash scripting, what's the meaning of " $! "?


Shell script to send an alert mail if disk usage exceeds 90%


CentOS7 Can't install VBoxGuestAdditions because kernel headers not found

Want to install VirtualBox Guest Additions on CentOS 7 but get a header mismatch


i want to delete last dot (.) from this version format 1.1.0010.1214.10

How do I replace the last occurrence of a character in a string using sed?


alias for executing the same command with sudo credentials


How to grep variable pattern which is in first column


Why do we double-quote a dollar sign evaluation in Bash?


Debian : Verify disk encryption password for already mounted system


What does the first colon-separated number in a Debian/APT package version number like 1:2.10.1-4 mean?

understanding Debian dpkg package version numbers


Matching the data in input vs output file

sum pair of columns based on matching fields


Pushing updates to 100 clients from 1 'YUM Server' (RHEL/CentOS)

Linux equivalent to PowerShell's "one-to-many" remoting


Why does `cat foo | sed 's/bar/qux/'` > foo` erases the contents of foo?


Change write permissions on samba share mount CentOS7

Why can't I mount my network drive? (CentOS7)


Making a Deleted folder Impossible to Recover

How can I be sure that a directory or file is actually deleted?


What is `^M` and how do I get rid of it?


How to interleave the lines of two or more files?


Can someone explain bash substring matching to me?


find + grep to Search for Files Containing Multiple Strings

Search for text files where two different words exist (any order, any line)


View extended ACL for a file with '+' in ls -l output


Unix : taking repeating value from a column and making a file out of it

Unix separation of specific numbers from Column


Permanent Solution to : files, strings w/o \n mixing to command line

cat file : prints prior to "user :/" prompt


Deleting a specific file from inside a tar file

Efficiently remove file(s) from large .tgz


Remove lines based on duplicates within one column without sort


using sed to find and replace, not adding

What characters do I need to escape when using sed in a sh script?


$VAR vs ${VAR} and to quote or not to quote


Bash, execute command after invoking a new shell


Why my linux doesn't display last login date?


Separate /home partition on arch-based distros take more space than used

Reserved space for root on a filesystem - why?


How set more than one paths has to be added to the PATH environment variable and other variable?


Can I write a console program that works with multiple character encodings?

How to determine the character encoding that a terminal uses in a C/C++ program?


Bash script to monitor log, match keyword then send commands

Best way to follow a log and execute a command when some text appears in the log


Best compression tool for full disk imaging that can saturate a USB 3 connection on low-powered machines?


how to not-delete-a-file with some-command < file.txt > file.txt

Can I make `cut` change a file in place?


how do I find which packages build-depend on a certain package

How to get ALL kinds of reverse package dependencies: reverse-depends pendant for non-Ubuntu distributions


bash: [: missing `]' when the test stored in variable

How can we run a command stored in a variable?


cron job not redirect the output to file

How can I execute `date` inside of a cron tab job?


Why is unquoted $PATH containing whitespaces safe in an assignment?


How to resolve the ls >file.txt dumps garbage charecters in linux?

Strange characters when the output of `ls` is redirected to a file


Where does add the path this command: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

How to permanently set environmental variables


How to modify a find function loop to handle backslashes and whitespaces?

Why is looping over find's output bad practice?


Spaces in variable assignments in shell scripts


Linux based SMB share: can access only using owner account from Windows

Execute vs Read bit. How do directory permissions in Linux work?


Change all but first ',' to "<COMMA>" for each row in file (bash)

Replace all occurrence of character except first one


Strange dependencies when install Java 6 from Oracle to Debian Lenny

Install Java 6 from Oracle to Debian Lenny


How to disable middle mouse button paste in KDE?

How can I turn off "middle mouse button paste" functionality in all programs?


How to extract lines from source file with reference file, add to the result file?

How to run grep and show x number of lines before and after the match


ImageMagick installation fail on Linux Mint

apt-get build-dep is unable to find a source package


How to get the full executable name of a running process in Linux


How do I print all lines of a file with duplicate values in a certain column


How To Remount Raid 1 Array After OS Disk Failed

Mount an existing RAID 1 Logical Volume after OS upgrade


Use bash's read builtin without a while loop


hide results that echo in if conditional


Awesome symbols and characters in a bash prompt


how to identify UUID conf or ordinary dev conf from fstab


Why don't I have permission to ls directories I own and have r/w permissions for?

Execute vs Read bit. How do directory permissions in Linux work?


Can't load gnome-terminal on Debian Stretch, "Non UTF-8 locale is not supported!"


CentOS : Is the port-5432 for me not accessible via internet?

Why do iptables rules disappear when restarting my Debian system?


Ordering two lists separated by spaces side-by-side


Linux + how to create simple Progress Bar in bash


Script to change current directory (cd, pwd)


Why doesn't this wget download script work?


Redirecting stdout to a file you don't have write permission on


Protection of shell command with string variable

Security implications of forgetting to quote a variable in bash/POSIX shells


Run command with specific arguments without password as root for all users

How do I use command arguments with Cmnd_Alias in sudoers?


ssh - why can I login with partial passwords?

Solaris let me in with different password with the same 8 first characters


Why does my shell script choke on whitespace or other special characters?


localhost port is listening, but interface can't see it

ufw: how to forward single port to another port on different interface


Redirect script output to /dev/tty1 and also capture output to file


How to replace a string in all folder and file names


How to create a file with some specific content using shell script?

How to create a simple .txt (text) file using terminal?


How SCP Hang issue resolve after changing MTU Value?

Why does SCP hang on copying files larger than 1405 bytes?


linux mint "initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

Why this error about upstart/systemd with runit?


Combine find-chmod for directories and find-chmod for regular files

Change all folder permissions with 1 command


set a limit on concurrent SSH/SFTP connections to 2 per user

How to limit the number of active logins per user?


How to force bash star * wildcard expanding in ascending order for numerical values?

Does the Bash star * wildcard always produce an (ascending) sorted list?


Why is there a discrepancy in disk usage reported by df and du?


How can I read pathnames in a file line by line, and apply pushd to each pathname?

Why is my variable local in one 'while read' loop, but not in another seemingly similar loop?


Why process substitution is faster than pipe in this case?

Performance differences between pipelines and process substitution


Linux's command line behaviour (Ubunto/Deb) in running an executable file

Why do we use "./" (dot slash) to execute a file in Linux/UNIX?


Why can't read the contents of a directory?

Do the parent directory's permissions matter when accessing a subdirectory?


open a new terminal, let it stay, and switch back to original terminal, run command


Made external HDD bootable installation device by accident. How do I recover files?

Overwritten MBR: Is partial/complete recovery possible?


System log full of session and slice messages


When running a command on a file, is there any way to reference the file without typing the entire name?

Supply the same filename as argument to two commands


case insensitive, list files in directory, ending in .jpg

How to match case insensitive patterns with ls?


Unzip to a folder with the same name as the file (without the .zip extension)

How can I tell if "unzip" will create a single folder ahead of time?


Can't display the date correctly in a file generated by a cronjob

How can I execute `date` inside of a cron tab job?


What are the differences between rm and '-delete' in find?


Why fork() copy all data the same as parent?

Why is the default process creation mechanism fork?


Getting different results running same commands step by step at a terminal and within a script


Server admin sent me a private key to use. Why?


When does `[::]` or `0.0.0.0` mean this network and when this host?

Connecting to IP 0.0.0.0 succeeds. How? Why?


Are there binary packages available to upgrade python3 on Debian 9?


How to add programs and files within the linux ISO:

Is there a tool to view and edit ,iso files like PowerISO?


Brackets in if condition: why am I getting syntax errors without whitespace?


How to insert newline characters every N chars into a long string

How do I insert a space every four characters in a long line?


Renaming many files to their parent directory name

Rename files in directory according to name of directory


Difference between available, free and cached in free command

What do the "buff/cache" and "avail mem" fields in top mean?


Is there any command line to see the missing files on Linux?

How to find missing files with sequential names?


why it so important do disable THP ( transparent huge pages ) on database servers?

Does anyone actually use and benefit from transparent huge pages?


How to read information about wifi connection from proc - net?

Where is the network data is stored on linux system?


Bash method for viewing beginning and end of file

Command to display first few and last few lines of a file


How to delete network namespace, no pids option available for ip netns

How to list processes belonging to a network namespace?


Converting relative path to absolute path without symbolic link


Cannot execute file with root priviledges using SUID


jq: parse json file with constraint from other field


What are the differences between process data segment and resident set size?

Need explanation on Resident Set Size/Virtual Size


Make script to create subdirectories based on file name and move matching files into it

Move files by reading their file names to different directories


Why is "&" necessary to make a Unix fork bomb work?

Why do these bash fork bombs work differently and what is the significance of & in it?


change UID and GID file attributes on read only file system with mount

How can I mount a filesystem, mapping userids?


Single quote within double quotes and the Bash reference manual


CP - Difference between --no-dereference (-P) and -d options


What level is the value `ulimit -n`mean? user level or process level?

Are limits.conf values applied on a per-process basis?


How to download https file in AIX without wget and curl?

Alternatives to cURL/wget for remote API calls


Is there a website that keeps track of which software versions are available in which distributions?

Is there a tool/website to compare package status in different Linux distributions?


Cutting output from sudo in a bash script

Is it possible to get the output of only sudo command?


Why is looping over find's output bad practice?


tar archive folder size is more than the original

`ls -lS` isn't showing true size of directory


Which are the (Bash) shell special parameters/variables?


Linux cannot detect 2560x1440 144z capability of Vega 64

Can't get past 1024x768 resolution [Intel Graphics XORG] [Debian Jessie Mate environment]


Why does this for loop ignore my variable?

How can I use $variable in a shell brace expansion of a sequence?


Is a terminal emulator process a server?


Regular expression used in sed not giving the desired result between intervals

sed command not giving proper output for regular expression used


Ask sed to ignore all special characters

What characters do I need to escape when using sed in a sh script?


Rename a specific part of a lot of files


Extended input functionality using gets()?

How do I get my arrow keys working in the at> prompt


Create a tar archive split into blocks of a maximum size


How to get an output results as text to more than one location at once?

Append same text to many files using cat or echo?


How to print out each command argument with echo?


linux + find + delete files on remote machines except particular files


Return only the expanded part of a bash glob

How to get the substring of a filename that matches a "*" glob wildcard?


Find exec - Why {} can't be used as the output file name?


Extract lines between two match strings while excluding the matched lines

How can I exclude the lines which matche the range patterns in sed?


How to create an array of unique elements from a string/array in bash?


What is the fastest way to create a list of directories specified in a file?


Get the filename from wget URL --trust-server-names

Resolve filename from a remote URL without downloading a file


installing proprietary nvidia drivers Kali 2016.2


Check whether files in a file list exist in a certain directory


Valid commands in /etc/crontab not executing (FreeBSD)

How can I execute `date` inside of a cron tab job?


Prompt: Line is deleted by switching through commands

Why is my bash prompt getting bugged when I browse the history?


Why does echo of awk in a bash script remove line breaks?

Why do newline characters get lost when using command substitution?


A confusion about the parameter "-print" in the command "find"

`find` with multiple `-name` and `-exec` executes only the last matches of `-name`


Extracting specific range of characters from each line

Is there a command like head but for line truncation?


dd stops working after writing for couple of seconds


Which module in a Linux distribution is responsible for keyboard shortcuts?

How do keyboard input and text output work?


How Linux system knows what files/subdirectories are under one directory


How is Ctrl + / working as undo in Bash 5.0.3 on Debian 10.0?

How is ctrl + / working as undo in Zsh 5.7.1 on Debian 10.0?


How to copy a local file when I connect using ssh

Copy a file back to local system with ssh


Use bash to create array from files using ? wildcard?


Pulling IP address from ping command with sed?

How can I resolve a hostname to an IP address in a Bash script?


How to extract the Videostream without audio from MP4?

How to remove an audio track from an mp4 video file?


Replace all occurrence of character except first one

Replacing pattern after nth match is found on each line?


How do i print the path of excuatable in echo

How can I assign the output of a command to a shell variable?


How to run a specific program as root without a password prompt?


Why '$' in regex isn't working as expected in debian?

Why is the end-of-line $ anchor not working with the grep command, even though the front-of-line ^ anchor is?


Bash - No such file or directory, even though the directory exists and the previous commands run correctly

Why does my shell script choke on whitespace or other special characters?


Why is $ the default symbol for a user shell and # the default symbol for a root shell?


Find directories that don't have a file with specified name

List all directories that do NOT have a file with a given file name inside


openSuse - How to change apache php version?

phpinfo still shows old PHP version after installing new version from source


What does the columns of the output of ls -la signify?

What do the fields in ls -al output mean?


If statement can't find the test variable in bash script

Shell script runs with bash but not with sh. Why and how to fix it?


Can I take a running process and redirect its stderr / stdout?

How to change the output redirection of a running process?


Linux file permissions are "-????????? ? ? ? ?" (Corrupted?)

Linux local directory permissions as question-marks for non-root


os-prober Doesn't Detect Windows 10 in Archlinux


What is a Linux alternative to SVL Header Injector and HTTP Injector?

Connecting to host by SSH client in Linux by proxy


the output of “column” is misaligned when the text is colored

Issue with column command and color escape codes


Do dnf updates conflicts with gnome software center updates?

Fedora GUI software update inconsistent with dnf command line update


What are the shell's control and redirection operators?


What happens when you write to /dev/null? What’s the point?

What is the utility of piping to `/dev/null`?


Prevent deletion of folder by accidentally moving or deleting parent folder that has no immutable attribute

how to create a new file in an immutable directory


Why do I receive intermittent I/O Errors that say "Couldn't open text file" when using pdftotext while looping through directories?

Why doesn't the tilde (~) expand inside double quotes?


How do I kill a process in the "Uninterruptible Sleep" state?

Is there any way to kill or end a process in "disk sleep"


debian interactive shell does not call .profile

Is GNOME Terminal a type of non-login shell?


login with "su john" command does not source john's .bash_profile

.bash_profile not sourced when running su


Not able to pass basic auth headers in a dynamic curl cmd

How can we run a command stored in a variable?


how to disable gdm and graphical interface on RHEL 8.2

Debian 10 systemd, how to disable autostart of graphical environments


String artifacts from history on commandline


Difference between 2>&1 <command> and <command> 2>&1

What are the shell's control and redirection operators?


How to turn off Wireless power management permanently


Installing Linux Mint on Windows-Ubuntu Dual Boot


want to create a cron job to play video file?

How to schedule a cron job to run a video fill every 5 minute?


How to expand array content from its name?

Indirect return of all elements in an array


Is it possible to exclude a directory from the find command?

find: prune does not ignore specified path


Why can i put my laptop to sleep without sudo myself in a terminal, but not in a cronjob

command not running in cron (systemctl suspend)


What are the differences between "sudo -s" and "su root"?


Keep processes running after SSH session disconnects


How to recover lost permission metadata in /etc?


How is this command legal? "> file1 < file2 cat"


How to safely turn off swap permanently and reclaim the space? (on Debian Jessie)


Linux - Understanding an stdin/stdout command "<"

Why does the less-than sign not work as a replacement for cat in bash?


Shell: send foreground process to background without suspending it?

How do you send command line apps directly to the background?


ls -F OR ls -al - What does the red highlighting mean?

What causes this green background in ls output?


What is `. command` means and how it works in Linux?

What's the meaning of a dot before a command in shell?


sed command to deleted everything and leave only words between patterns?

Print lines between (and including) two patterns


How can I clear active NFS client-side server/volume entries that have become disassociated with any mounted filesystems?


How can I find the three largest files under a directory?

Sorting files according to size recursively


file block size - difference between stat and ls


Find and delete folders within directory that are older than x days

Delete sub-directories with YYYYMMDD in name older than N days


Why can't I change directory to the current directory with permission denied?


Is there any point in quoting simple strings?


how to verify if MTU 9000 configured properly on all component

How to know if my servers should use jumbo frames (MTU)


How to pass variable in pattern while using sed command?

How can I use variables in the LHS and RHS of a sed substitution?


Splitting a string without delimiter and save it in an array

Split single string into character array using ONLY bash


How to list all files in current directory whose second character is a digit?

How to do ls with a wildcard and see the directory name


Command requires file, avoid creating temporary file

Why does BASH process substitution not work with some commands?


tar + gz files from folder as is without to put inside all sub folder

tar compression without directory structure


File permission with six bytes in git. What does it mean?

Is there any difference between mode value 0777 and 777


Is there C language documentation on Linux?

Is there any manual about C in Linux? If any, what is it?


Filter out 2nd occurance of text betwen quotes with sed?

How do I grep file paths out of a text file?


How does (echo 'text' ; cat file.txt ) > new file.txt actually work?

What are the shell's control and redirection operators?


Sed is not replacing with the value of a variable

How can I use variables in the LHS and RHS of a sed substitution?


mkdir: cannot create directory: No such file or directory


How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)?


How can I do to quit the SSH session and leave some current command line running normally?

How can I keep processes running on a remote server even after turning off the terminal machine?


Can't install Linux Headers (Kali Linux)


crontab doesn't get bash.bashrc variables

cron ignores variables defined in ".bashrc" and ".bash_profile"


Sed command to print out every 1st and 14th line of a file every 46 lines

How to print lines number 15 and 25 out of each 50 lines?


Redirecting stdout to a file you don't have write permission on


Why does my setup for no password prompt in /etc/sudoers not work?

Why NOPASSWD in visudo on Linux Mint 18 does not work


How do I make this script search through all users home folders and then rm -f the files matching EXT?

Recursively delete all files with a given extension


The Shell initially Invoked After I Power On My Computer is Login or Non-login Shell?

Difference between Login Shell and Non-Login Shell?


A command that will execute a different command on uneven days

How can I tell cron to run a command every other day (odd/even)


echo 1 > sudo /sys/block/sdX/device/delete command


Delete a partiular line and 17 lines after that

Remove line containing certain string and the following line


Creating a 'sub-screen', similar to how watch behaves

Show output on another "screen" and return to normal when done


how can i automatically record every terminal session?


how to check if file exist based on file partial name

Test if there are files matching a pattern in order to execute a script


I think printf broke my newlines in terminal

Fix terminal after displaying a binary file


find + how to print the file name when grep is matched

How to return both file name and line number with find ... -exec grep?


I have unmounted a partition, yet mkfs.ext4 says it won't run on a partition in use, why is that?

Why would a partition be in use by the system if it isn't mounted?


How to check if file is empty or it has only blank characters?


What is shortest way to rename files in bash


How to Make a script act on a USB drive when it is mounted

How to run custom scripts upon USB device plug-in?


What is the xcalib -screen number for the HDMI monitor?


Mysterious problem: Deleting massive amount of files doesn't free up disk space

Why is there a discrepancy in disk usage reported by df and du?


Match lines between two patters using sed just once

How to select first occurrence between two patterns including them


How to monitor an already running application in a new Bash Terminal window?

Stealing and reattaching a running process


How do I get the font name from a font file?

Is there a unix command line tool that can analyze font files?


How can I search for all files that are not user writeable in unix using grep

How can I find all files I do not have write access to in specific folder?


Does bash have a color command, as seen in MS-Windows CMD?

How to set the background color of the Linux console screen?


Why /proc/meminfo shows MemAvailable under Kernel Version 3.10?

How can I get the amount of available memory portably across distributions?


du results on filesystem inconsistent with df


Bash: Set variable equal to a string substitution

Spaces in variable assignments in shell scripts


why service isn't follow the script that defined in ExecStart

Can systemd 'adopt' or 'inherit' a process or cgroup?


how to convert a string to a float and then use it in a conditional operation?

How to compare a program's version in a shell script?


Troubleshooting advice for: -bash: cannot execute binary file: Exec format error


How can I make environment variables "exported" in a shell script stick around?


How can I use variables in the LHS and RHS of a sed substitution?


What is `^M` and how do I get rid of it?


What is the "login session" of a process?


How do I find which disk/partition current directory is on?

Determine what device a directory is located on


How do I remove "permission denied" printout statements from the find program?


Possible to "build world" in FreeBSD without root?

How to build a custom FreeBSD release without root privileges?


How can I change the default "ens33" network device to old "eth0" on Fedora 19?


Print odd-numbered lines, print even-numbered lines


Bash copy all files that don't match the given extensions


About stdin. Any example for `[n]<filename` when n~0?


Pass shell variable as a /pattern/ to awk


Keep sourced file after script execution


What do these sequences mean in the PS1 variable?

Awesome symbols and characters in a bash prompt


How do I run a Bash command via a PY file?


command sort -h does not return a reasonable result


How can we find out the pseudoterminal master and slave from each other?

Are all the slaves paired with the same master?


Trisquel:What to type when I set a blank password?


What is meaning of double hyphen (--) in ls command


Issue an error when using empty shell variables


Check whether an IP belongs to a specific range


How to use notify-send to notify users as root?


Does Linux kernel create a file for an Internet domain socket?


How could I make "assets/**/*.webp" work in shell script?


unzip the latest zipped file from a list of zipped files


Why are there so many different ways to measure disk usage?


Error encounterd while running Firefox in Xvfb: "Xlib: extension "RANDR" missing on display ":99"."


I'm getting a console screen when shutting down my Pop OS

How to read the shut down messages afterwards?


udev action to call notify-send not working


Writing output of ls using exec to a variable

How can I assign the output of a command to a shell variable?


How to enable Unix file system support on Linux kernel?

How to mount ufs file system under Debian testing?


How to make a icon in desktop for a script

How do I create a shortcut for a script, and run it as a .desktop file?


How to differ strings with and without ending/starting spaces?

How to match exact string using `sed`? But not the part of it.?


kernel BUG at drivers/net/ethernet/intel/e1000e/netdev.c:3804!

Kernel bug causes ethernet driver to stop working


How can we count/list all files opened by a specific program/COMMAND?

Discrepancy with lsof command when trying to get the count of open files per process


Install packages on Kali without an Internet connection

Ways to update Ubuntu (debian-based distros) offline


How do I delete a directory with hyphen in the name please?

How do I delete a file whose name begins with "-" (hyphen a.k.a. dash or minus)?


Print Lines Between Two Patterns with SED

Print lines between (and excluding) two patterns


How to display a version history for a package and download a specific version of that package using APT?

How to install the previous version of a .deb package and pin it?


Asynchronously redirect std output and err output to file

Output of a python script running as unit is out of order while shells seems unnafected


Why does zsh variable assignment without quotes fail to trim whitespace?


Find each line matching a pattern but print only the line above it


How can I replace a string with a string that contains a special character, using sed

How to replace a string with a string containing slash with sed?


Find when new hardware is connected on FreeBSD


Why is setting a variable before a command legal in bash?


Loop mounting files vs mounting directories


How can I restart a xorg server via bash script?


What causes this green background in ls output?


The bash script does not execute with file name only. I will need to provide the full path or relative path

Why do we use "./" (dot slash) to execute a file in Linux/UNIX?


disable ssh login but maintaining scp function for a user

Disable direct login for normal users but allow scp and sftp?


Unexpected behavior with shell script running a program in the background

Background process of subshell strange behaviour


set -u finds unset value in heredoc in bash script

Bash 'unbound variable' error when variables are referenced in multiline comment (set -u)


How to bridge two wifi networks, one private, one with internet connection, one linux PC with connections to both

How to share "internet hotspot" access to a network on a second wifi adapter?


find . -type d -mtime +1 only shows one file in a 4 day span

Why does find -mtime +1 only return files older than 2 days?


How to ignore write errors while zeroing a disk?


Why two folders with the same contents have different sizes?


In bash, how can I convert a Unicode Codepoint [0-9A-F] into a printable character?


load command from history but don't execute yet, so I can modify it

put history command onto command line without executing it


CD $Variable not working when used in a (Bash) Shell Script

Script to change current directory (cd, pwd)


sed or awk to print between 2 patterns[excluding the patterns]

Print lines between (and excluding) two patterns


How to dynamically look up shell variable name


What is the rationale for using -f in tar

What does the -f parameter do in the tar command


Unable to alias !! (double exclamation) in bash


How to stop "failed to unmount /usr/" errors during shutdown in Debian?

Why do I get the error "failed unmounting /var" during shutdown?


What is the ls option to list entries by lines instead of by columns?

How to list *.tar.gz, one filename per line?


What is the hyphen (‐) used for in this command tee <<-'EOF'?


What is the function of the keyboard shortcut Ctrl+Y under Linux?

What is the purpose of delayed suspend (Ctrl-Y) in Bash?


What does the ./ mean (dot slash) in linux?


How to calculate a Time Zone from my server

How can I have `date` output the time from a different timezone?


How to determine if a process is part of a pipeline (producer in pipeline)?

Are unix[-like] programs capable of determing where their output is going?


How to debug the script in logs for shell script?


How to merge/join two file based on common field with repeated rows

Merge files based on matching of first column


Convert a comma delimited list of numbers to a hyphenated list or range

How to collapse consecutive numbers into ranges?


How to change the device label of a USB stick?

How to change the volume name of a FAT32 filesystem?


Launching X11 application (Firefox) via crontab


What does `. /path/command` do? (Space after dot, absolute path)

What's the meaning of a dot before a command in shell?


Redirection operator, standard input and command parameters

What's the difference between STDIN and arguments passed to command?


How to add a text file to a zip in one single command?

How to redirect output of a program to a ZIP file?


find ... | xargs grep --> colors missing for output of grep


how does Linux decide which interpreter to call when running a text script

What exactly happens when I execute a file in my shell?


Alternative to typing the path for /sbin/ifconfig

Is there a reason I would not add /usr/local/sbin, /usr/sbin, /sbin to my path on Debian?


"Why does "/home" have " / " at the beginning if for example the " / " is on a different partition?

Why is the root directory denoted by a / sign?


Awk - add a line, if and only if this line does not already exist

Awk: if pattern not found add some text at the end of file


Bash Shell "onecmd" Option Usage Purpose


Solaris 11 list of supported USB wireless cards


How to give stdout to different program on same line?


Number of new lines in a string as integer


How to exclude folder name regardless of path in bash?

find: prune does not ignore specified path


How to put a job in background without output?

How can I disown a running process and associate it to a new screen shell?


Why is the default output of ss so strange?

ss - linux socket statistics utility output format


Execute each command in terminal from top line / Execute clear before each command

Can I configure bash to execute "clear" before every command typed in the console?


What is the meaning of set -e -o pipefail?

Debugging scripts, what is the difference between -x to set -euxo pipefail?


symbolic link to ~/SomeDir relative to user home

Using ~ in symlink target or making a symlink with a variable


Running find & grep, and include path in the output

How to return both file name and line number with find ... -exec grep?


Why does size and used space in df output contradict available space


mask Dollar, brackets and quotes in remote ssh command


user permission reporting based on extracted sudoers group & passwd files


What goes in ~/.bash_profile and what goes in ~/.bashrc?

Is there a ".bashrc" equivalent file read by all shells?


What does the number after each command that listed by the apropos command mean? (1-8, pm, ssl, etc)


shell command 'var="[a-p]"; echo $var' has as output "h", any explanation?

Why does my shell script choke on whitespace or other special characters?


why grep "!" shows "bash: !: event not found"?


Zip a file without including the parent directory


How to switch between tty and xorg session


How can I build and run 32-bit software on 64-bit Debian?

How do I run 32-bit programs on a 64-bit Debian/Ubuntu?


Cannot get awk to work properly inside make

Makefile, sqare brackets built-in, variable expansion and command substitution


How can I launch gnome-terminal with unique titles for multiple tabs?


What to modify if I dd sda1 to another machine?


How not to switch past the edge of panes in tmux

tmux select-pane -LDUR command - disable auto-cycling behavior


How to cause "Argument list too long" error?

What defines the maximum size for a command single argument?


Why does the /run directory have inode 2?

Why do the directories /home, /usr, /var, etc. all have the same inode number (2)?


Could someone explain this shebang line which uses sh and then does exec perl?


Does ampersand also function as line terminator?

What are the shell's control and redirection operators?


How can I pass aliases from a shell to a script run by it?

Why doesn't my Bash script recognize aliases?


find -path doesn't match files unless extension is specified


Easy way to insert lines from one file to another


Cannot log in because of corrupted .bash_profile

Stuck in a loop at login prompt after changing shell to zsh


iwlwifi: Could not load the [0] uCode section; Failed to run INIT ucode: -5


Removing control chars (including console codes / colours) from script output


how to introduce multiplication in shell scripting

How to do integer & float calculations, in bash or other languages/frameworks?


Wrong filenames timestamp listing in .txt file after comparison with the creation date

Filenames correction of timestamp with correct creation date


Send program's serial output to pseudo-terminal used by serial sniffer such as jpnevulator

How do I use jpnevulator to capture and log the serial traffic between an application and hardware serial port?


Find command that excludes paths listed in a file

Find exclude path containing specific files


How to unmount a recursive bind mount - safely

Unmount a rbind mount without affecting the original mount


"unexpected EOF while looking for matching `)'" - when trying autocomplete

How to fix corrupted bash-completion in command substitution?


Is it possible to boot from the hard drive of a dead Linux machine on another machine?


How do I use man pages to learn how to use commands?


Is it possible to restrict the amperage of an USB port?

How to restrict/cut power output to a USB client?


What characters do I need to escape when using sed in a sh script?


Display console on usb screen without X server

How to use /dev/fb0 as a console from userspace, or output text to it


How can I save a command output to a file in real-time?


Get text-file word occurrence count of all words & print output sorted


Bash Script To Remove RAW Files Which Don't Have A Corresponding JPEG File

Delete all files to which no corresponding file with another extension exists


Delete all lines of text that isn't all numbers


Why does a sed command work interactively but not in my script?

How can I use variables in the LHS and RHS of a sed substitution?


how to make a bash alias to a script in folder

In Bash, when to alias, when to script, and when to write a function?


how to restrict users not to login to root by using sudo -i and sudo su - and other if exists

Preventing other users from viewing my files


Where does Linux get Swap partitions to mount

How does Linux know where its swap partition is?


Finding duplicates with first 12 characters of each line

How do I print all lines of a file with duplicate values in a certain column


Why do links I paste to xterm get turned into regexes?

paste url into terminal(urxvt, zsh) failed, some characters get escaped


Replacing pattern only when it matches a whole word


Get lines until first matched pattern range

How to select first occurrence between two patterns including them


How to turn display off and ignore mouse movement?

Can I force screen blank and ignore input?


Sorting multiple columns, with the second column being sorted by numerical order

Can you sort one column lexicographically while simultaneously sorting the next column numerically?


A substitue for Bash aliases (something that behaves basically like an alias but isn't an alias)


Run command once and filter output in multiple files

How can I send stdout to multiple commands?


Atime value changing only once after file creation


sort each column(field) in a file separately


What are the shell's control and redirection operators?


How to search through and list files that do not contain specific phrase

How can I find all files that do NOT contain a text string?


Is there a "SHELL IN PRIVATE" mode for bash?

Temporarily suspend bash_history on a given shell?


What permissions should a udev rule have?


Why doesn't alias foo='echo "This is a quote: \'"' work?

Wrapping a command that includes single and double quotes for another command


Is it possible to take input variables in shell?

How can I pass a command line argument into a shell script?


arch:what is the sync database? It located at /var/lib/pacman/sync

pacman: difference between sync, local, package and files databases


Inconsistent shell behavior involving endline characters

Where has the trailing newline char gone from my command substitution?


Sourcing works manually but fails when done from script

Different ways to execute a shell script


Process a text file and a gunzipped text file in single command

Is there a tool that combines zcat and cat transparently?


Zip a file without including the parent directory


Bash: Special variables $@ vs. $* in For Loop

What is the difference between $* and $@?


How can I assign the output of a command to a shell variable?


Construction an a command line bash script with spaces in path names

Why does my shell script choke on whitespace or other special characters?


How does find prevent endless loops (e.g. when renaming files while finding them)?

Will we ever "find" files whose names are changed by "find"? Why not?


What's the difference betwen " and ' - and when to use it?


Why are `/dev/ptmx` and `/dev/pts/ptmx` not device files?


Adding user to a group with correct permissions and access to directory still denied

How to allow to run su instantly after I added the user to the appropriate group


Is there any decent speech recognition software for Linux?


auto enter password for `passwd <new user>` from script?


how to remove leading space in command line argument

In Bash, when to alias, when to script, and when to write a function?


how to delete files in folder with thousands of files

Remove many many many files from a folder


Correct way to quote variables for use in Bash backticks?


What is the chroot command used for when resetting a password in RHEL/CentOS 7?


sh script name -sh: /bin/sh^M: bad interpreter: No such file or directory


How to wipe a partition quickly with value zero?

How to fill a device with zeros, without overwriting the bytes that are already zeros?


How to page up and down in the Ctrl + Alt + F3 virtual terminal window?

How to scroll in a terminal using keyboard?


RedHat/Centos6.5 Environmental Variables Set on Startup - but from where?

How to determine where an environment variable came from?


Recovering from chown -R <user> /usr/bin


How can I use $variable in a shell brace expansion of a sequence?


Ubuntu 16.04 root password suddenly not working(even after resetting)

Which user's password does `sudo` asks for?


$_ vs !$. Last argument of the preceding command and output redirection


Can I create BASH function that will hold text block that can then be called for output to FILE and SCREEN to cut down on code block repetition

how to output text to both screen and file inside a shell script?


Renaming Multiple files in different directories

How to prepare files for rsync on a case insensitive filesystem?


Given that root has all privileges, why is root ALL=(ALL) ALL in /etc/sudoers?

Why does the root user need sudo permission?


How can you figure out which program/process is creating a file?

Is it possible to find out what program or script created a given file?


How to store output command in variable and use this varible again for next command after pipe


Conditional statement in a function for PS1 are not re-evaluated

PS1='$(pwd)' why this works and why is this different from PS1=$(pwd)


Make one program use a special resolv.conf

how to change a file's content for a specific process only?


Bash script did not change the directory as written

Script to change current directory (cd, pwd)


Create reference to variable based on another variable name in a bash script?

Is it possible to print the content of the content of a variable with shell script? (indirect referencing)


sed '5i\n\n\n' myfile inserts first \n as a literal n, and the other two \n\n as new lines, is it possible to insert all 3 new lines?

Extra Backslash Required in First Appended Newline in sed


Linux package to display a given text bigger

How do I print 'block' letters in the terminal?


How to properly edit system files (as root) in GUI (and CLI) in Gnu/Linux?


Why I can't escape spaces on a bash script?


Positional arguments when sourcing (.) a file in sh/bash

Parameters passed to a sourced script are wrong


bash for loop to exclude a particular sub directory

How can I use '*' to capture everything with exceptions


Is there something like rc.local in systemd?

What is the correct substitute for rc.local in systemd instead of re-creating rc.local


Fedora GRUB - How to remove unused entries?

Uninstall old kernel Fedora 28 Workstation


Required display service (X server) for Debian init script

Changing the keyboard layout/mapping on both the console (tty) and X in an X/console agnostic way?


What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?


How to execute a bash script, with it's arguments, on multiple directories?

cd into all directories, execute command on files in that directory, and return to previous current directory


Use awk to list all values seen in a column

Count distinct values of a field in a file


"Reverse" an SSH connection from destination to target


Is there a way to accurately parse a true CSV file?

Is there a robust command line tool for processing csv files?


Moving a file based on specific filename to specific folder (based on filename)

Move files to specific folders based on name


Using jq to extract values and format in CSV


directory says it is group writable but I cannot write a file within it

Execute vs Read bit. How do directory permissions in Linux work?


How to include python script inside a bash script


bash function doesnt not work the same as commandline

What is the difference between the "...", '...', $'...', and $"..." quotes in the shell?


Is it possible to store user's crontab in user's git repository on OpenBSD?


How to bulk rename files to add modification date?

Renaming a bunch of files with date modified timestamp at the end of the filename?


Invalid option name error with shebang "#!/bin/bash -o pipefail" in script


Unix - df output is /var 98% but just 374mb used in du output

Why is there a discrepancy in disk usage reported by df and du?


How do I keep a prompt running in background?

Why do backgrounded processes sometimes stop spontaneously?


Why is the array empty after the while loop?


How to find if the tail command will work on a given file

Is there a convenient way to classify files as "binary" or "text"?


Why doesn't the directory stack persist from inside a script?

Script to change current directory (cd, pwd)


Revert to older version of password database


setuid not allowing me to run script as root?


How to mount a filesystem in such a way that a specific user has full read access to it?

Allow a user to read some other users' home directories


Kill background process bash not working from current shell


What prevents me from just editing the /etc/shadow file in unencrypted systems?

How to defend against a Live USB computer hack


when found blank line change to new column

text processing rows to columns for a block


Echoing a string in bash with brackets surrounding it returns 'b'


How to escape `--` in bash script for git log command

Why does my shell script choke on whitespace or other special characters?


How to prevent bash from running when variable is undefined

Avoid running the script if a variable is not defined


Turning separate lines into a comma separated list with quoted entries


Filesystem image made with dd sometimes fails--How to Analyze?

Using dd to clone a disk while mounted - risks?


Why does "awk ... file | tee file" truncate the file?

Explanation of unpredictable behaviour of tee


Wildcard doesn't expand in for loop with variable


"which" command not work in shell script with #!/bin/bash but work with #!/bin/zsh


Ubuntu swappiness parameter does not working


Trouble copying file while SSH'd into another computer to my local computer?

Copy a file back to local system with ssh


How do I set an environment variable on the command line and have it appear in commands?


How to run a loop in all directories inside a directory

How do I create a directory in all subdirectories?


Create loop for 2000+ folders with incremental names to zip into archives with the same incremental names

command to zip multiple directories into individual zip files


GNU find and masking the {} for some shells - which?


Understand why a bash script is not executing main?


find + change recursive value on all metainfo.xml files

how to change value of parameter recursive under folder


Why are bash tests so picky about whitespace?


Remove sub-folders without deleting files

Move all files from subdirectories to parent directory


Simulated "and" statement in grep that is not order specific

How to run grep with multiple AND patterns?


Why os.sytem won't show desktop notification to user?


Why does an inline variable definition work but a previous line does not for an aws command?

What is this shell/Bash syntax: someVariable=someValue someCommand


uname -a displays "Linux 4.19.0-9-amd64". What option of uname or other command will display that I'm using Debian 10.4?


Keep processes running after SSH session disconnects


How to find directories (or files, etc.) based on an expression that applies to the file pathname

Find path that has specific sub directory


Permission denied when writing to '/tmp/file' as root

Group permissions for root not working in /tmp


conditionally assign var with check for defined and condtion

Brackets in if condition: why am I getting syntax errors without whitespace?


How to invoke any OSC escape sequence in GNU/screen?

Using terminal escape-sequences within GNU screen


Is it possible to set the rights of a file numerically but only to the user?

Removing and adding permission using numerical notation on the same line


Is there a unix-like system that doesn't come with Perl?

Which is the most portable of sed, awk, perl and sh?


How does Linux route packets destined for another interface?

How iptables tables and chains are traversed


How to select and output URL addresses out of any file?

How to use grep and cut in script to obtain website URLs from an HTML file


Pacman: cannot update my Linux packages (Arch/Manjaro): failed to commit transaction (conflicting files)


How to safely insert USB stick/device to Linux computer?


Why the Moved File Doesn't Exist at the Destination Path?

How to remove a USB drive without worrying if its been unmounted?


Why test -n returns true even when a variable is empty? What am I doing wrong?


Chown & Chmod commands returning Operation not permitted on Hard Disk


What's meaning of the `c` in `crw-rw-rw-` in linux file permissions?

Understanding UNIX permissions and file types


Why print command can not be called with sudo?


Environment variable seems not set while it is in a shell script

How can I make environment variables "exported" in a shell script stick around?


String equality in bash strings are equal when actually they are not


Delete millions of files efficiently, without first generating a list of all files to be deleted

Efficiently delete large directory containing thousands of files


Completely securely deleting a single file

How can I be sure that a directory or file is actually deleted?


use find -exec with a filename containing a dollar sign ($)

Is it possible to use `find -exec sh -c` safely?


How does iptables MASQUERADE work on the incoming side?


How to read the output of a previous command in a shell script?

How can I assign the output of a command to a shell variable?


Why is using a shell loop to process text considered bad practice?


Is /usr/bin/bash the same as /bin/bash (CentOS 7)

Creating an symbolic link in /bin automatically creates a second link in /usr/bin and the which command chooses /usr/bin


bash: test: no: integer expression expected


Passing a variable with spaces from bash to awk

Security implications of forgetting to quote a variable in bash/POSIX shells


"foo && bar || baz" in bash behaving differently from "if foo; then bar; else baz"

Precedence of the shell logical operators &&, ||


curl to stdout and untar a zip to a specific directory

How to redirect output of wget as input to unzip?


How do I move a line following match up to the end of previous line?

Text processing - join every two lines with commas


ssh to server and switch user and change a directory

shell scripting and running after switching to other user


Remove files/folders that start with "."

How to match * with hidden files inside a directory


bash + how to calculate percentage from number

How to do integer & float calculations, in bash or other languages/frameworks?


What is the meaning of "\;" in "find" command?

Understanding find(1)'s -exec option (curly braces & plus sign)


How to get the directory of a sourced script in RedHat 6 with bash

determining path to sourced shell script


Modify all bash commands through a program before executing them


How to download all files of a GitHub project with wget (in raw form)?


"Make sure not to read and write the same file in the same pipeline"

What are the shell's control and redirection operators?


How can I get rows for terminals? (vs. 'echo $COLUMNS')


Invalid signature when trying to apt-get update on Kali

Invalid signature for Kali Linux repositories : "The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository"


grep for a text in a line. But if it has a comment only at its beginning then exclude it from the grep


how to untar specific files recursively in linux?

How to extract specific file(s) from tar.gz


SSH'd into a linux AWS box, how to exit out of terminal without closing script running in AWS box?

Keep processes running after SSH session disconnects


Why not seeing shell globs as a "dialect" of regex?

How do regular expressions differ from wildcards used to filter files


apt-get -y upgrade keep asking me to confirm keep /tmp/grub.xC3mMKP0zx file and i can't skip it

Force non-interactive "dpkg --configure" when using apt-get install


Use the shell test to validate basic file information.

Why *not* parse `ls` (and what to do instead)?


Security of bash script involving gpg symmetric encryption

How can I automate gpg decryption which uses a passphrase while keeping it secret?


How to make the kernel section 9 manpages which document functions, data structures, and headers?


AIX Does not support bc boolean expression


Comparing IP info between two files based on criteria and outputting the results to two different files


What is the difference between $(command) and "$(command)"?

Why does my shell script choke on whitespace or other special characters?


Oracle VM Vitualbox - Extend centos root file system


Bash shadow a command - function with same name as command

Running an executable in PATH with the same name as an existing function


Random errors thrown by Bash shell: cannot open named pipe

bash: echo: write error: Interrupted system call


SSH login without password and without keys

How to allow unauthenticated logins over ssh on FreeBSD?


How to print all lines after a match up to the end of the file?


how to remove blank text file from folder?

How to check if file is empty or it has only blank characters?


What's wrong with putting do on the same line as for?

What is the purpose of the "do" keyword in Bash for loops?


is it safe to delete ~/home/{User}/.cache/


Why unix mv program doesn't need -R (recursive) option for directories but cp does need it?


Is there a way to restore an uninstalled executable from bin?

Unix/Linux undelete/recover deleted files


username is appearing as root instead of a user who logged in?

`who am i` after `su` not showing new user id?


SCP copy through SSH not working - permission denied and stdin is not a tty

Transferring Files SSH SCP Error Message: 'Stdin: is not a tty'


Find all the filenames in this directory that do not contain 'a' 'b' or 'c' in their name

Why does `ls -d *[!e]*` display all files instead of omitting all files that contain an e?


How does a program know what to read in a pipeline?


In what format does piped output get sent and received from one command/program to another?


Remove adjacent lines that match pattern


Call `type` on a command that's self-aliased


How to perform chroot with Linux namespaces?

per process private file system mount points


Expect script is returning errors when spawning bash script. Why?

Why am I getting "line 1: $' :\r': command not found"?


Why does cpuinfo show only 2 processors?


can not set user write permissions to file in SMB mounted directory

Allow write access for regular user on CIFS share


How to copy file to another user (have password, no root)?

Move file to another user's home directory (without sudo)?


How can I count the number of files in a directory and delete the oldest if the number exceeds 5

How can I get a count of files in a directory using the command line?


SH/BASH: Store Command Parameter with Whitespace in Variable

How can we run a command stored in a variable?


Replace environment variables in a file with their actual values?


How to properly quote variables, which are then no longer considered if omitted

Using shell variables for command options


Why are ctrl-m and return keys the same \r char?

Question about behavior of control key shortcuts


Why one application is shown several times in htop?

Why does `htop` show more process than `ps`


Problem with sending Unix mail from home (because of Spamhaus block list?)

Simplest way to send one-line mail out via command line using gmail?


Is there a command-line tool for converting html files to pdf?


More than 7 hours for 150GiB, is it normal?


Assign result of a command to variables, but don't wait for the command to finish

How to assign environment variables in parallel in bash


`ls -d */` is not working on one specific directory

Why would the command "ls *" generate an error about invalid options?


Dash in folder name prevents me from setting environment variables correctly?

Why does my shell script choke on whitespace or other special characters?


Why grep --include with curly braces fail in subshell?


Root cannot stat: permission denied. But non-superuser can?

Why does root get Permission denied when accessing FUSE directory?


tput in a cron job does not output bolded text

tput: No value for $TERM and no -T specified


How to write to terminal device stdin of running process from a different terminal without any prior preparation?


What is the difference between test, [, and [[ in terms of binary vs. builtin?

How to distinguish between builtin and external util? (e.g. echo)


What is mean "x" in second field of /etc/shadow file

In /etc/group what is the meaning of the second field?


What does eno mean in network interface name 'eno16777736' for CentOS 7 or RHEL 7?


Exit out of "all levels" of SSH connection?

exit out of all SSH connections in one command and close PuTTY


How to get auto complete to work on aliases

How do I get bash completion for command aliases?


get number files and folders under a given folder

How to use wc and piping to find how many files and directories are in a certain directory?


Please explain this shell script snippet with an rm command

What does '>/dev/null 2>&1' mean in this article of crontab basics?


How can I set up an external HDD that functions just like a shareable flash drive?

How to make an ext4 formatted usb drive with full RW permissions for any linux machine?


Shell redirection: <<<'foo' vs <(echo 'foo')

What are the shell's control and redirection operators?


Linux way to get Summation of elements on right

Sum the values in a column except the header


How can I list ONLY open ports in a range with nc

How to filter the success message when using nc port scan


How to redirect output to a file from within cron?


Command for "wait for the job to finish and then begin another job"?

Basic job control: stop a job, add a job onto the stack, and `fg`


A command to know if some file are "only" an hard link and "not" a symlink

Determining if a file is a hard link or symbolic link?


unix shell script - extracting result from two .txt files (time operation)

Calculate Difference In Time Over Several Days


Separate Network Traffic on Two Network Interfaces


How do I embed a JPG thumbnail to a ogg/opus audio file with a script?

Add album-art cover to mp3/ogg file from command-line in batch mode?


How to efficiently track .bashrc (and similar) with git?


Replace text using sed and also add single quote to it


Sort and count number of occurrence of lines


To find max occurring letter in a given word

Number of occurences of letters in a word?


Why did I get `[three: command not found` from my Bash script? What to do about it?

Brackets in if condition: why am I getting syntax errors without whitespace?


ls colors: why are some of my fonts black and others green in ls output


Completely defragmenting a FAT32 filesystem

A clever way to defragment a FAT filesystem?


IO wait time is higher than disk utilization. Isn't this impossible?

`dd` is running at full speed, but I only see 20% disk utilization. Why?


How can I make a bash counter script work when executing it from another script?

Which shell interpreter runs a script with no shebang?


Find and copy text from one file to another

How to delete whole text from the beginning of a line with a certain string


What is required by a process to set its uid to 0 (root)?


Force newlines with cat wildcard printing


how do you compare two folders and copy the difference to a third folder using a shell script

How do you compare two folders and copy the difference to a third folder?


How can we run a command stored in a variable?


What is the purpose of "~" in the command "sed 's~ ~~g'"?


Is a php file with SGID bit and read-only & execute a security problem?


No value for $TERM and no -T specified crontab exec

tput: No value for $TERM and no -T specified


Why does `cat`ing a file into itself erase it?


systemd doesn't detect dead daemon process

how does systemd determine service is stopped?


Grub - boot debian iso file from ntfs partition and install it


Why does POSIX require certain shell built-ins to have an external implementation?

What is the point of the `cd` external command?


How do I extract lines from one file containing a list of words from another file?

extract lines that match a list of words in another file


How can I find a package name which contains specific file?


What is different between piping and here-strings for the `read` builtin?

In bash, read after a pipe is not setting values


Failed to search for file: Failed to download gpg key for repo 'mariadb-main': Curl error (37)


How to list files and file sizes of a zip archive?

How to list files in a zip without extra information in command line


extract day of the month and hour of a given date format shell scripting


How do I view all of the entries in man?

How do you output a list of all man pages in a particular section?


Extracting last ten characters of a string (e.g., file name) inside a parameter expansion

Renaming a file in Bash using regular expressions


How to find specific file between specific date ranges in a directory and its subdirectories

How to list files that were changed in a certain range of time?


Pipe/redirect password into ssh for automatic login?

SSH login with clear text password as a parameter?


could not install git via apt-get in debian 10

A lot of missing dependencies when I try to install all software


finding a package and what version is in various distributions (stable release)

How can I find out in which distributions a package is available?


Adding timestamps to bash history on unix


Purpose of "!::=::\" `name=value pair` in `env` stdout

Strange environment variable !::=::\ in Cygwin


What is precisely the role of the '&' character in a bash/shell redirection?

What are the shell's control and redirection operators?


Adding Multiple IPs to One Network Interface

Raspberry Pi Jessie Wi-Fi doesn't work with multiple IPs on same network


What is the difference between the Bash operators [[ vs [ vs ( vs ((?


Check for non-empty string in the shell (instead of ! -z)

bash - True if the length of string is (non)zero?


How can I figure out which is my file manager system?

How to find out the default file manager in the terminal?


Force create nonexistent directory via vi or touch?


How to combine array items with string substitution?

How do I join an array of strings where each string has spaces?


History of commands run by user after logging into root

How to log commands within a "sudo su -"?


How can I delete a file which filename has non-printing characters


Why does my shell script choke on whitespace or other special characters?


Where can I find the official document on advanced cp command?

cp behaves weirdly when . (dot) or .. (dot dot) are the source directory


Why `kill %jobnumber` not working on stopped jobs?

Why can't I kill a SIGSTOP'd process with a SIGTERM, and where is the pending signal stored?


Conditional Git alias within zsh: "parse error: condition expected: cd"


Unable to empty a file despite sudo privileges

How to run a command that involves redirecting or piping with sudo?


Shortest one-line shell script to print all special characters

How to print all printable ASCII chars in CLI?


Why current directory doesn't change in makefile?


TAR 6 GB worth of files into separate 1.9 GB TAR files

How to create split tar archive in multiple stages to save space?


Problems in linux xterm/rxvt/console under SSH after migrating to UTF-8


Using SED to remove specific line in a conf file

How to replace a string with a string containing slash with sed?


Why is the path "//" valid any other combination results in "/"

How does Linux handle multiple consecutive path separators (/home////username///file)?


Using sed to find first and replace the first occurrence on a line rather than the last

Non-greedy match with SED regex (emulate perl's .*?)


scp prints some weird characters and doesn't copy files


How to output comma separated values using IFS="," in shell


Unicode characters seem to be chopped in xterm

XTerm only display part of some unicodes and Urxvt displays nothing


Ansible shell module not respecting command switch

My echo command doesn't accept switches (echo -n or echo -e)


Process Unicode files with BOM correctly with POSIX tools


Sed delete empty lines after a particular line number

How to delete blank lines starting from line 5


How to assign process to work on partial CPU's?

How can I set the processor affinity of a process on Linux?


How is * interpreted on bash command lines?


How can i use SED/AWK to move content of one file to a certain position in another

sed command to replace a string from one file with entire contents of another file