Tar Command Basics
tar command (tape archive) is used to convert a group of files into an archive.
Syntax: tar [options] [tar-archive-name] [other-file-names]
Zip command basics
How to zip multiple files?
Essential Linux commands
Here is a list of some must-know commands in linux with examples:
This brief tutorial will show you how to install Google Chrome (Chromium) in Ubuntu lucid or Maverick via PPA. Installing programs via Ubuntu PPA allows for automatic updates, upgrades and maintenance. If you’re currently using Google Chrome in Windows and want the same for your Ubuntu machine, then this tutorial should help you get there.
Disk Usage command
Sometimes it’s useful to be able to find out how much disk space a directory is taking. While there are some web interfaces or desktop applications that allows you to do that, it’s always useful to know how it can be done through a command shell.
The DU Command
To find out how much space is being used, you can use the DU (Disk Usage) command. Here a few examples of the DU command usage.
Listing a disk space summary of directory
# du -sh [directory]
Listing the disk space used for a directory and its subdirectories, sorted by disk usage
# du -h [directory] | sort -rn
Take note that the “h” switch allows displays the disk usage in human readable format (ie. kylobytes, megabytes, etc.).
Using Screen To Work Remotely
Screen is a Linux tool that allows you to keep your session alive in case your disconnected. Once you gain back remote access to your server, you can “reattach” yourself to your previous session.
One of the more controversial changes in the Ubuntu 10.04 beta is the Mac OS-inspired change to have window buttons on the left side. We’ll show you how to move the buttons back to the right.
To shift the window buttons to the right side do this:
allows tasks to be automatically run in the background at regular intervals. You could also use it to automatically create backups, synchronize files, schedule updates, and much more.
sudo crontab -e
This will open the crontab using the default editor.
Here is the format to add cronjobs:
* * * * * /bin/execute/this/script.sh