Sunday, January 6, 2013

Help me to write a linux find command?

Q. I need to find modified txt,xml,html,conf files after 28th October 2010 in /etc/work/ directory and its sub directories . Can someone help me to write the linux find command for that. Thanks

A. I would be inclined to use ls and grep or possibly an awk script to do so although you could just write it in the shell.

ls -algStR will list all files in the current directory and subdirectories in date order
You can then store the output to a file and grep it with the filters you want or process it in any other way that you want

Whats the terminal command for linux mint 4 to access lost and found?
Q. I have linux mint 4. I need to wipe my computer off of junk and reinstall. I also want to upgrade my hardrive and reinstall linux mint 7, and the latest ubuntu. I want to get the junk off manually, search and destroy, and then uninstall. I need that harddrive for my other computer, can you help me out? Linunx mint is the way to go by the way.

A. If you are looking to delete and format the Drive with Linux Mint 4.0 on it I recommend you use Gnome Partition Editor (GParted). For this operation you can run off any Ubuntu or Mint LiveCD as Gnome Partition Editor is included

GParted User Manual
http://gparted.sourceforge.net/docs/help-manual/C/gparted_manual.html

LINUX MINT 7

Linux Mint 7 Release notes
http://www.linuxmint.com/rel_gloria_whatsnew.php

Linux Mint 7 (32bit) Download
http://www.linuxmint.com/edition.php?id=38

The Perfect Desktop - Linux Mint 7 (Gloria)
http://www.howtoforge.com/the-perfect-desktop-linux-mint-7-gloria

UBUNTU 9.04

Ubuntu 9.04 Technical overview
https://wiki.ubuntu.com/JauntyJackalope/TechnicalOverview

Ubuntu 9.04 Download
http://releases.ubuntu.com/jaunty/

The Perfect Desktop - Ubuntu 9.04 (Jaunty Jackalope)
http://www.howtoforge.com/the-perfect-desktop-ubuntu-9.04

ALTERNATIVE

Linux Mint is certainly the way to go however my preference is Linux Mint 6

Linux Mint 6 Release notes
http://www.linuxmint.com/rel_felicia.php

Linux Mint 6 Download
http://www.linuxmint.com/edition.php?id=31

The Perfect Desktop - Linux Mint 6 (Felicia)
http://www.howtoforge.com/the-perfect-desktop-linux-mint-6-felicia


LUg.

How do find all files not in a certain group using the file command in Linux?
Q. I know that using the find command switch -group (name) I can find all files belonging to that group, but I can't figure out how to find all files not belonging to a certain group. Can anyone help?

A. Put a \! before the -group option.
find <directory> \! -group <group>




Powered by Yahoo! Answers

No comments:

Post a Comment