Updated: 03 July 2023
Search for the whole word 96730
grep "\<96730\>" app.log
Jersey & Guernsey, United Kingdom
Updated: 03 July 2023
Search for the whole word 96730
grep "\<96730\>" app.log
Updated: 28 June 2023
Copy files (often just compiled) into destination locations, setting attributes.
install my_util /home/alice/.local/bin/my_util
Updated: 27 May 2023
List, test and extract compressed files in a ZIP archive
Unzip a zip file
unzip wordpress-seo-premium-20.8.zip
Updated: 24 May 2023
uname – print system information.
Print the machine hardware name
uname -m
Print the kernel name
uname -s
Updated: 23 May 2023
Send a signal to a process. The default signal for kill is TERM.
Kill a process
kill <process id>
Updated: 21 May 2023
Change file timestamps.
View access
, modify
, change
and birth
timestamps
stat filename
Change only the access time
touch -a filename
Change only the modification time
touch -m filename
Updated: 24 April 2023
Show only the 10 most recent files in a directory:
ls -t | head
Updated: 23 April 2023
Search through a directory of csv files and display the results in a table:
grep --color=always -h -r "70\.00" my-csv-files | sed "s/^[ \t]*//" | column -t -s,
--color=always
preserve match colour, even after piping.-h
do not show filenames.-r
search through all files in directories.sed "s/^[ \t]*//"
remove leading whitespace from lines.-t
create a table.-s,
specify the separator to use.Updated: 21 May 2023
Make a symbolic link bar
which points to foo
ln -s foo bar
Updated: 21 September 2023
Zip a file
zip -r curl-debug-wp-plugin.zip ./curl-debug-wp-plugin --exclude '*.git*'