User:Chrissy/bash shortcuts: Difference between revisions
No edit summary |
No edit summary |
||
Line 103: | 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] | ||
#------------------------ | |||
#get all the images of a website/link into a folder (I'm in) | |||
wget -r [link] | |||
#------------------------ | |||
#pinprint Star SG-10 | |||
lpr -o raw [xyz].txt | |||
#------------------------ | |||
#print ascii txt to terminal | |||
cat [xyz].txt | |||
#------------------------ | |||
#Reducing Video Resolution | |||
ffmpeg -i input_1080p.mp4 -filter:v scale=720:480 -c:a copy output_480p.mp4 | |||
#------------------------ | |||
Adjusting Video Bitrate Settings | |||
ffmpeg -i xyz.mov -b:v 1000k xyz-small.mp4 | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 13:48, 20 March 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]
#------------------------
#get all the images of a website/link into a folder (I'm in)
wget -r [link]
#------------------------
#pinprint Star SG-10
lpr -o raw [xyz].txt
#------------------------
#print ascii txt to terminal
cat [xyz].txt
#------------------------
#Reducing Video Resolution
ffmpeg -i input_1080p.mp4 -filter:v scale=720:480 -c:a copy output_480p.mp4
#------------------------
Adjusting Video Bitrate Settings
ffmpeg -i xyz.mov -b:v 1000k xyz-small.mp4