[Return]

Report a post

Preview
>>154994

./ = current directory (can be omitted most of the time)
../ = parent directory
~/ = home directory

Hidden files and folders can be made by putting a . infront of the name.

cd = change directory

If you wish to know the arguments of an application without googling run "man application_name" to see the manual

Many unix utils can be surprisingly useful and do things that it is difficult to do on windows.
For instance lets say you want to crop a video between certain times without waiting for a video editor to re-encode: ffmpeg -ss 00:01:23 -to 00:02:34 -i input.mp4 -c copy output.mp4

If you wish to try out using a bash script, try this https://up.heyuri.net/src/4813.txt
Rename it from txt to sh, open the terminal in the directory where it is located and run chmod +x ./makegif.sh or if you are in your home directory (default) and lets say it is in your downloads folder: chmod +x ./Downloads/makegif.sh or chmod +x ~/Downloads/makegif.sh
Most people store bash scripts in a folder called "bin" and is usually hidden, so when I run a bash script I usually run "~/.bin/script.sh arguments". When you run a script that is executable all you have to do is specify it, so ~/.bin/script.sh will run the script. Bash scipts have a "shebang" at the start (#!/bin/bash) which means simply specifying the script will invoke bash

ffmpeg is great for video manipulation automation, imagemagick (run as "convert" on debian systems like mint) is also extremely useful, such as if you wanted to mass crop images or something like that.

>>155005
When it coems to disks I recommend gnome-disks gui rather than using command line unless you know what you're doing.
Post number No.155006
Board Off-Topic@Heyuri
Optional. Describe what's wrong with it.