LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2008, 03:20 PM   #1
kemet
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
top 50 things to know


I am new here and I have been using Ubuntu and Gentoo for a few months now...I was wondering about tips/tricks for Ubuntu or Gentoo that may come in handy - even if its simple technique all is welcomed. I am trying to put together a little help guide for myself so i can get more grounded in these distros, can anyone help me please? Could be from desktop to server configuration anything is helpful. Thanks in advance.
 
Old 08-22-2008, 03:26 PM   #2
Yuki_Nagato
LQ Newbie
 
Registered: Mar 2008
Distribution: Slackware 12.1
Posts: 14

Rep: Reputation: 0
"sudo XXX" will prompt you for a password the first time, a nice warning that makes you think for an extra second. It doesn't do that the second time. Watch out.

For Ubuntu: "sudo apt-get install ubuntu-restricted-extras" will allow you to get around the GNU and play much media and such.
 
Old 08-22-2008, 04:06 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
If you have installed something and want to know where it has installed or what files have been modified/created or you downloaded something but you don't remember where it downloaded you can try a simple command:

find / -cmin -10

it will find all the files created within the last 10 minutes

find / -mmin -10

it will find all the files modified within the last 10 minutes.

Last edited by sycamorex; 08-22-2008 at 05:20 PM.
 
Old 08-22-2008, 05:10 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by sycamorex View Post
I've you have installed something and want to know where it has installed or what files have been modified/created or you downloaded something but you don't remember where it downloaded you can try a simple command:

find / -cmin -10

it will find all the files created within the last 10 minutes

find / -mmin -10

it will find all the files modified within the last 10 minutes.

Ummmm ... NO.

Linux has no knowledge of file creation times. The difference
between mmin and cmin (or mtime/ctime, respectively) is that the
c-variants mark the time the files INODE information was last
modified, whereas the m-ones pertain to the files content.

Most of the time you'll find them to be the same.


Cheers,
Tink

Last edited by Tinkster; 08-22-2008 at 05:11 PM.
 
Old 08-22-2008, 05:19 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
oops, my apologies
 
Old 08-22-2008, 05:28 PM   #6
texasone
Member
 
Registered: Jun 2008
Location: /home/lorax
Distribution: Debian Testing
Posts: 141

Rep: Reputation: Disabled
$ rm XXX
will delete a file

$ rm -rf XXX
will delete a folder

make sure that you double check to make sure you have the right file/folder to delete because the remove command will plain old remove, it won't place it in the trash. its best to "cd" to the folder that it is kept in because then you only need the name and you don't need to type a bunch of folders. and never, with out absolutely knowing what it is, deleting something because some one online told you too.
 
Old 08-23-2008, 12:07 AM   #7
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Sometimes I like to create a backup file when I'm about to edit the original, like say httpd.conf or similar and the path could be rather lengthy, so something like this saves you some typing:

Code:
# ls /etc/httpd/conf.d/httpd.conf
httpd.conf
# cp /etc/httpd/conf.d/httpd.conf{,.bak}
# ls /etc/httpd/conf.d/httpd.conf*
httpd.conf    httpd.conf.bak
You could pretty much do the same thing to compare the files later with diff by doing:

Code:
# diff /etc/httpd/conf.d/httpd.conf{.bak,}

Another thing I like or find handy is something like this to take the previous listings after a command to run against another command:

Code:
# touch file1 file2 file3
# ls !*  
ls file1 file2 file3
file1  file2  file3
Also something else I don't see used as often is this and comes in handy to switch back to a directory with little typing:

Code:
# cd /home/trickykid
# pushd .
/home/trickykid  /home/trickykid
# cd /var/lib/mysql
# popd
/home/trickykid
# pwd
/home/trickykid
 
  


Reply

Tags
advice, beginner, notes



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Top 10 things Dell customers want from the company LXer Syndicated Linux News 1 02-20-2007 08:36 AM
LXer: Top 10 Things You Could Be Doing Instead of Attending Ohio Linux Fest LXer Syndicated Linux News 0 09-05-2006 10:54 AM
LXer: Top 5 Things Microsoft Can Learn from Linux LXer Syndicated Linux News 0 07-31-2006 04:21 AM
The Top 20 things that don't work in a new FC3 install. t3gah Fedora 50 09-05-2005 04:39 PM
Top things annoying in Linux? awdoyle General 171 12-13-2002 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration