User:Chrissy/bash shortcuts

From XPUB & Lens-Based wiki
< User:Chrissy
Revision as of 13:25, 28 January 2025 by Chrissy (talk | contribs) (Created page with "***BASH TERMINAL 💻*** https://pzwiki.wdka.nl/mediadesign/Shell_Cheat_Sheet #for shortcut bash help less —help man echo #------------------------ #searching for specific word /[anyword] #------------------------ #does anyword exist? whereis [anyword] #------------------------ #image convert convert #------------------------ #remove (JPEGS (also with other files)) rm *.jpeg #------------------------ #rename mv [old name] [new name] #--------------------...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
      • BASH TERMINAL 💻***

https://pzwiki.wdka.nl/mediadesign/Shell_Cheat_Sheet

  1. for shortcut bash help

less —help man echo

  1. ------------------------
  1. searching for specific word

/[anyword]

  1. ------------------------
  1. does anyword exist?

whereis [anyword]

  1. ------------------------
  1. image convert

convert

  1. ------------------------
  1. remove (JPEGS (also with other files))

rm *.jpeg

  1. ------------------------
  1. rename

mv [old name] [new name]

  1. ------------------------
  1. new folder

mkdir [name]

  1. ------------------------
  1. open nano

nano [test.html]

  1. ------------------------
  1. to work/go into folder:

cd + (folder path; drag & drop folder)

  1. home directory

cd

ls (see all the files inside)

  1. ------------------------
  1. go into [xyz] folder (by copy paste)

md [xyz]

  1. ------------------------
  1. PostScript to PDF (xyz filename)

ps2pdf xyz.ps ls (to see all files; new .pdf included?

  1. ------------------------
  1. all PDFs in the folder to one PDF

pdfunite *.pdf

  1. ------------------------
  1. clear the whole terminal window

clear

  1. ------------------------
  1. PAD to Python-File

$ curl https://pad.xpub.nl/p/a-house-of-dust/export/txt > a-pdf-of.py

  1. ------------------------
  1. covert pages: e.g. wiki to html; markdown to slideshow; word to wikitext

pandoc

  1. ------------------------
  1. wiki print

curl https://pzwiki.wdka.nl/mediadesign/User:Chrissy?action=render > cssprint.html

  1. ------------------------
  1. make PDF quick

weasyprint https://pzwiki.wdka.nl/mediadesign/CSS_Print?action=render --stylesheet print.css cssprint.pdf

  1. ------------------------
  1. wikipage into html page + print css stylesheet (has to be in the same file!)
  2. spaces need to be _

pandoc cssprint.html --standalone --css print.css --css screen.css --output cssprint.html

  1. -> as bash (bash script has to be in the file!)

bash getwikipage.sh [wikipagename]