How to set umask so that directories to be `r-x` and files to be `---`

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


How linux know the type of the file it is dealing with?

File extensions and association with programs in linux


Can't start presentation on remote computer console session from an SSH session

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


sed command to find lines which are not of specific size


What are the specific naming conventions for variables in bash shell scripting language?

Are there naming conventions for variables in shell scripts?


Can a script be executable but not readable?


Is there way to sync the shell yank buffer and the clipboard?

Share the clipboard between bash and X11


What does the tilde (~) mean at the end of a filename?


Remove all the new lines in a text file using sed


Identify unique records on CSV based on specific columns

Remove lines based on duplicates within one column without sort


How can we make `time` apply to a pipeline or its component?


How to know which Linux and which version I am using

How do I identify which Linux distro is running?


Hidden password is being displayed when invoking the su command?

How do you keep the password hidden when invoked during the su command?


How to get permission for editing fstab file in debian


Very high CPU load, but nothing significant in top

Why load is high despite the fact that neither CPU or disk is overused


Why in bash {{a,b}.{c,d}} expands to {a.c} {a.d} {b.c} {b.d}

Why does "cat {foo}" not output foo, but "cat {foo,bar}" does?


Why does filename expansion not work in this example?

Why isn't this sudo mv operation with wildcard working?


How do you parse `lvrename [-A|--autobackup {y|n}] [-d|--debug] [-h|--help] [-t|--test] [-v|--verbose] [--version] [-f|--force] [--noudevsync]


Why can't I run GUI apps with sudo from crontab when I can with sudo: “No protocol specified”?

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


finding which program produces a log file

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


How to subtract const from the file in awk?

how to subtract a constant value from a data file?


Find in a text all words that appear 10 or more times

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


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


Using egrep to find matches in a file while piping output from a cat command

How to search multiple search patterns from a file with grep


How do I completely disable password ssh logins?

Disabling ssh password authentication does not work on my debian VPS


How to edit next line after pattern using sed?


Trouble with bash & variable command substitution

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


Temporary assignment before the command not working?

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


How to make NetworkManager add a DNS server at the top of /etc/resolv.conf?


Merging a column of sequential numbers in multiple .csv files into single .csv file

Re-number a list when a new entry is inserted


Using sed to find and change information in configuration file

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


Does this grep's regex `[c]ron` mean the same as `cron`?

grep - why do brackets in grep pattern remove the grep process from ps results?


Shell Script not working whenever I run it

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


How to scp through two intermediate servers to a third-hop server


how to cat an input file to an output file, adding a blank line between every two lines of the input file (double spacing)?

How can I double the newlines in an output stream


Raspbian, debian: Howto make find $SOURCE return all directories under $SOURCE without itself

Remove empty directory trees (removing as many directories as possible but no files)


Make ctrl-backspace different than ctrl-h

Bind C-i and TAB keys to different commands in terminal applications via .inputrc


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


Estimate the size of the extracted files before extraction a `tar.gz` archive?


Newly installed applications not appearing in various LXDE dialogs

How can I add applications to the lxpanel application launch bar via cli?


Linux shell script check command success

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


read first line of the file and compare it with a string in shell file

How to bulk convert all the file in a file system branch between Unix and Windows line break format?


Join multiple columns from multiple variables?


Can grep return true/false or are there alternative methods


Unable to add a new user to the sudo group

What is the best way to add a user to the sudoer group?


I have installed java and it is working, but when i try to retrieve Java home it shwing empty

How to set JAVA_HOME correctly on CentOS?


Way to automatically replace original file with output?

How can I make iconv replace the input file with the converted output?


What is the concept behind "tty" in linux?

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


How to find lines that have the same two fields and remove all but one of those lines

Removing lines from text file that contain string at beginning and string at end - and keep one


Find the exact match of the ID which is always located one line below pattern through grep


Nested piped grep results in a string saying "(standard input)"

How to run grep with multiple AND patterns?


Strategies for navigating directories quickly?

Quick directory navigation in the bash shell


How do I identify which Linux distro is running?


Why do shell globs omit dot files by default?

What is the setting in bash for globbing, to control whether * matches dot files


Change the end of multiple similar filenames

How to rename multiple files by removing the extension?


How can I reliably get the operating system's name?


Udev: running a shellscript that accesses an X display


How do I find out what hard disks are in the system?


Storing output of command in shell variable

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


In Bash, the `*` is no longer expanded before passing into a command?


How linux knows the name of my hardware?

where does lspci gather its information from?


How do I make certain services dependent on certain interfaces?

How to write a systemd service unit file so it waits until a specific interface is up before starting?


Pasting "Foo" into LXterminal in XFCE produces "0~Foo1~"

Copy-Paste in xfce4-terminal adds 0~ and 1~


Setup SSH public key for login without password

Why am I still getting a password prompt with ssh with public key authentication?


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


Complete view of where the PATH variable is set in bash


Find out if the OS is running in a virtual environment

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


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


How can I set desktop defaults for new users?

How do I set a user's default .bashrc file?


cleaner script to recursively replace a string in all directories and file names

Renaming Files and Directories Recursively using rename/find


passing all the contents of a file as keywords after grep command


How are file types known if not from file suffix?


How can I remove all comments from a file?


What do you explain my issue with if I can send an MTU packet of this size?

Some websites load while others load forever in Linux Mint 18


Obtain filepath of directories containing a particular filetype in alphabetical/numerical order

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


Print lines between (and excluding) two patterns


How to allocate a process specific amount of CPU power?

How to limit a process to one CPU core in Linux?


Searching a keyword in multiple pdf files


sed - Print lines matched by a pattern range if one line matches a condition

Search for a string and print everything before and after within a range


How to find free disk space and analyze disk usage?

How to understand what's taking up disk space?


How to replace regex in all files that match this regex


Spaces in variable assignments in shell scripts


What are the shell's control and redirection operators?


I want to search a pattern from one file in another

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


How can I delete all characters falling under /* .... */ including /* & */?


An init-script does not get called on shutdown


rsync: failed to set permissions on "/path/to/file.txt": Operation not permitted (1)

"rsync: failed to set permissions on ..." error with rsync -a or -p option


how to use sed command to replace everything before second occurrence?


How to execute su in the middle of a shell script and continue the rest of the script?


Why is the 'sudo' password different than the 'su root' password


Fedora command-line installation proposals

How to implement package install suggestion on Debian?


gnuplot shell variable substitution and arrays


What is the difference between procfs and sysfs?


what is the meaning of the '%' appeared at the end of Unix command output

Why ZSH ends a line with a highlighted percent symbol?


sed - Use file1 to find replacements contained in file2 for lines from file3

Replace strings in a file based on a list of strings and a list of corresponding replacements


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


Output to stdout and at the same time grep into a file


Bring Debian to second Position in the GRUB Menu at startup


What information about a process is retrievable after it is terminated?

Finding command execution time in hindsight


How to easily build your own Linux Distro?


How to get user in systemd unit who caused an event

How to return the currently active user/session on a graphical Linux desktop session?


How tied are Linux installations to hardware?

Installing Linux on hard disk that will be used by another computer with different hardware


How to recover files I deleted now by running rm *?


Proper escape sequence for a non-standard file name

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


why is `reset` so much slower than `tput reset`?

Why does the `reset` command include a delay?


How to open a process from terminal without becoming child process?


Recommendations on a single dedicated app GUI for Debian

Debian based system, only one gui program, nothing else


Print a message a given number of times, right after system boot (init) in a GUI-less system

How do I start a Cron job 1 min after @reboot?


How do I echo a line with linebreak at the end at window border?

How do I columnate a list of items with minimal width?


Is it possible to rename a Unix user account?


New Tmux Panes go to the same directory as the current pane; new tmux windows go to home directory?

How to create a new window on the current directory in tmux?


What is the difference between DISPLAY :0 and :0.0?


How to execute same command "X" multiple times with a time delay of some number of seconds?

Repeat a Unix command every x seconds forever


Where can I find cpu temperature and frequency without any specific command?

How to get core temperature of haswell i7 cores in i3status


Difference between process in background and daemon

What's the difference between running a program as a daemon and forking it into background with '&'?


How can I reproduce commands run on one machine on another machine?


ls *.* gives: "*.*: No such file or directory" message

Cannot expand asterisk without proper permission


How do I use which(1) with the system's default $PATH?


Do I need to wipe and reinstall after possible hacker attack

What should I check after an unauthorized access?


How to safely replace a not-yet-failed disk in a Linux RAID5 array?


Hard links versus symbolic links: which one is faster / smaller?


Current IP address as visible from the internet?

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


Compare two files and print unmatched lines

Outputting common lines from 2 files and uncommon lines from both the files in one output file


What is the meaning of ##* in shell script?


bash shell - how to do nested loop without "syntax error: operand expected"

In bash, is it possible to use an integer variable in a brace expansion


Why doesn't the owning group get the executable bit?

facl ignoring the "x" permission but only on files


Replace @@@ and NotApplicable string and redirect output to other file?

put tab before every output line on AIX/ksh


How to create gnome-terminal as a child process of my process

Run true multiple process instances of gnome-terminal


How i make this script execute every minute without cron?


Is it possible to write a script that run su or sudo command without typing password?

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


Is `argv [0]` of `execve()` required to be the same as the basename component of the `pathname` argument?


Bash - Find - move files bigger than certain size


Run an application at each system boot in Arch Linux

How to add StartUp application in Arch Linux


How can I kill a <defunct> process whose parent is init?


Why the grep result depends on folder path?

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


How to recover the data that has possibly overwriten by the installation of another system?


Why does Linux use SCSI drivers for non-SCSI devices?

Why do my SATA devices show up under /proc/scsi/scsi?


Why are tcpdump packets being dropped by interface?


How can I use command expansion on `\{\}` in `find -exec`?


Why does a for-loop not require explicitly specifying the set of values of the loop variable?

Bash "for" loop without a "in foo bar..." part


Print lines between (and including) two patterns


Difference between including / at the end of a directory path and and omitting it

When should I use a trailing slash on a directory?


How do i create a function to test if the input contains any character?

bash: syntax error near unexpected token `}'


