The previous answers are all good. I would just add a few points.
Later, (not now!) when you're more comfortable with Linux, you may want to create a separate partition for data - especially if you have big files like lots of music or video. If you add too many of these to your home partition, you can fill it up and then other things stop working because they can't get the disk space they need.
If you fill up a data partition, it doesn't affect anything else.
Also, when you want to backup your data, you can just do it any time. /home has things which change all the time, so you can't normally "freeze" it to get a copy where everything is in sync. With a separate data partition, you can make a perfect backup any time.
As far as paths go, if you are working from the command line, you can define a bash alias (in ~/.bashrc
or in ~/.bash_aliases
) to shorten any path or even to change into the directory.
alias proj='cd /home/shifar/Public/Projects'
and then just type proj
to switch to that directory.
When you get more comfortable with bash, you can do even more with functions. But, we'll leave that till later.
Another approach would be to add a line to ~/.bashrc
like
export PROJ='/home/shifar/Public/Projects'
That would make an environment variable PROJ
available for use and you could do things like:
ls "${PROJ}"
cd "${PROJ}"
cp mynewfile "${PROJ}"
It will also work without the export
in front of it, but then it would only be defined at the top level of your shell, not in any subshell you might run from there.
You don't strictly need the quotes or braces in the example above either, but they protect you from things like embedded blanks and also allow you to use PROJ
as part of a word - like ${PROJ}ect
.
/home/shifar
that you can contract as~
in most shell). For more info on unix standard filesystem structure, look here for example: tutorialspoint.com/unix/unix-directories.htm/
, if you need to know what they are google FHS. Search for symlinks. And... depends./home/shifar/Public/Projects
compare for length toC:\Documents and settings\shifar\My Documents\Projects
(or in a more modern senseC:\Users\shifar\My Documents\Projects
)?Projects
folder was inD:
drive. so/home/shifar/Public/Projects
is smaller thanD:/Projects
.