Feb 17 2007

Monter une iso

Catégorie : Tips and tricks, sysadmin, LinuxCharles Collier @ 11:36 am

Pour monter directement un fichier iso sous linux:

mount -o loop -t iso9660 fichier.iso /mnt/iso

On a ainsi dans /mnt/iso le contenu de l’iso, ca evite de graver ;-)


Feb 01 2007

Bash Shell Tips

Catégorie : Tips and tricks, sysadmin, LinuxCharles Collier @ 10:51 pm

Native Windows users are reluctant to use Bash shell, even some linux geeks don’t know everything about the very useful shortcuts available in bash shell. But when you use all these shortcuts you can go very quickly ;-)

I’ve tried to compile all of them:
for example
$ Tab Tab –> press ‘$” then ‘Tab’ and another time ‘Tab’

Ctrl + r —> press at the same time ‘Ctrl’ key and ‘r’ key

special ones:

! - repeats the last command
! - execute the (num)th command in history

with TAB

Tab Tab - gives you all the main commands (eventually strating with )
/ Tab Tab - list complete directory structure
* Tab Tab - list directory without hidden one
~ Tab Tab - list users from /etc/passwd
$ Tab Tab - list the System variables
@ Tab Tab - list host(s) from /etc/hosts
= Tab Tab - list the content of a directory like ‘ls’

with CTRL Key

Ctrl + a - Jump to the beginning of the line
Ctrl + b - Move back one char
Ctrl + c - Interrupt the command
Ctrl + d - Delete from under the cursor
Ctrl + e - Jump to the end of the line
Ctrl + f - Move forward one char
Ctrl + h - Backspace
Ctrl + k - Delete to EOL
Ctrl + l - Clear the screen
Ctrl + n - Scroll next command line (read ctrl + p tips)
Ctrl + p - Scroll previous command line
Ctrl + r - Search the history backwards
Ctrl + R - Search the history backwards with multi-occurrence
Ctrl + t - Swap of the last two chars
Ctrl + u - Delete backward from cursor
Ctrl + w - Delete the last word
Ctrl + xx - Move between EOL and current cursor position
Ctrl + x @ - Show possible hostname completions (the same like ‘@ Tab Tab’)
Ctrl + y - paste
Ctrl + z - Suspend/ Stop the command

with ALT Key

Alt + < - Move to the first line in the history
Alt + > - Move to the last line in the history
Alt + ? - Show current completion list
Alt + * - Insert all possible completions
Alt + / - Attempt to complete filename
Alt + . - Yank last argument to previous command
Alt + b - Move backward
Alt + c - Capitalize the word
Alt + d - Delete word
Alt + f - Move forward
Alt + l - Make word lowercase
Alt + n - Search the history forwards non-incremental
Alt + p - Search the history backwards non-incremental
Alt + r - Recall command
Alt + t - Move words around
Alt + u - Make word uppercase
Alt + backspace - Delete the last word (like Ctrl + w)


« Page précédente