background preloader

UNIX

Facebook Twitter

Job

Oneliners. Knowledge Center. Master Foo and the Script Kiddie. Copy files and directories recursively with tar. Copying a directory tree and its contents to another filesystem using tar will preserve ownership, permissions, and timestamps.

Copy files and directories recursively with tar

A neat trick allows using tar to perform a recursive copy without creating an intermediate tar file. To copy all of the files and subdirectories in the current working directory to the directory /target, use: tar cf - * | ( cd /target; tar xfp -) The first part of the command before the pipe instruct tar to create an archive of everything in the current directory and write it to standard output (the – in place of a filename frequently indicates stdout). The commands within parentheses cause the shell to change directory to the target directory and untar data from standard input. The -p option in the tar extraction command directs tar to preserve permission and ownership information, if possible given the user executing the command.

Share this article If this article helped you, please THANK the author by sharing. Blastwave.org - An OpenSolaris Community Site. Freeware List for SPARC and Solaris 9. Sunfreeware.comFreeware Packages for SPARC and X86 Solaris 2.5, 2.6, 7, 8, 9, 10 & 11 Please Visit our New Website - UNIXPackages.com UNIX packages provides full package support for all levels of Solaris from 2.5, 2.6, 7, .... through to Solaris 11 SVR4 style and *NEW* Solaris 11 IPS packages.

Be advised that the packages on UNIX Packages are only available through a paid subscription service, as this new site is not sponsored by any third party. If this presents any special difficulties, please send an email to our support email. See Contact Information. UNIX Packages offers under paid subscription, the following list of packages in Bold at the version specified for this version of Solaris. This list is current as of September 23, 2013. Dull jobs really do numb the mind. Boring jobs switch our minds to autopilot, say scientists - and it means we can seriously mess up some simple tasks.

Dull jobs really do numb the mind

Monotonous duties switch our brain to "rest mode", whether we like it or not, the researchers report in Proceedings of National Academy of Sciences. They found mistakes can be predicted up to 30 seconds before we make them, by patterns in our brain activity. The team hopes to design an early-warning brain monitor for pilots and others in "critical situations". The scientists say the device would be particularly suitable for monotonous jobs where focus is hard to maintain - such as passport and immigration control.

Bumblebee - Boobs. Medco sys admin gets 30 months for planting logic bomb. Determine the CD-ROM device target id in Solaris - Tech-Recipes.com. Different Sun platforms have different default device targets for the CD-ROM drive.

Determine the CD-ROM device target id in Solaris - Tech-Recipes.com

This simple command will display the drives in the system and allow you to easily determine the CD-ROM target id. Run the command: iostat -En In the output, the description of the product usually contains CD. In the following example output, the CD-ROM target id is c0t3d0: I, Cringely . The Pulpit . Keeping the Peace. The video player died in our minivan a few weeks ago, sending my kids into a death spiral of Wiggles withdrawal.

I, Cringely . The Pulpit . Keeping the Peace

In retrospect, it would probably have been better never to have the video player, but it seduced us with the promise of hypnotically transfixed children who would never again ask, "Are we there yet? " I had to have it back, only better. So I built a video server for the minivan. What I wanted for the van was the equivalent of what we had already working at home, where MythTV running on a $300 Linux box stores every episode of Arthur, Dora the Explorer, Dragon Tales, Rolie Polie Olie, Cyberchase (my son Channing's favorite), Jimmy Neutron (my favorite), and many other programs -- more than 500 shows in all.

System recovery with Knoppix. Free access to EE using Google Cache. Book Review: The No Asshole Rule by Robert Sutton. Download. Vim is available for many different systems and there are several versions.

download

This page will help you decide what to download. The most popular: Details and options for: Versions before 7.3 can also be obtained with Subversion and CVS. Vim 7.4 is the latest stable version. To avoid having to update this page for every new version, there are links to the directories. Root-Zone Whois Index by TLD Code. Funny UNIX Shell Commands. Programming Truth and Fiction. Programming Truth and Fiction Fiction: HTML is not a programming language.

Programming Truth and Fiction

It is a markup language. It lacks all necessary functionality (like if-else branching, variables, loops) to program in it, and in fact, even comparing it to a programming language completely misses the point of HTML’s beautiful simplicity. Truth: Many managers in IT work environments understand HTML is a kind of programming language.

Xen's no killer app. U.S. Office of Personnel Management - Operating Status. Solaris Tips and Tricks. Solaris Tips. One simple way to make Solaris a little bit more secure is to create /root directory with permissions 700 like in Red Hat.

Solaris Tips

In this case anything you put into this directory is visible only to root and even wrong permissions are not visible to outsiders. Before answering this question, let's first provide a little background. TCP Wrappers has been around for many, many years. It is used to restrict access to TCP services based on host name, IP address, network address, etc. Unix for Advanced Users. Unix Mages. TheOpenCD.org.