Why does my .bash_history contain duplicate segments?

Bash history: "ignoredups" and "erasedups" setting conflict with common history across sessions


Hide directory listing? chmod 730 /home/share?

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


How do I deal with directories that have spaces in their names from `find`?

Looping through files with spaces in the names?


Can ssh (agent) work with two separate identities?

How to use ssh-agent with multiple (valid) keys and yet choose which one to use?


How does this bash alias to repeat the last command as sudo work?


alternative to `tail -f <filename>` allowing printing continuous stream from multiple files in multiple folders under the same parent folder

How to tail multiple files using tail -0f in Linux/AIX


How to change the forgotten root password?


Why doesn't bash !! work non-interactively?

History substitution fails when implemented in shell script


Why do shells implement their own "echo" commands internally?


Is it possible to change the inode of a file. What are the different conditions when the inode of a file can be changed?

Why do files sometimes change but not the inode or vice versa?


What does free -m shows and how to explain it?


How to grep inverted not showing x lines before/after?

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


ls: cannot access nav.php: Structure needs cleaning

Cannot remove file: "Structure needs cleaning"


Pass all lines in a file as single space separated argument

Passing arguments from a file to a bash script


Grep the lines between the occurrence of the same pattern

Split file into multiple files based on pattern


Read columns from file, then column into an exsisting csv file


How to remove the functions displayed by set command?

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


What does Linux accent-grave command do?

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


Deleting a file that has been loaded as a shared library by some process

How to upgrade shared library without crash?


print difference line number and column number for tab separeated files in linux

compare two files ignoring 1st column and print line number


Appending word at the end of line with sed

How to add text to end of line when pattern is matched?


list the amount of blocks used by your home directory and everything under it

How do I get the size of a directory on the command line?


Can I get the exit code from a sub shell launched with $(command)?

How is the return status of a variable assignment determined?


Keyboard shortcut keys with no scancode?


Environment variables over ssh block in shell script

View remote value of $PATH inside shell script


Change name of all PNG files in directory recursively

Bash rename 360 000 files using find -exec


The scancode shown by dmesg is different from that from showkey

Capturing key input from events device and mapping it (toggle TouchPad key is unmapped)


How to replace the last octet of a valid network address with the number 2

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


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


Why does the value of BASH_SUBSHELL not change while the value of SHLVL changes?

Is a sub-shell the same thing as a child-shell


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


Directive 'StrictModes' is not allowed within a Match block

enable access via ssh-key without using ~/ssh/authorized_keys


Evaluate command stored in Environment variable


Make new column at each occurence of a specific row value using awk

text processing rows to columns for a block


Force fsck at boot time on the root file system (prior to mounting file systems, without Single-User mode)

How to automatically force fsck disks after crash in `systemd`?


Insert character at the beginning of specific lines


Convert all text from uppercase to lowercase and vice versa?


What are the advantages / disadvantages Linux file hierarchy has compared to other OSs?

What are the advantages of the Unix file system structure


Making zsh default shell without root access

Changing the default shell without chsh or administrator privileges


What does the command "sudo mv home/* *" do?

What does `mv ./*` without specifying destination do?


How do I match a string with symbols in a grep-kind of way?

How can I grep for a string containing regex metacharacters like $ and '?


AWK: Nested Conditional Subset of Rows without Headers


bash - True if the length of string is (non)zero?


Configure the OOM to avoid having the system grind to a halt

Is it possible to trigger OOM-killer on forced swapping?


How to get the pid of the last executed command in shell script?


CentOS 6 how to clear machine ID for a template?


How to read one filesystem from a whole disk image file?


Linux network stops when transferring files

How To Diagnose Faulty (onboard) Network Adapter


Execute snippet of code when key is pressed

How to catch keystrokes in Linux environment


Every package "has no installation candidate"


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


How do I log out/disconnect from SSH after starting a process with output to keep it running?

Keep processes running after SSH session disconnects


What are the specific naming conventions for variables in bash shell scripting language?


Minimum file permissions to delete a file


What's the difference of the Userland vs the Kernel?

What is difference between User space and Kernel space?


is there a way to keep a session alive even when logging out?

How can I run a command which will survive terminal close?


How hide the grub 2 start up screen in debian during bootup?

Prevent GRUB from showing up by default?


Sending attachments with mailx and uuencode

What is the MIME equivalent of uuencode for sendmail?


Why there are multiple folders for executable files in Linux?


Where does Linux set the default values for SHMMAX?


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


Where to put bash configuration for newly created users?

How can I set desktop defaults for new users?


Shell script by one user to copy a file into directory owned by different user

Move file to another user's home directory (without sudo)?


How to redirect command output and error to two different files?

What are the shell's control and redirection operators?


How can I remove certain string from file name?


find words with all vowels in order from a file


Append file extension on names of multiple files


Restricting CPU memory usage for services to prevent a crash

Limit memory usage for a single Linux process


After changing all file permissions to 000, how to change it back to normal?

How can I change all of the contents inside of directory to what the default file ownership and permissions are?


how to glob every hidden file except current and parent directory

How do you move all files (including hidden) from one directory to another?


In bash, how can I echo the variable value, not the variable name?


How do I copy a file from a remote system to local?

How to copy a file from a remote server to a local machine?


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


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


Do I need to quote command substitutions when assigning their output to a variable?


How do I redirect command output to a file?


Perl one liner working with >> but not >

Why does the command shuf file > file leave an empty file, but similar commands do not?


Methods to saving system configuration files


What is the scope of environment variables defined in ~/.bashrc?

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


How to kill script run through SSH when the local bash script is killed

Kill process spawned by ssh when ssh dies


Cannot wget a direct link - received 403 Forbidden

why would curl and wget result in a 403 forbidden?


How is printing a binary in my terminal changing the character mapping?

What is the right way to consistently mangle bash terminal?


Need absolute path for each line from a text file using shell script


Why when I open my files in ubuntu 16.04, are hidden files always displayed?

Why every time I open the ubuntu file manager, are the hidden files displayed?


Using SSH folders as a directory for my local system?


Installing Debian on Kaby Lake machine: difficulties with X.org


"Friendly" terminal color names in shell scripts?


sed: print only first occurence of a pattern match

How to select first occurrence between two patterns including them


Problem using find with filenames containing spaces

Why is looping over find's output bad practice?


Can I restrict a user to use special programs?


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


Can't execute a file with execute permission bit set

.sh file cannot be executed without explicitly calling sh


How do I permanently add to $PATH for all users?

Add a path in $PATH globally for every user


Regex and patterns on a ksh command line


How can I get the list packages I installed on my system?

List packages on an apt based system by installation date


Building from source on linux - mess in installed packages

Get list of required libraries when installing something from source


I cannot install new packages: "Could not get lock /var/lib/dpkg/lock"


Environment variables are not passed to scripts that are run later in the existing shell while running on crontab

Environment variables are not passed to sub scripts while running on crontab


Fan control on Lenovo Thinkpad Edge S430 and Ubuntu 13.04

How to control thinkpad_acpi via procfs, RHEL 6.4


Variable inherited in the subshell without exporting in the main shell

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


Convince grep to output all lines, not just those with matches


Copying and pasting specific file types in folders and subfolders

How can I move files by type recursively from a directory and its sub-directories to another directory?


