Wednesday, January 11, 2012

Quick Linux Tips (Part1)


ssh-Y host
Running X clients with safe,. DISPLAY is automatically encrypted and make tunnel for X protocol back on track.

cd -
Back to the last directory visited.

killall / path / to / file
Turning off a process to quickly and easily.

shred-u-z-v file
Deleting files securely, first override it (25 times).

Finding files fast
If your system configuration files, but just remember some names, use the "locate a name". Can search faster than find / ... and easier to use. (Run updatedb at regular intervals so that the database is always up-to-date.

Copy a directory
Men'copy entire contents of a directory you can do by using the command:
(cd / old / directory: tar cf -.) | (cd / new / directory: tar xf -) Make

Environment
When using BASH, you can create an environment variable with a single command:
MYDRAFT = / usr / bin / vi / home / Faiz / mailtoday.txt

Viewing files kompresan
Use zcat and zless to see kompresan zip file. Meanwhile, to view the contents of a file using bzip2 kompresan bzchat, bzless, bzdiff.

cutting files
If the files you send or store is too large, cut the file into several parts.
split-b 500 / tmp / attachment.zip, to divide each file attachments to 500 kilobytes.


calendar
To view the calendar in 2050, use the command "cal 2050".

No comments:

Post a Comment