User:Chrissy/bash shortcuts: Difference between revisions
(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] #--------------------...") |
No edit summary |
||
Line 1: | Line 1: | ||
***BASH TERMINAL π»*** | ***BASH TERMINAL π»*** | ||
https://pzwiki.wdka.nl/mediadesign/Shell_Cheat_Sheet | https://pzwiki.wdka.nl/mediadesign/Shell_Cheat_Sheet | ||
<syntaxhighlight lang="python"> | |||
#for shortcut bash help | #for shortcut bash help | ||
Line 101: | Line 103: | ||
#-> as bash (bash script has to be in the file!) | #-> as bash (bash script has to be in the file!) | ||
bash getwikipage.sh [wikipagename] | bash getwikipage.sh [wikipagename] | ||
</syntaxhighlight> |
Revision as of 18:07, 28 January 2025
- 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]