Given a kernel ATA exception, how to determine which physical disk is affected?

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


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


What's the difference between du and df?

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


Does Linux use original Unix code or do they share the idea?


"ls" is giving a "Permission denied" error even though it worked?

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


Why is df missing 500MB of available space?


cycle through one command's output and use in another command


How to access a private network behind a router? Can't port forward


What's the difference of get command output using`command`and $(command) in Shell?

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


How to use command line arguments in a shell script

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


Navigate to a directory from a favorites list

Quick directory navigation in the bash shell


PDOException: SQLSTATE[HY000]: General error: 23 Out of resources when opening file xxxx.MYD' (Errcode: 24)


How can I run this python script on all html files under a directory?

Running command on multiple files within multiple directories


Does the untarred folder overwrites or appends the contents of the original folder?

Why doesn't tar ask before overwriting existing files?


bash-like last command in history using up-down arrow keys in zsh

How can I search history with text already entered at the prompt in zsh?


Keep only the lines containing exact number of delimiters

Removal of lines with no more or fewer than 'N' fields?


Deleting a file after X days does not work

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


Setting persistent environment variable in CentOS 7 issue

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


How can I copy the output of a command in the terminal to my clipboard?


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


Changing Shell to /bin/bash without root access via file

Making zsh default shell without root access


files list file for package 'gucharmap' is missing final newline

Can't install/uninstall packages in Debian


In `dmesg | head`, (how) is dmesg being killed after 10 lines of output?

What makes a Unix process die with Broken pipe?


Why is "nobody" called the "most privileged user after root"?


Workaround for missing rm -I option on OSX?


How do I remove a . from the start of a Bash string and write the result to a variable?


Numeric operators: if [[ "$#" -ne 1 ]] always outputs true, whereas -- echo "$#" -- outputs 1

Why is $1 in a function not printing the script's first argument?


How does bash print to the screen if not with a framebuffer?

How do keyboard input and text output work?


An echo operation includes some piece of text it should not include


What is the difference between a directory name that ends with a slash and one that does not?


Which access rights can't the superuser violate?


My ssh key doesn't work, permissions look good

Why am I still getting a password prompt with ssh with public key authentication?


Why is subshell created by background control operator (&) not displayed under pstree


How to sort a file by a column which is a mix of numeric, alphabet and punctuation characters?


Bold and Underline using echo with email

How do I send HTML email using linux 'mail' command?


opening multiple tabs in firefox using a one-liner bash script

Difference between executing multiple commands with && and ;


Are there some signals that you cannot override their default signal handler?


How to pass a parameter with space in nohup?

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


Shell Syntax: How to correctly use \ to break lines?

Where are bash line continuations after && and || documented?


What is the difference between man and --help?

Why do some commands have man pages and other commands use --help?


moving free space before other partition (to resize the root part.)

Move free space from end of the drive to first partition with gparted


Is there any ways I can download Google Chrome 32 bit deb file for Ubuntu?


Is there a way to find self's dynamic public ip address using cli in Debian?

Get the external IP address in shell without dig in 2016?


How can I quickly check exactly how many columns my terminal has?

How do I find number of vertical lines available in the terminal?


Commands pasted into bash not recorded in history

Why is bash not storing commands that start with spaces?


Where to view error log for already finished tar archive command?

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


Why can't I access a directory even though I'm in the owner group?

Cannot access a directory with permissions drw-rw-r--


What is the first chmod octal digit in a four-digit value for?


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


Getting verbose feedback for systemctl commands

After upgrade to Jessie, service control doesn't return result


How to set title of Terminal in Linux Mint 18

GNOME 3.14+ launch new gnome-terminal and set title


How do I add a custom command to the bash?

Where should a local executable be placed?


Create tar archive of a directory, except for hidden files?


How to merge two text files into one file without using cat or sed

How to merge two files in corresponding row?


Delete files if number exceeds 30 in number for different files in same directory


Log from a specific line to another specific line

Print lines between (and including) two patterns


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


Making zsh default shell without root access


Handling names with leading dash in bash shell

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


Prevent sudo user access to specific folder and files


How can I redirect matching lines to a file, and non-matching lines to a different file?


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


How to run a shell script on 10 hosts simultaneously?

Automatically run commands over SSH on many servers


How to change certain word in certain line in a file

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


Linux init script what does 0<&- &> achieve


suid bit in SuSE has no effect through system()

Setuid bit seems to have no effect on bash


Bash ping script file for checking host availability


Export path with space in directory name

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


Why does dd from /dev/urandom stops early?

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


If I cancel when prompted for my Git password, I can no longer see anything I type, until I log back in

bind -x leaves terminal in a state resembling ^V


Using cURL command-line tool on Mac, how does one fetch stock data which comes back *without* commas?

Using the cURL command, how does one fetch stock data which comes back *without* commas and spaces?


running script at specific times without using cron

Repeat a Unix command every x seconds forever


remove a portion of a line contained within two different types of separator / delimiters

sed one-liner to delete everything between a pair of brackets?


Installing Ubuntu/Debian packages on Arch

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


Easy way to change compression level of a zip file

Compress zip files with higher compression


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


How to insert comment at specific variable line number by sed command?

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


How display output command and pipe it to next command?

Output to stdout and at the same time grep into a file


How do you interact with a file named "!!"?

How to properly escape exclamation points in bash?


One liner to ssh into a server, specifying an intermediary to tunnel through

How do I connect to a pc through another pc using ssh


Running command on server, but have the server read/write local files

How to execute a remote command and pass in local file as input?


Why environment variable substitution does not work in bash in this case?

Why doesn't bash expand this variable when I prefix a command with a "one time variable assignment"


How to rename multiple folders at once to remove certain characters?


directory size inconsistent between "du *" and "du file"


How to remove junk characters from the file generated by script command in linux

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


Split the files on a directory and move them to another newly created directory

How to move 100 files from a folder containing thousands?


How to start remote command line session?

Keep processes running after SSH session disconnects


How to return 0 if a pattern is matched from a file?

Can grep return true/false or are there alternative methods


How to use `which` on an aliased command?


how to find a file extension with multiple dots


What/when could possibly break if I don't include \[\] around the color code in bash script?


How to set shell to wrap words for long commands?


ERROR: no tty present and no askpass program specified ; TTY=unknown ; PWD=/ ; USER=root ;

How to disable requiretty for a single command in sudoers?


Unable to assign output of command to a variable

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


How to mass rename files with ill-formed numbering?


how to redirect output to multiple log files


Why is echo $SHELL always showing /bin/bash?


Why the default user of Debian is not in sudoer list by default?

Why is sudo not installed by default in Debian?


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


"No such file or directory" as error for wrong architecture

Getting "Not found" message when running a 32-bit binary on a 64-bit system


What is the purpose/benefit of putting "./" at the begining of a path?

What is the difference between "du -sh *" and "du -sh ./*"?


Shift-arrow not working in emacs within tmux


A Tool to measure onscreen drawn rectangle?

A tool that let's you draw rectange on screen, gives dimensions + X-Y?


How to highlight entire line on matching a word within the line in egrep?

How to Tail -f output with colors using only Awk and show the rest of the output?


Delete white spaces after certain character


How to change file names in a directory to new names contained in a file?

rename a list of files according to a text file


Is it possible to use grep to pick up only full words?


simple bash while loop creates an unwanted file named 0


Preserve spacing and newline characters while using 'subshell' method

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


bashrc PS1 : user prompt won't clear entire text

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


SSH into multiple servers executing multiple commands

Automatically run commands over SSH on many servers


Any bash magic to reference the previously typed parameter?

How to repeat currently typed in parameter on bash console?


How can I use the find command to list all the file types in a directory and all subdirectories?

recursive statistics on file types in directory?


How to view users logged in since last 5 minutes in linux command line?

display users that logged in since a date using last


Script working manually but not in cron - not calculating var?

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


A process to check if other processes are running?

Bash way to check if a process is already running in the background (and skip re-execution based on that)?


Specify which interpreter to use at command line

How do I *reliably* and *simply* get the current shell interpreter name?


How to forward X over SSH to run graphics applications remotely?


Native speech recognition software for Linux

Is there any decent speech recognition software for Linux?


Deleting LARGE number of files (exec, loops..)

Efficiently delete large directory containing thousands of files


How to run grep with multiple AND patterns?


Linux disk wrong space left - 30GB disappeared

ext4: How to account for the filesystem space?


Could not boot from an external hard drive

No matter how many times I try re-installing Linux Mint, I get a GRUB error. How do I fix it?


Is there a way to add a locale with the ISO-8859-1 character encoding?

How do I install the cs_CZ.ISO8859-2 locale on Ubuntu 12.04


alias for a command using !! to recall the last command


