User:Chrissy/bash shortcuts
< 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] #--------------------...")
- 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]
- ------------------------
- new folder
mkdir [name]
- ------------------------
- open nano
nano [test.html]
- ------------------------
- to work/go into folder:
cd + (folder path; drag & drop folder)
- home directory
cd
ls (see all the files inside)
- ------------------------
- go into [xyz] folder (by copy paste)
md [xyz]
- ------------------------
- PostScript to PDF (xyz filename)
ps2pdf xyz.ps ls (to see all files; new .pdf included?
- ------------------------
- all PDFs in the folder to one PDF
pdfunite *.pdf
- ------------------------
- clear the whole terminal window
clear
- ------------------------
- PAD to Python-File
$ curl https://pad.xpub.nl/p/a-house-of-dust/export/txt > a-pdf-of.py
- ------------------------
- covert pages: e.g. wiki to html; markdown to slideshow; word to wikitext
pandoc
- ------------------------
- wiki print
curl https://pzwiki.wdka.nl/mediadesign/User:Chrissy?action=render > cssprint.html
- ------------------------
- make PDF quick
weasyprint https://pzwiki.wdka.nl/mediadesign/CSS_Print?action=render --stylesheet print.css cssprint.pdf
- ------------------------
- wikipage into html page + print css stylesheet (has to be in the same file!)
- spaces need to be _
pandoc cssprint.html --standalone --css print.css --css screen.css --output cssprint.html
- -> as bash (bash script has to be in the file!)
bash getwikipage.sh [wikipagename]