For some reason, some people seem to add the -r and -f options every time they use rm. That's bad! The -r option makes rm recursive, so that it can remove directories and their contents. Obviously, if you mess up and type the wrong thing as an argument, you would lose a lot more data with -r than without. So you should only use -r when you're sure you want to completely and permanently remove a directory.
The important thing is not to get confused between redirection and pipes. Output redirection* causes the output of a command to be written to a file. Pipes cause the output of a command to become the input to another command. That command might write a file (like `tee` does), but piping itself doesn't create or overwrite or append to files like redirection does.
* we have been using output redirection, but we can also redirect input from a file to a command.
User crontabs are stored in /var/spool/cron but it is not recommended to edit them there and that directory is owned by root without even read permission for other users.
thanks @αғsнιη @technastic_tc @terdon @EliahKagan @BeastOfCaerbannog @ArturMeinild @SirGuelph @Kulfy for participating in the lesson and making it a great success
Secure Shell (SSH) is a cryptographic network protocol for operating network services securely over an unsecured network. SSH can be used for many things, including: - For login to a shell on a remote host - For setting up automatic (passwordless) login to a remote host - To backup and copy files efficiently and securely using SCP, SFTP or Rsync - Plus many other things
Globbing doesn't only work with ls - it's a feature of the shell itself. It's not ls that expands stuff, it's Bash. ls receives the arguments fouronethree and two because the shell expands [otf]* to all the filenames that expression matches. So, we can use globbing with all sorts of commands.
Thank you so much for participating @αғsнιη @karel @user3140225 @EliahKagan @jokerdino @technastic_tc @terdon and anyone else who was here - you have been awesome!
@user3140225 yes :) that demonstrates that you don't have to export again after changing the value - the date command got the update. This is always the case when you change an environment variable - you don't have to export a variable that is already in the environment, you can just assign a new value to it (although nothing bad happens when you unnecessarily export a variable that is already exported).
That's very kind, but I only contributed the idea to demonstrate environment variables by running date with TZ set, not the specific progression of commands and explanation -- which is actually better than the way I have shown people, and I shall be linking to it here, I think, to help people in the future.
@Zanna man apt doesn't tell you all of apt's options. As far as I'm concerned if it's in man apt-get but not in man apt I try running the same command in apt and it works almost all the time. If it doesn't work in apt then I revert to apt-get.