Letters tty terminal text mode are very small in debian. How to increase?

Can I change the font of the text-mode console?


Dynamic configuration of monitors (Debian, Intel i915)

A tool for automatically applying RandR configuration when external display is plugged in


When printing a variable that contains newlines, why is the last newline stripped?

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


Extract Values from HTML via HTML parser

Extract Values from simple html file via grep/awk


Where is the script for alias command in Linux?


Why do Linux command line scripts use '-' and '--' as a parameter prefix?

Single dashes `-` for single-character options, but double dashes `--` for words?


Show output only if both words match using grep

How to run grep with multiple AND patterns?


Invisible prompt after global redirection of stderr to /dev/null


find -exec doesn't do what find output suggests

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


SSD seems full, but file system says otherwise

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


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


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


How can I find out which package installed a particular executable?


How to find out the reason a command/code was executed on Linux?


What is equivalent to Mac's purge in Linux?

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


How can I tell If a file is NTFS encrypted?

Use Linux to read contents of Windows encrypted folder


How to echo from specific line of a file to another specific line


What is the difference between filename=${1:-/etc/hosts} and filename=/etc/hosts?


Terminal sometimes fails to find executables on local directory

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


How does the "tail" command's "-f" parameter work?


How to backup all my data from a server?


What is the difference between "all", "default" and "eth*" in /proc/sys/net/ipv[46]/conf/?


Why does using array and for loop breaks line into 2?


Recursive (nested) grep gives "invalid character range" error


How to change date/time format Linux gnome?

Is there a way to adjust the formatting of the date/time in the GNOME 3 login screen and desktop?


Installing Apache HTTPD RPM on an offline RHEL 7.2 server

How to use yum to get all RPMs required, for offline use?


Why does my tar file extraction to destination throw an error?

How do I use gunzip and tar to extract my tar.gz file to the specific directory I want?


Understanding UNIX permissions and file types


how to format the details in a text file using unix

command to layout tab separated list nicely


Getting "permission denied" when trying to append text onto a file using sudo

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


In a subdirectory, how do I delete all files that are 0 bytes in size?


Protecting against "-" symbol in filenames

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


I'd like to make the ultimate bootable USB with several distributions on it. How?


Getting hard disk drive serial number at the terminal - not the WWN


Debian 8 / kernel 4.9.0-0.bpo.2-amd64 failing on boot sometimes

A start job is running for dev-disk by \x2duuid : error take 1min 30s to boot Debian


sed does not replace a string in a file as expected

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


How to do to make Evince open multiple pdf document in tabs and not separately?

Is there a pdf viewer capable of opening multiple documents in the same window?


:(){:|:&};: How does this BASH fork bomb work in detail?


alias for date-stamping to create a directory(in .bashrc)


Conditionally include a pipe stage in a bash script


Why is it not required to double quote `$bar` in assignment `foo=$bar`?

Are quotes needed for local variable assignment?


Disk still full after deleting some files


'find exec' once with all found names as arguments

Why is find not accepting '-exec cp {} dir +'?


Kali wireless can't detect available wifi connections


Remote desktop connection to linux from windows

Accessing Linux server from Windows machine in graphical mode via SSH


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


How to kill a process which can't be killed without rebooting?


Why isn't user being added to sudoers list?

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


Why do echo $$, echo $(echo $$) and (echo $$) reveal the same PID?


Bash: How to change system-wide proxy settings

Set Ubuntu System Proxy Settings without Restart from commandline


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


Order of commands executed and redirection

What are the shell's control and redirection operators?


Why the shell does not terminate when pressing Ctrl+C on the terminal?


Trying to find the index of an entry in a list


Remove all the lines before the first line that contains a match?

Remove lines from file up to a pattern, unless the pattern doesn't exist


Arrays with spaces: do groupinstalls from script

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


How can I add my program to system program list (Ubuntu 14.04)?

How can I make a program executable from everywhere


How do I boot from ISO file stored on hard disk?


How can I get rid of all script blocks in html files?

Script to remove certain span elements from an HTML file


How do I replace this pattern with a newline inside it?

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


What is wrong with my terminal? Backspace won't delete everything on the terminal line


How to list .txt files with specific content?


How to create an encrypted partition and how does Linux then decrypt it

Creating an encrypted partition to store private keys


How to write contents of a file to new file removing repeated lines

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


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

Print lines between (and excluding) two patterns


Grub seems to don't load its config from grub.cfg

How to manually manage grub.cfg for Grub2?


SSH server accepts key ONLY if user is logged in (on server)

ssh public key auth: first login still asks for a password


How are setuid, suid, sudo, and su all related?

Understanding UNIX permissions and file types


add space 5 times at the beginning of each line in a text file


How do I find files older than 1 days using mtime?

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


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


How do I execute command to avoid interference from the shell

Use system command instead of Bash builtin without specifying the full path


shell scripting if statement doesn't work


How to plan a task to run after another already running task in bash?


Is there any command that mimics the double tab list in bash?

How to output string completions to stdout?


Is there any way to hide kernel threads from ps command results?

Can ps display only non kernel processes on Linux?


script for automount, using if statement. cannot got the result

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


Why do Linux world use the term i386 instead of x86?

32-bit vs 64-bit vs ARM in regards to programs and OSes


Can I mask a program on the OS from the command line?

How to make a process invisible to other users?


Live resize of root partition in case of "LUKS on LVM"

Extend a LUKS encrypted partition to fill disk


How to connect to my personal computer with my router's public ip?

ssh port forward to access my home machine from anywhere


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

Text processing - join every two lines with commas


How to stop `apt-get` complaining about unmet dependencies when I manually install the software from source?

How to make apt recognize an installed tar package?


Exclude sub-directories from tree output

How do we specify multiple ignore patterns for `tree` command?


HDD indicator blinks when I run out of memory, but I have no swap configured

How can my HDD swap without a swap partition?


Block specific application with iptables


How to copy a file within its original directory, most easily?

Quick way to include a directory path when calling mv?


Download a file from a remote machine while SSH'd into it?

Copy a file back to local system with ssh


Comparing integers: arithmetic expression or conditional expression


Why is learning command line imporatant?

Why, still in modern GUI-based Linux distros, is it common to use the command line?


How do I log into my Linux laptop if I have forgotten both the login and password?


How to add the logs to a crontab with time stamp

How to keep overwriting the contents of a file instead of appending to it


