Whether I’m working in the terminal on a mac or on a Linux web server, here are my most used Linux commands:
ls is used to list files and directories. The options I use most often with this command are -la.
is used to show further information about the files / directories. It is the long listing format and shows file permissions, owner information, file size and time of last modification.
hidden files and folders are not included by default. -a makes sure they are also shown.
Stands for “print working directory”. This command outputs your current location in the file system.
Useful key combinations:
shift + a
shift + e
Sass makes managing colors in your web site much easier. Sass variables provide a simple way to assign a label to a hex value, so you never have to remember the hex value again.
Alternatively, Sass maps also work really well.
color: map-get($colors, red);
color: map-get($colors, blue);
rsync is a great free utility for transferring and synchronising files between computers. rsync is available for Linux, MacOS and Windows (through the Cygwin command line interface).
Here are some of my most frequently used rsync commands.
- Copy / synchronise files from a local computer to a remote computer using ssh:
rsync -avhe ssh /path/to/directory email@example.com:/path/to/remote-directory