- LIST OF COMMANDS FOR TERMINAL ARCHIVE
- LIST OF COMMANDS FOR TERMINAL CODE
- LIST OF COMMANDS FOR TERMINAL WINDOWS
!$ expands the final argument of the previous command.It provides an easy way to find out the pid to kill the running process. (/path/to/node/server/server.js:15:34)Īt loader (/path/to/node/modules/node_modules/babel-register/lib/node.js:144:5)Īt .(anonymous function) (/var/www/html/gcsbpo/rocc/node_modules/babel-register/lib/node.js:154:7) This one is particularly useful for when you get an error like:Īt Object.exports._errnoException (util.js:1023:11)Īt exports._exceptionWithHostPort (util.js:1046:20)Īt Object.Lsof -i tcp: - list all running processes on a specific port Killall - Kills all running processes of a certain type Kill - Kills a running process given a process id (pid) This is really useful with grep and the pipe symbol, which will allow you to search through your history: history | grep Ĭurl - Allows you to make HTTP calls RESTful endpoint.History - Prints the command history for your session Pbpaste - Paste the selected text in the terminal from your clipboard manually Pbcopy - Copy selected text into your clipboard buffer (ignores version control directories, etc.)
LIST OF COMMANDS FOR TERMINAL CODE
ack - similar to grep, but has a better code search because it knows to search in places you'd expect it to search.grep - allows you to find results line by line using some sort of pattern or regular expression.echo - show text or the compiled text of other commands.> - concatenates a command's output to a file, creates a new file if none is found.WARNING: This will override and replace all contents that were in the original file.> - stores a command's output to a file, and creates a new file if one doesn't already exist.? - matches any single character in a filename.There is actually a whole way of matching multiple files and names via globs!.* - matches zero or more characters in a filename.| - The pipe character take a command's output and uses it for the input of another command.This is extremely helpful for tracking log output from servers. Using the -f flag with tail will allow you to see updates to the file as they are coming in.tail - displays the last few lines of a file.head - displays the first few lines of a file.Here are some commands that can be beneficial for manipulating file output: Often times when scripting the goal you are trying to achieve is to run filters through text, check output logs from a server, or run batch commands on multiple files. Sudo is a very widely used command in bash interfaces that allows you to run a command with administrative or root privileges.įor example, if you edit any files in the root directory (also known with the path /) of your machine without sudo privileges, you will be denied permissions to edit the file.įor your safety, there are a couple of things your computer will not allow you to do as a sudo'd command, i.e. It has a long list of uses, including package management for systems. tar - Allows you to work with tarballs in a Linux command line.In order to make a file executable, you can type chmod +x.chmod - Allows you to make a file executable and change permissions granted to it by your machine.
LIST OF COMMANDS FOR TERMINAL ARCHIVE
LIST OF COMMANDS FOR TERMINAL WINDOWS
Some of these commands may not work on Windows CMD/Powershell. Note: This article assumes that you're using some type of UNIX shell, with a preference towards Mac. Since I have started working with more terminal-oriented applications, there are several commands that I use that I'd love to share with beginners and terminal lovers alike. I love learning new commands and tools to optimize my workflow on my Mac.