This repo aims to list the set of Linux commands that helped me in my work life.
Transfer data from or to a server.
See Man Page
Remove sections from each line of files.
See Man Page
Display the first field in a line with ,
as delimiter:
cut -d ',' -f 1 names.csv
Search for files in a directory hierarchy.
find . -size +2M -exec rm {} \;
Identify location(s) of a file.
Note that it relies on a database for this search, which can be updated with
sudo updatedb
.
List on its standard output file information about files opened by processes.
An open file may be a regular file, a directory, a block special file, a character special file, an executing text reference, a library, a stream or a network file (Internet socket, NFS file or UNIX domain socket.) A specific file or all the files in a file system may be selected by path.
Show all processes using port 2377:
sudo lsof -i :2377
Read and write data across network connectiosn, using TCP or UDP protocol.
See Man Page
Find the process ID of a running program.
Filter and transform input text. See Man Page
Read a file and outputs the last part of it.