08-19-2008
Alex, what you really want to look at is the file /etc/*-release. It has several lines describing the current Linux distro that your running (see
release-files for the various distro's version of this file)
The file contains several lines containing various parts of the Name - in my case I run Ubuntu and my file is named /etc/lsb-release and contains the following 4 lines -
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu 8.04.1"
the DISTRIB info should be pretty consistent across the many variants
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I'm have old toshiba laptop(t1900) 486, 4mbRAM and ~120MB of hdd
I'm looking for distro to suite my comp, no need for X windows but not enything that runs on FAT, just normal small Linux.
Actually, *BSDs will do as well. If u know any distro that would do this I will be thankful for hint
... (4 Replies)
Discussion started by: wolk
4 Replies
2. UNIX for Advanced & Expert Users
Hola. Here is how my partition table looks:
Device Boot Start End Blocks Id System
/dev/hde1 1 1689 13566861 7 HPFS/NTFS
/dev/hde2 * 1690 2783 8787555 83 Linux
/dev/hde3 2784 2813 240975 82 Linux swap
/dev/hde4 ... (5 Replies)
Discussion started by: Mr_Proper
5 Replies
3. AIX
Hi,
I would like to know, is there a thing that AIX would do it, and RHEL or SLES would not? Something specific and great in the same time.
It might sound weird, but I'm very curios.
Thanks a lot guys! (7 Replies)
Discussion started by: aixn00b
7 Replies
4. UNIX for Dummies Questions & Answers
want to know which Linux distro is 4 me. want 2 teach my self programing and problem solving. i want to learn code and write code. i have an acer aspire one 2GB memory 160 GB HDD intel Atom. look im as noobie as it gets im a MS xp, vista boy want to go beyond graphical click and do... any help... (1 Reply)
Discussion started by: BizilStank
1 Replies
5. What is on Your Mind?
I have been using Linux OS since 4 years and I'm very interested to know how to create a Linux Distro. I have heard about LFS.
I would just like to know, what do I need to create a Linux Distro?
I'm not a programmer, if I have to create a Linux Distro, what programming languages do I need to... (3 Replies)
Discussion started by: Auzern
3 Replies
6. Linux
I hate the fact that my first post is this. Anyhow, I've been using Linux distros such as Ubuntu, Fedora, Debian, openSUSE, and a few others for quite some time now. I've never had a problem with any distro, thus saying that they were all good in my opinion. I've been reading a lot on different... (2 Replies)
Discussion started by: Vex
2 Replies
7. UNIX for Advanced & Expert Users
Hi all, for a while now I've been working on a linux distro and I'm a couple of tweaks away from it to be perfected so if any experts want to help me out please message me.
Thanks in advance.
(I know I've posted a similar thread on the same topic but it was closed due to an unhelpful title... (0 Replies)
Discussion started by: allk
0 Replies
8. Linux
Hello,
I have a Compaq Presario v3000 5 year old laptop, with 1 GB RAM and currently running the (slow and stupid) Windows 7 32 bit, thus I would like to dual boot it with an appropriate distro of Linux that
1) Doesnt consume too much resources (1 GB RAM is not a lot of space) and it ll be... (4 Replies)
Discussion started by: ajayram
4 Replies
9. Open Source
What is your favorite Linux distro?
and possibly why?
Personally, I have Fedora 3 on my computer. I have used Ubuntu and Slackware, too. But I think I liked Ubuntu more, maybe because of its speed and easy installation of packages. (192 Replies)
Discussion started by: milhan
192 Replies
pbput(1) bikeshed pbput(1)
NAME
pbput - compress and encode arbitrary files to pastebin.com
pbputs - compress, encrypt, encode arbitrary files to pastebin.com
pbget - decode and decompress arbitrary files from pastebin.com
SYNOPSIS
pbput [FILENAME]
cat foo | pbput
pbputs [FILENAME] [GPG_USER]
cat foo | pbputs [GPG_USER]
pbget URL [DIRECTORY]
DESCRIPTION
pbput is a program that can upload text files, binary files or entire directory structures to a pastebin, such as pastebin.com.
pbget is a program that be used to retrieve content uploaded to a pastebin by pbput.
pbputs operates exactly like pbput, except it encrypts the data. An optional GPG_USER argument is allowed, which will sign and encrypt the
data to the target user in one's keyring (which could be oneself!). Otherwise, the user is prompted for a symmetric passphrase for
encrypting the content with gpg(1) before uploading. pbget will automatically prompt the receiving user for the pre-shared passphrase.
pbput and pbputs can take its input either on STDIN, or as a FILENAME argument.
- If STDIN is used, then the receiving user's pbget will simply paste the input on STDOUT.
- If a FILENAME or DIRECTORY is passed as an argument, then it is first archived using tar(1) to preserve the file and directory
attributes
pbget takes a URL as its first, mandatory argument. Optionally, it takes a DIRECTORY as a second parameter. If the incoming data is in
fact a file or file structure in a tar(1) archive, then that data will be extracted in the specified DIRECTORY. If no DIRECTORY is speci-
fied, then a temporary directory is created using mktemp(1).
In any case the uploaded/downloaded data is optionally tar(1) archived, always lzma(1) compressed, optionally gpg(1) encrypted, and always
base64(1) encoded. http://pastebin.com is used by default.
EXAMPLES
$ pbput /sbin/init
http://pastebin.com/BstNzasK
$ pbget http://pastebin.com/BstNzasK
sbin/init
INFO: Output is in [/tmp/pbget.bG67DwY6Zl]
$ cat /etc/lsb-release | pbput
http://pastebin.com/p43gJv6Z
$ pbget http://pastebin.com/p43gJv6Z
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
$ pbputs /etc/shadow
Enter passphrase:
http://pastebin.com/t2ZaCYr3
$ pbget http://pastebin.com/t2ZaCYr3
Enter passphrase:
root:09cc6d2d9d63371a425076e217f77698:15096:0:99999:7:::
daemon:*:15089:0:99999:7:::
bin:*:15089:0:99999:7:::
sys:*:15089:0:99999:7:::
....
SEE ALSO
pastebinit(1), lzma(1), base64(1), tar(1), gpg(1), mktemp(1)
AUTHOR
This manpage and the utility was written by Dustin Kirkland <kirkland@ubuntu.com> for Ubuntu systems (but may be used by others). Permis-
sion is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or later pub-
lished by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL, or on the web at
http://www.gnu.org/licenses/gpl.txt.
bikeshed 6 Oct 2010 pbput(1)