*nix Thread, What are some time-saving tips that every Linux user should know? in Technical; Linux: What are some time-saving tips that every Linux user should know? - Quora
24th March 2011, 11:37 AM #1
What are some time-saving tips that every Linux user should know?
Last edited by somabc; 24th March 2011 at 11:58 AM.
29th March 2011, 03:45 PM #2
- Rep Power
Tips - tar thru ssh to copy directorys from server to server
tar -zcvf - some_directory | ssh some_user@some_host 'cat > some_destination_file_path.tgz'
Tars, compresses, and copies a directory across servers in one step.
There are a number of variations on this command set, I use this one to illustrate the power of SSH since I think it's reasonably straightforward for less-experienced users to understand and adapt to their needs.
Rsync can do it even better, but this forms an encrypted tunnel.
29th March 2011, 06:58 PM #3
Tip 01 Incrementally searchable bash history
create (or edit) your ~/.inputrc
edit ~/.bashrc and bump up your command history retention.
Upon reloading the console session, you can start typing, hit the up arrow key and incrementally search your command history.
Tip 02 Need to give someone quick access to a file on a local network?
will serve the current directory tree at http://HOSTNAME:8000
python -m SimpleHTTPServer
Tip 03 Human readable top-level space usage
alias du -h --max-depth=1 to "duh"
Tip 04 Logging what you did to make 'X' work
Logs all commands typed to whatidid.log. Use Ctrl +D to end
Tip 05 (For herding larg-ish amounts of servers)
Use something like Puppet (Puppet Labs: The Leading Open Source Data Center Automation Solution) and SVN (or rcs of choice) to make it easy to provision servers and maintain configs.
Edit: Look here too http://www.commandlinefu.com/commands/browse BUT be aware there's some daft things posted occasionally so work out what a command does before you use it in production.
Last edited by pete; 29th March 2011 at 07:02 PM.
2 Thanks to pete:
jinnantonnixx (3rd April 2011), powdarrmonkey (29th March 2011)
3rd April 2011, 07:20 PM #4
If you administer any Linux systems I really recommend Unix and Linux System Administration Handbook: Amazon.co.uk: Evi Nemeth, Garth Snyder, Trent R. Hein, Ben Whaley: Books
This book approaches system administration in a practical way and is an invaluable reference for both new administrators and experienced professionals. It details best practices for every facet of system administration, including storage management, network design and administration, email, web hosting, scripting, software configuration management, performance analysis, Windows interoperability, virtualization, DNS, security, management of IT service organizations, and much more. UNIX® and Linux® System Administration Handbook, Fourth Edition, reflects the current versions of these operating systems:
Red Hat® Enterprise Linux®
Oracle America® Solaris™ (formerly Sun Solaris)
Last Post: 6th June 2011, 04:27 PM
By EduTech in forum IT News
Last Post: 26th January 2010, 03:52 PM
By ZeroHour in forum Jokes/Interweb Things
Last Post: 18th February 2008, 10:27 AM
By tom_newton in forum *nix
Last Post: 15th January 2008, 12:36 PM
By tickmike in forum *nix
Last Post: 22nd September 2006, 11:32 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)