[Return]

Report a post

Preview
>>154994
Oh. Basic basics of terminal can be useful. Listing devices useful.

I spam 'lsblk' at any disk listing, there are others that show you UUID or device ID or whatever else too

I use 'fdisk' to partition, I like it the best

If you want to run shell scripts that are those .sh files to make life easier remember to use chmod +x to make them executable.

If you want to mount each time your drive at the same address then there is fstab to edit, like if you have a usb key and decrypt it that way

If you can't make a directory or make/edit/copy files in some place then you probaby need permissions for some reason and you 'chown' them or 'chmod 777', but be very careful with chown and chmod because you can break the system if you just like me sneeze and hit enter after typing '/' as my target. Not much worked and I had to get my backup.

If you type an address you have 2 options: relative and absolute. Relative is in relation to where you are in terminal at the moment, absolute is absolute. Absolute begins with / while relative begins without it. Also 'cd ../' to go back one directory.

So in the beginning of the address the / or its lack signifies relative or absolute, but also at the end of an address you can put either / or lack of it. If it is present then you mean the contents of that address, if it is not present then you mean the directory and its contents! Not every command cares for the / at the end, but there are some that care a lot, especially if you want to automate something. Rsync for example cares.

Thats all to learn I think. I don't need to remember much besides that daily.
Post number No.155005
Board Off-Topic@Heyuri
Optional. Describe what's wrong with it.