Difference between [ and [[ in if statements

What is the difference between [[ $a == z* ]] and [ $a == z* ]?


/dev/disk/ lists disks, why /dev/net/ doesn't list network interfaces?

Why are network interfaces not in /dev like other devices?


^@ spam in tty (but seems to be system-wide)


Can date format current time for GMT timezone?

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


Simple method for copying a file and preserving it's path?

Copy specific file type keeping the folder structure


Grep lines but let the first line through

How to grep a specific line _and_ the first line of a file?


Elegant way to construct a pipeline based on return value and not exit code?

How can I sit in on a stream without getting in the way, while capturing and testing it?


Determine whether TRIM commands are being sent


How to modify the permission of jar file exactly same as other machine jar file?

Knowing Privilege rights on a file in Linux


Understanding boolean operators in bash script


How to block all the network traffic from my running user

How to restrict internet access for a particular user on the lan using iptables in Linux


How can I configure zsh to let it explain to me where I can retrieve an executable instead of saying file not found?


Cannot write text in a file when using here-document

How do you use output redirection in combination with here-documents and cat?


How to copy files from one machine to another using ssh

Copy a file back to local system with ssh


xargs loop with input variable for use in multi-command


How to highlight a word in the output of "cat"?

Convince grep to output all lines, not just those with matches


How can I edit my bash script to account for whitespace entries?

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


How can I find files and then use xargs to move them?


What does the < (left chevron / triangle bracket) do?

What are the shell's control and redirection operators?


bash: syntax error near unexpected token `elif'

command not found and syntax error near unexpected token


"Missing" files on external USB drive in linux mint 17.3

"Input/output error" when accessing a directory


Listing packages in Yum that depend on another installed package


linux periodic system check script or utility


Redirect all output, including input prompts

How does ssh prompt for a password when all input and output is redirected?


How can I map the Caps Lock key to ShiftInsert on xubuntu


Remove last character from string captured with awk


Does cut return any fields if separator does not exist


No more disk space, nothing eating my disk. Why?

How can I diagnose and repair missing drive space?


Can we get compiler information from an elf binary?


Keyboard shortcut to paste selected text to SECONDARY clipboard


Tilda complains of bogus screen size at startup?

your screen size is bogus. Expect trouble


Is there any objective benefit to escape sequences over tput?


Simple name server alternative a la /etc/hosts

How to make a machine accessible from the LAN using its hostname


BTRFS: what system directories should have copy-on-write disabled?

Why would I want to disable Copy-On-Write while creating QEMU Images?


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


Command to print the number of *.pdf files in a chosen directory

What's the best way to count the number of files in a directory?


How to create a file and parent directories in one command?


read the files from the list present in the text file


Why does tar list multiple entries for some files?

Create tar archive of a directory, except for hidden files?


Appending a variable to different lines of a file in bash

What are the shell's control and redirection operators?


Change user id and group id ownership of files within a tarball?


Need to download package and all dependancies for armhf debian

Ways to update Ubuntu (debian-based distros) offline


How to add the only user on a Debian system back into the sudo group?

How to change the forgotten root password?


How to remove all files in a directory except one file in Solaris

Remove all files/directories except for one file


How to force script execution before shutdown or reboot is executed?

How to run a script with systemd right before shutdown?


How to count number of files in a directory that are over a certain file size

What's the most resource efficient way to count how many files are in a directory?


How to create user with only SSH permissions

How to restrict an SSH user to only allow SSH-tunneling?


Sed to replace string of 10 characters with 'XXXX '

How to find and replace using sed on records starting with Specific number


"E: Sub-process /usr/bin/dpkg returned an error code (1) " What does this mean?


Script to SSH to multiple Linux Server and execute a find command

Automatically run commands over SSH on many servers


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


How to allow non-root users to run certain programs (for example the KDE app store) without root

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


Using command line in Fedora to print/echo certain lines in a file

With the Linux "cat" command, how do I show only certain lines by number


SCP without password prompt using different username

How can I set up SSH on Linux to log in password-less?


Accidentally screwed up permissions big time -- what should I do?


In bash instead of creating new line changing the already made line

How to change the contents of a line on the terminal as opposed to writing a new one?


Send connections from minecraft port 25565 to another server

forward port from one IP to another IP in a local network


Count the number of occurences of every group of numbers in a line

Count number of occurrences of a pattern on same line


how to move many subfolders to parent directory?

How to move all files inside present subfolders up here


Using 'grep' to find lines that contain all of three specified characters in any order

How to run grep with multiple AND patterns?


Passing lines from the text file of a list of files to or as arguments

Execute a command once per line of piped input?


X11: disable Shift+NumpadN outputing N when NumLock is off to have Shift+NumpadHome

Change behaviour of numpad to dpad in GNOME 3


Iptables rules enabled for allowing icmp/ping for only specific IP address with RHEL7 OS not working

iptables drop all incoming ICMP requests except from one IP


queue-like behaviour for multiple one-core jobs on single machine?


How to set environment variable for BACI compiler and interpreter?


Unable to view or change file permissions

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


sed to replace a word from a file with the contents of another file?

Insert text from file inline after matching pattern in another file


What does it effectively mean when the same unit is specified in Wants and Before?

"before" and "want" for the same systemd service?


How can I loop over possible completions?

How to output string completions to stdout?


24gb files removed but no changes to the available space. What could have happened?

Free disk space from a JBoss log file which is still being written to


While read -r line, cannot access $line from within a if within this while loop

strings are missing after concatenating two or more variable string in bash


How to send a message in Minecraft before rebooting the server?


Running Custom commands in a Terminal Application

Execute command in remote active terminal


Does TTY always get used when we open any terminal?

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


How can I quickly return back to the last working directory?

How to go to the previous working directory in terminal?


What is the difference between $* and $@?


What does typing a single apostrophe do in terminal?


SCP Automation in production environment

Shell Script - how to scp into remote server and download files and protect password


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


Need to split a file into multiple files, but ensure the grouped data remains in same file

Splitting a file into multiple files based on 1st column value


How can one ensure bandwidth is not hijacked?

What can I use to monitor and log incoming/outgoing traffic to/from remote hosts?


How to slice a text file into several files of 100 lines each?

Split file into multiple small files, separate by the newline symbol


Symbolic link permissions don't change with chmod


What exactly happens when a built-in command is run in a shell?


How to build an equivalent of littlesnitch or zonealarm under linux?

Recommended reverse firewall applications for linux?


Why do you have to put ~/ before .bashrc when opening the .bashrc file?

What is a ~ (tilde) when used as a prefix to a path?


cd to the most recently created directory

Get the newest file from directory structure year/month/date/time


Troubleshooting joining a group in Mint in VirtualBox

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


How to check a process is running in which core?

Determining the particular processor on which a process is running


How the contents of a directory are impacted when a file system is mounted on that directory

Where do the files go if you mount a drive to a folder that already contains files?


connect remote host without password in linux


Bash script question - skip enter key press

Reading character by character with bash read


wc -c not working in a loop in the script

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


How to search and list files and folders with specific pattern?

How can I find a file whose name includes a given string, such as "abcde"?


How to provision software across multiple laptops

Is there a way to administrate multiple computers at the same time?


Understanding %CPU while running top command


Why doesn't ls -l show the time and or year for every file?

Why does "ls -all" show time for some files but only year for others?


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


How do I change the extension of multiple files?


Regex not matching file using `find` despite being valid

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


Changing Firefox's Open Containing Folder action

Set standard file browser for "open containing folder"


How do I find out what filesystem FUSE is using?

How to show the filesystem type via the terminal?


Given a debian package name, how do I get a URL to the latest .deb URL?

How to download packages from a command-line given repository?


Unexpected less gzip compression with -9


Replacing one column with another column in csv files

replace column of a csv file with column from another file


I can't install TP-LINK TL-WN821N v5 driver on kali kernel 4.9.0

Can't install TL-WN821N (V5) drivers on Kali


if condition with ssh exits while loop without completion

Using while loop to ssh to multiple servers


I deleted my home directory... can I recover it?


Proper automount on systemd Linux systems

Automount local drives on boot and hot-plug


one simple little "cd" doesn't work in script

cd in bash script without alias, function, source


Inappropriate used and available space in lvm and disk free


Installation of linux-image package fails


Why are sudo su and bash root script paths different?

Why are PATH variables different when running via sudo and su?


Looking for way to copy first line of text file to end of every line

How to append the first line at the end of each line of a file with Sed?


Print lines between (and including) two patterns


What is the difference between '.' and 'source' in shells?


Find of symbolic links point to the same target

How can I remove all symbolic links with a special target?


Print only the Nth line before each line that matches a pattern


How to automatically input ssh key password?

Shell Script for logging into a ssh server


driver is not used for Radeon HD 7770 ( running in Software Rendering Mode )


List directories, then files - with single command?

How to list files and directories with directories first


Adding user to secondary group not showing in id -Gn

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


Adding zero in front of small decimal places

How to show zero before decimal point in bc?


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


How to tell if tabs or spaces are being used in vim

Is there an equivalent to whitespace-mode in emacs for vim?


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


A quicker way to change owner/group recursively?

How to properly recursively chown files (including hidden dirs)


Why can't i delete file when i have the file's ownership?


Removing the warning message that pops up when using an at command

Why does `at` warn me that commands will be executed using /bin/sh? What if I want a different shell?


unable to login with the newly created user ( changed root directory permission to 0750)


How to access the second argument from the last command in the history ?


Execute a process always and continuosly in a single CPU Core

How to limit a process to one CPU core in Linux?


Unix/Linux undelete/recover deleted files


Does only the current release of OpenWRT receive security updates or do all releases on the Table Of Hardware?


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


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


Randomly select a proportion of files from a given directory


Inside a linked folder, doing "ls" to relative paths outside it shows the contents pointed by linked directory, not the source. Is this correct?

Understanding directory symlinks traversals and the parent directory


The result of "ls | wc -l" does not match the real number of files

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


How variables inside braces are evaluated


Bash script to add or subtract two numbers from user input

how can I add (subtract, etc.) two numbers with bash?


Setting path environment variable for desktop launchers

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


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


When I cat a pid file I get a %,why and what that means?

Why ZSH ends a line with a highlighted percent symbol?


How to show previous line to matching pattern with grep and not the matching line?

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


How to extract first and last lines in a file?

How to read first and last line from cat output?


Compare string in two files And Merge its Output


how can I find files based on different names and delete all them in one single line

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


monitor files (à la tail -f) in an entire directory (even new ones)


How to make NetworkManager add a DNS server at the top of /etc/resolv.conf?


Confusion about output lost in pipeline with perl


remove lines that contain a specific text in a file


How to give to a user ability like root with visudo?

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


What's meaning of the `d` and `t.` of the `drwxrwxrwt.` in linux?

What do the fields in ls -al output mean?


how bash loop only directory name excluding specific file?

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


How to extract logs between two time stamps


Renaming files to have lower case extensions with 'rename'


How to determine which desktop environment is installed from the shell?

How to detect the desktop environment in a bash script?


Is there a Linux command that does nothing, but never exits?

How to do nothing forever in an elegant way?


In which file should one put the PATH and LD_LIBRARY_PATH variables?

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


How to kill all processes owned by `user` on Centos 7?

Kill all process of particular user in Ubuntu?


How to make $((5/2)) deliver a floating point number?

Is it possible to get a decimal output from doing division in Bash?


localization of man pages on Linux (Ubuntu)


Is ';;' a chaining operator in Unix? How does it work?


Kali linux doesnt show new updates and upgrades


Delete lines containing the pattern and the line before

Delete range of lines above pattern with sed (or awk)


After editing both /.bashrc and /etc/bash.bashrc the path is not in the environment. Why?

What is the purpose of .bashrc and how does it work?


How to reorder /etc/resolv.conf at load time

How to make NetworkManager add a DNS server at the top of /etc/resolv.conf?


How to automate similar commands to multiple servers via SSH?

Automatically run commands over SSH on many servers


Sed giving error when taking input from command line

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


Run shell script when navigating to directory with cd

Execute bash scripts on entering a directory


How do I both output stdout and stderr and write them into a file?

How can I capture stdout/stderr in a file but still see it in my console?


Automatically allow user1 in group1 to edit file with owner user2 and group user2

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


How to grep multiple strings that starts with certain value


Different behaviors between find -exec and piping through xargs

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


What does the "@" (at) symbol mean on OSX ls?


Power on a Linux machine at specific time

Is there a way to auto turn-on Linux machine?


Enclosing vs. not enclosing a variable's value in quotes in bash


How to know file system of any medium like hard disk, CD/DVD, flash drive?

Find filesystem of an unmounted partition from a script


Notify-send not working when run from apache

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


`du -sh` reports different used size than `df -h`


what is meant by vi and emacs editing modes

What is meant by a shell is in "vi" mode or "emacs" mode?


Remove whitespace only between two characters { and } in file

How to remove all white spaces just between brackets [] using Unix tools?


Find files systemwide that are created within a date range

How to list files that were changed in a certain range of time?


How to cd into a directory with the name "-"?

How do you enter a directory that's name is only a minus?


/usr/ucb/cc: language optional software package not installed


Fix permissions in /usr/lib after chmod on dir


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

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


Find out exact installation time of CentOS

What is a distro-agnostic way determine the OS install date?


Possible to get RAID1, by simply adding HDD?


Is there a map of package names across the different package management systems?

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


Invalid package name due to Bash array dereference

What is the difference between [@] and [*] when referencing bash array values?


UNIX: How to extract date from a variable storing a UNIX DATE

Extract date from a variable in a different format


Add ssh user with minimum rights for backup

Adding a user who can only execute scripts remotely


How do I get the current bandwidth speed of an interface from the terminal?


How to make sed regex syntax work as python or javascript?

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


Trying to understand how TTYs and PTYs work in CentOS 6.5?

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


Is there a way to keep an app running after closing the terminal that calls it?

How can I close a terminal without killing its children (without running `screen` first)?


Route socks proxy traffic through wireless client

Output traffic on different interfaces based on destination port


Can a parameter expansion work inside another parameter expansion?

Can command substitution be nested in variable substitution?


Resize an existing LVM partition and add the space to another LVM partition


Does cron impose some limitations to types of commands and privilege of execution?


Why not display characters which I typed in tty?


How do I turn off redirection once I've turned it on?


The sum of % in the CPU column doesn't match the total CPU % row

Why does top report the incorrect CPU usage?


What is the difference between su - oracle and pbrun /bin/su - oracle

What is difference between pbrun and sudo command?


grep dates in a text file to less than 30 days old and move to a new file

How to grep a date lesser than a particular date in a file


card reading killing my battery, on macbook pro running Debian


Extracting two values from the output of a command

Extract two values from the output of a command


Question about global environment variables and fork() & exec()

what does it mean 'fork()' will copy address space of original process


What command would I use to find out how much total space my hard drive has left?

Tracking down where disk space has gone on Linux?


My flashplugin-nonfree (on Debian Stretch) is outdated... what to do?


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


If i install Elementary OS, will it automatically be added to the grub menu?

Installing Elementary OS - will it automatically be added to the Grub menu?


Shared sub-directory between multiple users

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


Getting "Not found" message when running a 32-bit binary on a 64-bit system


How to redirect STDIN of background process?


How to sort data by the numbers in third column?


Something confusing about "su -" and "su"


AIX 6.1 versus AIX 7.1 strange behaviour

[[ 0*10%300 ]] works on AIX 6.1 but not on AIX 7.1 (ksh)


non-root users can run passwd command as root, why can't they change password of root?

How do real and effective user IDs work?


Run a command before any terminal command

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


What's the best way to restore a deleted file from a package in debian?


Can I bind single keys in zsh when in vi normal mode?

Pasting from clipboard to vi-enabled zsh or bash shell


Can't install Linux Headers (Kali Linux)


bash adding a filename to an alias command


What is a suitable dual boot partitioning scheme (Debian and openSUSE Leap)


Devuan - how to install non-free contrib?

How can I add non-free network firmware to my Devuan install?


How do I sort an array with letters and numbers combined in bash?

How to create a function that can sort an array in bash?


Explain who command output in 2nd column


The wc -w command outputs incorrect answer

How do I count the number of occurrences of a word in a text file with the command line?


How to save command as well as output of that command to a file

How can I save the command and its execution output to file at the same time


How can I make a program executable from everywhere


How to search for a word in column header that fully matches the word not partially?


How to handle spaces in path names when variable contains multiple paths

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


Different PATH formats for .bash_profile


How can I reference the current directory of a script when sourcing it?


Use of quotes in GNU grep regular expressions


What is the meaning of "${name##*/}" in Shell


Will the buff cache in Linux affect physical memory, and you don't need to manually clean up the buff cache?

What is the buffers column in the output from free?


Using sed to remove digit separation commas enclosed in quotes and quotes itself from CSV?

Remove only the commas present within the double quotes


tmux - split panes and ssh to multiple servers via script

Can a bash script start tmux, split the screen horizontally 5 times and run watch -n1 tail -n5 in each?


Why is bash -c cutting off the end of my script?

Why does bash output data instead of executing, when a script is piped?


Understanding UNIX permissions and file types

What does the 'd' mean in ls -al results and what is that slot called?


Pass shell variable as a /pattern/ to awk


Capture console output from existing process(es) to file

How to change the output redirection of a running process?


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


Supply the same filename as argument to two commands

Run two commands on one argument (without scripting)


How can I find the number of instances of each text?

Count distinct values of a field in a file


How can subtract 2 floats which have been extracted from 2 other files with BASH

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


Bash - how to run a command after the previous finished?


How can I get my Linux distribution name and version using the command line ?

How can I get distribution name and version number in a simple shell script?


Disable gtk-application-prefer-dark-theme for single application

GTK - Enable/set dark theme on a per-application basis


How does one inspect the directory structure information of a unix/linux file?


How much arguments can I pass to command?

What defines the maximum size for a command single argument?


Can you set a file's ctime to min(ctime, mtime)


Naming conflict with File extension and Shebang in Linux?


zsh function: maximum nested function level reached

How can I create a function in zsh that calls an existing command with the same name?


Pipe blocks with the following sequence of commands


How can I delete a file which filename has non-printing characters


Extract creation date and modification time of file in SunOS?


What is the purpose of '/var/lib/dpkg/available' file in Ubuntu/Debian?


why the executing shell within cron job will take longer time than normal?

Is setting a higher nice level for a process an effective way to reduce its impact on system load/CPU time?


Bash Function Parameters - Spaces in Filename

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


Running shell commands from inside tmux is causing Gnome terminal to break <prefix> key


How to do locking a file from a shell script?

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


Deleting all files except a specific one?

Remove all files/directories except for one file


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


Awk compare 2 files, print match together with non match lines filled with 0


locale not found/setting locale failed - what should I do?


How to copy or restore OS via apt package-list?

How do I replicate installed package selections from one Debian system to another? (Debian Wheezy)


How to fetch all the even lines and odd lines from a file and save them into two different files such as Evenfile & Oddfile?

Print odd-numbered lines, print even-numbered lines


How can I get a list of packages that I have installed using apt-get?

Is there a command that outputs ONLY the packages explicitly installed by the user? (ubuntu/debian)


What happens if I don't use & at the end of a nohup command?

When do you need 'nohup' if you're already forking using '&'?


merge two files, first line from first file followed by first line from second file

How to interleave the lines of two or more files?


What is the difference between dev, media and mnt?

Mounting a device — role of /dev, /media and /mnt, and the mount command


What's the proper way to use a variable with spaces in part of a shell script command?

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


Print content between brackets in different lines

Multiline pattern match using sed, awk or grep


Loop through read only .zip data archive to extract line from .kml file within

Searching for a string on multiple zip files


Can't remove apostrophes from filenames in terminal

Why is 'ls' suddenly wrapping items with spaces in single quotes?


How can I automatically fetch dependencies when installing a Debian package?

How to install a deb file, by dpkg -i or by apt?


Grep a string from the same file in multiple .tar.gz files

How do I recursively grep through compressed archives?


On a OS X machine, how can remove a directory that has name "--crm"?

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


changing current directory from child process

Script to change current directory (cd, pwd)


mv : not found when executed from script that modifies PATH variable


exit ssh and still have a command running?

Keep processes running after SSH session disconnects


What does the -mtime option for find actually do?

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


Command run is not the one returned by the command `which`

Linux/bash does not execute the executable that "which" tells me


What is the relationship between bash and xterm?


Regex matching across multiple lines with 3 values

sed - Print lines matched by a pattern range if one line matches a condition


remove last two characters from each line


Remove leading characters in filename up to a certain pattern

Using rename to rename files and directories


passing filename with spaces to a shell script


Using echo -e in PS1 causes line break issues in shell

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


Are there any utilities to know where a file is physically present in the hdd?

View physical location of a file/directory on a hard disk


How can I simulate a ssh session on a client behind a NAT?


How to copy the files from remote unix server to local windows?

How to copy a file from a remote server to a local machine?


Locating kernel module from device node major, minor number

How to find the driver (module) associated with a device on Linux?


Reset background to transparent with tmux?


How to change the forgotten root password?


Where to place user created systemd unit files


bash script works but give errors: "[: too many arguments" and "8197: command not found"

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


How can bash aliases be configured to handle spaces in directory names?


curl wget - How to ignore the HTML Tag and headers

Is there a simple Bash tool which can quickly render basic HTML?


Create a file that's treated like a btrfs file system


Bash converting date in a csv file with awk or other linux tool (csvcut)


Resolving hostname to IP: what command is most likely to be available on any Linux flavor?

How to get remote host DNS address from a super-slim host (docker) without ping or bind-utils?


How to find similatrites between two files?


What is the difference between primary partition and logical partition in Linux?


Is `$(< file)` completely bash, or does `$(< file)` really depend on `cat`?

Understanding Bash's Read-a-File Command Substitution


Mint 18 will boot only to a black screen

I messed up bashrc codes and reboot the Linux mint to black screen


Can we enable Networking in single user mode of Linux?

linux + single user mode and set network


Why do I need a dedicated user for a service (my git service: gogs / gitea)?

What is the difference between user and service account?


How to display numbers in reverse order using seq(1)?


How to have back the command prompt after calling an application


Custom xkb layout in which one key creates two unicode code points


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


How would I change file permissions if the file name has a space in it in linux

How do I delete files with spaces in them in bash script?


Missing repository problem (404 Not Found)


How to find which application is creating a particular file in a path?

How to determine which process is creating a file?


What does a dot after the file permission bits mean?


As what user does a command end up executing?

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


Search for two sequential patterns with any number of characters in between using grep

Match two words that is on the same line


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


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


Why doesn't terminal show color schema once logged as root?


why bash increment: `n=0;((n++));` return error?

Why does a=0; let a++ return exit code 1?


How can you combine all lines that end with a backslash character?


How can I set desktop defaults for new users?


Is dd able to overwrite parts of a file?


Preserve formatting when command output is sent to a variable?

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


how to get the basename of complicated files


Test execution output of a command before a pipe

Get exit status of process that's piped to another


Piping the output of ls or tree to less loses colors?

How can I pipe colored tree result to less or more?


What does 301 in kernel version signify?


Do Ryzen 3 2200u laptops with Vega 3 work out of the box with major Linux distros?

Ryzen 3 2200u laptop linux compatibility


Explain this bash script: echo "${1##*.}"


How can I make iconv replace the input file with the converted output?


Executable exists for everything but bash & file manager

Getting "Not found" message when running a 32-bit binary on a 64-bit system


How to run a script as root and current user at the same time?


Get the parent directory of a given file

Say I have a file's path, how do I reference that file's directory from the command line?


How to record filesystem operations history?


How to control setuid, setgid, and sticky bits from chmod's numeric method?

Understanding UNIX permissions and file types


Navigating the file system: Difference between CD and PUSHD


How to add a line break inside a bash string?

How to add newlines into variables in bash script


Should I be concerned my free memory is so low or is the free memory in buffers/cache available for anything also?


Replacing words with special character in a file

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


How to use comparison operators in bash?

Comparing integers: arithmetic expression or conditional expression


Remove all .class files from folders in bash

Recursively delete all files with a given extension


Wpa_supplicant configuration file for open hidden network

What is the wpa_supplicant configuration file for a hidden network without password?


Where are user account passwords kept on Debian?


clear out all variables without closing terminal


sed - Print lines matched by a pattern range if one line matches a condition


How to set use tor DNS as the default DNS?


Why is the wild card character * so different between commands zip and rm?


What's the intended use case for COMPLETE_ALIASES in zsh?


tail files in a directory without file name and header


shell extension or program to transfer data from remote machine to local and vice versa


How to source a .csh file as well as open xilinx application in the terminal?

Error "syntax error near unexpected token `('?"


Get text between start pattern and end pattern based on pattern between start and end pattern


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


How to replace variables strings with special characters in sed

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


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


How do I find which process is causing a file to lose its permissions?

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


Difference between `/` and `//` directories

On what systems is //foo/bar different from /foo/bar?


ls output: group directory symlinks with directories

ls -l --group-directories-first (act on symlinks as well)


How to determine whether a file is duplicated but has a different name?


How do I run a command in a different tty?

Execute command in remote active terminal


How to install the latest version of Git on Ubuntu?

How can I update to a newer version of Git using apt-get?


GDiskDump or DD to show partition names?

List partition labels from the command line


How can I make an NTFS partition writable?

Can't access Windows drive: “Windows is hibernated, refused to mount”


playing a sound/notification in finch over ssh on my local machine


Cannot remove file: Read-only file system


Define function without name and immediately call it

How can I create a local function in my bashrc?


Shell Script for logging into a ssh server


How to find all the available packages (and executables) that can fulfill an "alternative"?

Finding all software packages in Debian that provide a particular alternative


Find out which process has data open on the hard drive that is no longer visible in the directory tree

How can I diagnose and repair missing drive space?


In bash, read after a pipe is not setting values


How can you write to a file from the command line without using shell output redirection?


Prevent quote expansion in user-made function

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


Have iptables run command/script on new connection attempt

Automatically initiate an outbound SSH connection on a server when a client connects


zsh glob pattern to match all files except one, does not work, despite EXTENDED_GLOB being set


How should I add users non-interactively?


Update 'changing' variables every time PS1 is called, i.e. every new prompt

How to call a script after every bash command


split a large file to new file with unique file names


How to remove first segment or segments from PATH in shell script

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


Why are non-environment variables passed to the subshell invoqued by command substitution?


How to correctly delete all the packages in the pacman cache and why I shouldn't?

How to delete old packages installed by pacman in Arch Linux?


How to prevent dd's progress from being meaningless on Linux?


Why is 'ls' suddenly wrapping items with spaces in single quotes?


Recursively rename files and directories


How does linux load firmeware for built-in driver modules

Custom kernel: fails to load firmware when module built-in


Is there a more succinct alternative to piping to wc for counting files in a directory


Couldn't update or install using apt-get

Cannot install packages in Mint: "Unable to fetch some archives"


Executable file isn't "really there" after rsync

Getting "Not found" message when running a 32-bit binary on a 64-bit system


Linux - Sending a command to a screen through a shell script?


Log files corrupted with NUL characters and text from other processes


Is there an easy method for installing binary builds of glibc?


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

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


How to FILTER the files with filename and then DELETE the OLDEST file from there?


'which' reports one thing, actual command is another


How to make sure that a command is not interrupted, even if terminal is closed?

How can I run a command which will survive terminal close?


Convert underscore to PascalCase, ie UpperCamelCase


How to extract XML data from logs using Unix shell script?

Parse XML to get node value in bash script?


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


Is the swap partition needed when the root partition and RAM are large enough?

Do I need swap space if I have more than enough amount of RAM?


How do I read from /proc/$pid/mem under Linux?


How to escape spaces while using command's output in command line


crontab doesn't get bash.bashrc variables

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


Which 'smartctl -d' option should I use on this hard-disk: 'scsi' or 'ata'?

smartctl on external hdd inside ide-to-usb enclosure


Alias for redirecting both standard output and standard error, as well as sending to background


Different representation of bash in 'ps -f' command

Difference between Login Shell and Non-Login Shell?


How to highlight some text on a man page?


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


How to get line strings with special word start and end?

Multiline pattern match using sed, awk or grep


How to compare two files, so that the information in the first one is deleted from the second one?

Is there a tool to get the lines in one file that are not in another?


I messed up bashrc codes and reboot the Linux mint to black screen

Mint 18 will boot only to a black screen


`grep -l .. | xargs vim` generates a warning, why?

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


How to set `umask` for the entire gnome session?


Replace environment variables in a file with their actual values?


How do I recover the contents of a file?


How to bind USB<>Serial HUB under a static name

KERNELS path for USB device connected to HUB


Setting proxy environment variables in a shell script

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


Bash alias defined in script not working within the script

Why doesn't my Bash script recognize aliases?


Why Zsh `time` not work for some commands?


How can I change the umask for one command only?


sudo issue during echo something to a root file

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


How to sort a list of dates in a text file


find {} returns the full filename but I just want the filename without the extension, so index.md would return index instead of index.md


Is it possible to access any file or dir within a non-accessible directory?

Is a -rw-rw-rw- file really inaccessible inside a drwxrwx--- directory?


Constant 60KB Shared library memory on /proc/<pid>/maps

Shared library mappings in /proc/pid/maps


Why do newline characters get lost when using command substitution?

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


I want to create a cron job that runs a command on a remote linux box using ssh but I want ssh to answer password

upload and dowload the files from server without giving password


Using 'grep' to search for a specific pattern

How to run grep with multiple AND patterns?


How to find application's path from command line?


How do I determine the number of rows and columns in a gnome-terminal window while resizing?

How do I find number of vertical lines available in the terminal?


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


No colored output in less for the ls command


Redirection not overwriting file but just producing a blank one

Do redirection operators always open file descriptors in parallel?


What does it mean for a folder to have suid permission?

SUID has no effect on directories with Linux


What is the difference between '$ . foo' and '$ ./foo'?

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


Shell command output to file with command being executed

How can I save the command and its execution output to file at the same time


How do I find a command if I don't know its name?


Set default permissions by file type (at least in Vim)


Bash shadow a command - function with same name as command


associative array execution order problem


Find files based on modified date(specifying the exact hour)

Getting all files that have been modified on a specific date


Linux Operating System and Version, Regardless of Distibution

How can I reliably get the operating system's name?


integer number division to decimal number in bash script

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


How to remove warnings from "keytool" command

How do I suppress error messages from cp?


What is the purpose of having two variables ($@,$*) to transmit the arguments of a command into a script?

What is the difference between $* and $@?


BASH getopts more arguments after option

Provide two arguments to one option using getopts


What is "-l" option do to the passwd command?

Disable a user's login without disabling the account


bash ssh warning when connect to raspberry: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

Problem with locale: "Setting locale failed."


What does the @ symbol mean on filenames


Coming back to a command I have partially written

Remember a half-typed command while I check something


How do I run a program without network access?


What is the reason for having numbers within the brackets of a function ?


Pipe the output of a command if it is successful


Can someone explain exactly what is happening with single quotes and double quotes with process IDs in the below example?

Difference between ' and " on command line (bash)?


How to prevent an application from connecting to a network with iptables?

How to restrict internet access for a particular user on the lan using iptables in Linux


how to display osd_cat on a remote HDMI Screen

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


bash: how to save state on prompt evaluation


How do processes, jobs and session relate to each other ?

What is the difference between a job and a process?


Syntax Error: unexpected end of file -- Bash script

Syntax Error: unexpected end of file — Bash script


What is the purpose of sockets in layman terms?


Start Screen session when background programs running

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


monitor command outputs in separate windows within a terminal

How to split the terminal into more than one "view"?


What is the meaning of these label in top?

Linux "top" command: What are us, sy, ni, id, wa, hi, si and st (for CPU usage)?


Are commands in a pipeline run simultaneously?


match first column of file a with paragraphs of file b


Is there a way to use sed or awk to filter data inside a zipped file?

Is it possible in unix to search inside zip files


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


How do you make samba follow symlink outside the shared path


Hide ouput of bash while running automated script.


How can I get a shell script to change directory for me?

Script to change current directory (cd, pwd)


Environment variables. Where are they saved in?

What exactly is an environment variable?


Recover last argument of the last command in bash' vi mode

how to recall last argument in bash with vi setting


find returns weird file order on RHEL but not on OSX

Which order does find command use to print out


How can I recognize that a certain Linux distribution is based on Debian, looking at file structure?

How can I get distribution name and version number in a simple shell script?


Is it possible to echo into a file, but use indenting in the shell script source?

Can't indent heredoc to match code block's indentation


Conventional directory for application build source

What is the "/usr/local/src" folder meant for?


Ryzen 3 2200u laptop linux compatibility

Do Ryzen 3 2200u laptops with Vega 3 work out of the box with major Linux distros?


Pass a command to ROOT from a shell script and having it stay open

Keeping a process running on server even SSH is closed


Recover data from folder that was target of mount

Access to original contents of mount point


Why doesn't set or export have a man page?

Why don't shell builtins have proper man pages?


Show shutdown messages from last shutdown

How to read the shut down messages afterwards?


How to edit the timer for systemd-tmpfiles-clean?


Store passwords of Linux users in plain text - on purpose

How to make user passwords shown as a clear text in Linux?


Moving drives currently in software raid to LVM?


Show error messages and information that a program was killed on another terminal

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


With "find /", skip directories like "/proc", "/sys" and similar

Exclude paths that make find complain about permissions


Delete the parent folder keeping all content

How do I delete a folder but not the contents?


Limit memory usage for a single Linux process


How to automate a script that requires an ssh-key password at regular intervals

rsync over ssh without typing the password each time


^@ spam in tty (but seems to be system-wide)


How to run this kind of command from within "find"?

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


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


Sed command runs with hardcoded value in regex but fails with variable in script

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


How to understand ssh-keygen and ssh-copy-id?


Batch rotate images by 180 degrees from the command-line

How to rotate all images in a directory with imagemagick?


Can you diff all files in one directory?


How do I get zero-padded numbers using brace expansion? {1..30} with 01 02 03 etc

How do I get 0-padded numbers in {} (brace expansion)?


What's the difference in these commands - cat piped to dd and just cat?

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


Moving lines to separate files all at once

How can I redirect matching lines to a file, and non-matching lines to a different file?


variable with a variable substring in bash


Why can't I list a directory with read permissions?

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


for detects the spaces in the file as multiple lines

Why is looping over find's output bad practice?


how to paste several file together using a single space as a delimiter


Configuring ClusterSSH to Use Freetype Fonts


$ sh < foo > bar this statement is the question

What are the shell's control and redirection operators?


How can I increase the size of /tmp on Fedora 25?

Systemd backed tmpfs | How to specify /tmp size manually


When and why do I need to quote asterisks


rm: refusing to remove '.' or '..' directory: skipping '..'

Does 'rm .*' ever delete the parent directory?


Get the percentage of usage for a mount point

only display df lines that have more fs usage than 80%


Problems with the Wifi connections (RTL8723BE). Kali Linux


How do I touch every file in a directory?


Why are filenames that start with a dot hidden? Can I hide files without using a dot as their first character?


bash - What do the brackets in if-statements do?

What does `[ EXPRESSION ], [ ] and [OPTION` mean in `man test`?


awk: delete lines where fields 1 and 2 are duplicate

print the duplicate lines only on fields 1,2 from csv file


How can I move a file from a linux computer to my mac laptop?

How to copy files from one machine to another using ssh


How to run "fsck -y" on next boot in Ubuntu

How to check disks at startup (alternative to chkdsk c: /f on Windows)


Find size of file names with space and hyphen | pass file names containing space and hyphen to "du"

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


How to find what programs are reading my file?


How to determine the maximum number to pass to make -j option?


Alias accepting variables from the result of evaluation

Why doesn't my command work when aliased?


Send variable with EOF and use host variable

View remote value of $PATH inside shell script


What does this bash syntax means? ETL_PORT="${ETL_PORT:-6090}"

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


Using `ip route` to change network interface by changing default route


Understanding ACPI wake-up codes / DSDT (Differentiated System Description Table) of Thinkpad T430s BIOS


Is it the terminal or the shell that is responsible for actions of keystrokes?

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


How do keyboard input and text output work?


Are threads implemented as processes on Linux?


Automatically run commands over SSH on many servers


Why the following error appears when using rm -rf * in my current location?

Removing a vagrant file I see .nfs0000000000b869e300000001


Pause a process based on screen blank status?

Run a command when system is idle and when is active again


What is the best practice between using ${var} or $var?

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