Useful Commands: Difference between revisions

From Lucca's Wiki
Jump to navigationJump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 10: Line 10:
Get/Set data from clipboard:
Get/Set data from clipboard:
  getclip () {
  getclip () {
         xclip -selection c -o              #use it like this: echo $(getclip)
         xclip -selection c -o              #use it like this: ls -a | grep $(getclip)
  }
  }
  setclip () {
  setclip () {

Revision as of 02:52, 11 December 2024

Delete all docker images

docker rmi -f $(docker images -a -q)

Create a file and set its permissions

install -m 755 /dev/null filename.txt

Record audio files

Record Audio Files in the Command Line

Get/Set data from clipboard:

getclip () {
       xclip -selection c -o              #use it like this: ls -a | grep $(getclip)
}
setclip () {
       xclip -selection c                 #use it like this: echo "blahblahblah | setclip"
}


Additional Resources:

Arachnoid.com: How to use SSH

https://github.com/OpenRC/openrc/blob/master/service-script-guide.md