I have just installed sass and I am now tryring to access the sass file. For example:
sass --watch ~/Desktop/sass/css/style.css:style.css
and the error is "no such file or directory" - So how can I do this?
My mac version is 10.6.8
To navigate from one directory or folder to another, you can use the "cd" command, which is short for "change directory." To return to the previous folder, you can use a special option in "cd" to do so.
cd or change directoryThe cd command allows you to move between directories. The cd command takes an argument, usually the name of the folder you want to move to, so the full command is cd your-directory . Now that we moved to your Desktop, you can type ls again, then cd into it.
To check that the file you're trying to open actually exists, you can change directories in terminal using cd
. To change to ~/Desktop/sass/css
: cd ~/Desktop/sass/css
. To see what files are in the directory: ls
.
If you want information about either of those commands, use the man
page: man cd
or man ls
, for example.
Google for "basic unix command line commands" or similar; that will give you numerous examples of moving around, viewing files, etc in the command line.
On Mac OS X, you can also use open
to open a finder window: open .
will open the current directory in finder. (open ~/Desktop/sass/css
will open the ~/Desktop/sass/css
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With