Jump to content

Tips&Tricks Good console tips


aru
 Share

Recommended Posts

 

DOlson

Moderator

Joined: 16 Apr 2002

Posts: 2393

Location: Canada

 

Post Posted: Mon Jul 08, 2002 12:58 am Post subject: Good console tips

_________________________________________________________________

 

 

* [ABCabc]* selects A*, B*, C*, a*, b* and c*. Did you know that Linux is case sensitive in file- and directory names?

 

* Too lazy to type in long filenames? Type the first characters and press the TAB key. That activates file completion (great for RPM's!) If there are more files that fit the description, they are shown so you can add more letters and TAB again:

 

[paul@internet paul]$ ls wol<TAB>

wolflatest.htm wolfpage.htm wolfpics.htm wolfvisit.htm wolfpage2.htm wolfpics wolfsponsor.htm

[paul@internet paul]$ ls wolf

 

* cp somefile00[135] /temp will copy somefile001, somefile003 and somefile005 to /temp, but it won't touch somefile002 and somefile004 if they exist.

 

* To remove text from the cursor to the end of the line, press CTRL-K To remove text from the cursor to the beginning of the line, press CTRL-U.

 

* Linux has hidden files. But you can't see them. (That's why they're hidden.) Curious for them? Then use ls -a Suddenly you see all kinds of files with a "." in front of them, and directories too. Those are your hidden files. Don't mess with them unless you know what you're doing: they're hidden for a reason...

 

* Unpacking, untarring, unbz2-ing:

For .tar.gz files: tar -zxvf somefile.tar.gz

For .tar.bz2 files: tar -Ixvf somefile.tar.bz2

 

* Copy a Data CD from the cdrom drive to the CDwriter with

dd if=/dev/cdrom | cdrecord -v -eject speed=4 dev=0,0 -

 

* Copy an Audio-CD with

cdparanoia -vB 1- ~/tmp/name && cdrecord -v speed=8 dev=0,0,0 -pad -audio ~/tmp/track*

 

Stolen from: http://nlpagan.net/linux.htm#software

 

 

sminons

Newbie

Joined: 13 May 2002

Posts: 20

Post Posted: Fri Sep 20, 2002 12:01 pm Post subject: Another tip

_________________________________________________________________

 

 

Use Ctrl+D to logout of a console from superuser status as well as a user status

 

 

 

Editor's note: This thread was originally posted at the old MUB (Mandrake User Board at club-nihil). This post is the result of a 99% automatic backup, so due to its nature some text may be lost (improbable but possible).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...