Started 8 months ago. Learning new things. Went from Windows desktop support to Linux/Unix support. Got a bit rusty on my Linux... Have to learn quick.
New tool to keep handy = Gparted
Created a bootable disk for use in partitioning hard drives.
Also learned that you can rename the .gconf and .gconfd directories from your Linux /home/username directory to get back the default Gnome environment.
CEP OnLine
Tuesday, April 30, 2013
Tuesday, March 19, 2013
Tuesday, October 23, 2012
Thursday, June 14, 2012
LINUX GPG and SHRED
GPG:
gpg -c <filename> (encrypts file after prompting for password)
gpg <filename> (opens file after prompting for password)
gpg --list-keys (shows keys on system)
gpg --export -a user@localhost >file.asc (exports a public key to a file.asc (e-mail@address listed in --list-keys query))
gpg --export-secret-keys -a user@localhost >file.asc (exports secret keys to a file (that way they can be imported into another computer for decryption functions)
gpg --list-secret-keys
gpg --import <filename.asc>
SHRED:
shred -u -v <filename> ( -u = truncate/remove file after shredding, -v = verbose )
Tuesday, June 12, 2012
Linux permissions
Linux permissions:
Column Value Permissions Represented by
------------ ----------- --------------
0 none ---
1 execute-only --x
2 write -w-
3 execute and write -wx
4 read-only r--
5 read and execute r-x
6 read and write rw-
7 read, write, and execute rwx
Linux Crontab command notes
#crontab -l
The structure of the crontab entries is:
* * * * * command to be executed
- - - - -
| | | | |
| | | | >----- day of week (0 - 6) (Sunday=0)
| | | >------- month (1 - 12)
| | >--------- day of month (1 - 31)
| >----------- hour (0 - 23)
>------------- min (0 - 59)
So for example:
* * * * * /sbin/ping -c 1 192.168.0.1 > /dev/null
This will ping 192.168.0.1 once each minute continuously. The > /dev/null portion redirects standard output to /dev/null so that the root user is only emailed if there is an error running the command. You can change this to > /dev/null 2>&1 to also trash error output.
To edit your crontab, run:
#crontab -e
Subscribe to:
Posts (Atom)