Linux System Administration

Although you have exchanged public keys with your remote server to avoid that boring bit of entering your super long secure user password everytime you are about to login, you still need to face ssh syntax in order get someting done. Yes, it is just single line command with few words but typing that line 30 times a day can take you at least 10 minutes of problem solving time, bore you and more iportatbly it may even give you a headache. This article outlines two alternative options on how to make ssh login procedure easier and thus keeping you sane longer. Read more ...

Here is a tip on how to backup file permissions in Linux using getfacl. This is very useful technique if you want to prevent someone or you to change file permissions of certain set of files or directories. By using a getfacl command we can take a snapshot of file permissions :

getfacl -R /var/www/myweb > permissions.acl

This will backup permissions of all files and directories within /var/www/myweb and myweb directory itself. -R ensures that the /var/www/myweb will be traversed recursively to include all files and directories. Read more ...

Here are two ways on who to redirect both standard output and standard error to same file in bash. First the official a recommended way:

printf '%s\n%\n' "Hello bash" > FILE 2>&1

now easier unofficial way:

Read more ...

Page 6 of 72

Free Linux eBooks

Go to top