怎么查看安装的ubuntu是32bit还是64bit?

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
simonwolf
帖子: 18
注册时间: 2008-04-19 20:59

怎么查看安装的ubuntu是32bit还是64bit?

#1

帖子 simonwolf » 2008-10-07 0:32

我是在Vritual box上安装 ubuntu的。。

我想知道 我安装的ubuntu是32bit 还是64 bit ??

怎么查看呢??
头像
hethe
帖子: 3666
注册时间: 2005-08-01 9:14

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#2

帖子 hethe » 2008-10-07 0:40

32
Gedanken ohne Inhalt sind leer .Anschauungen ohne Begriffe sind blind.
头像
runpin
帖子: 647
注册时间: 2005-09-29 11:13
来自: Boston, MA

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#3

帖子 runpin » 2008-10-07 3:20

cat /etc/issue
或者
sudo lsb_release -a

不过只能看到版本号

你的操作系统是32的,就只能虚拟32的,反之一样。
chasye
帖子: 333
注册时间: 2007-05-13 15:20

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#4

帖子 chasye » 2008-10-07 8:07

uname -a
hbolive
帖子: 89
注册时间: 2008-04-24 20:01

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#5

帖子 hbolive » 2008-10-07 10:02

xxxx@xxxx-desktop:~/Desktop$ uname -a
Linux xxxx-desktop 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux
xxxx@xxxx-desktop:~/Desktop$ sudo lsb_release -a
[sudo] password for xxxx:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.1
Release: 8.04
Codename: hardy
xxxx@xxxx-desktop:~/Desktop$ 32
bash: 32: command not found
xxxx@xxxx-desktop:~/Desktop$ cat /etc/issue
Ubuntu 8.04.1 \n \l

xxxx@xxxx-desktop:~/Desktop$
查了实在看不出是32bit还是64bit?
头像
boreascn
帖子: 385
注册时间: 2008-03-26 14:28

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#6

帖子 boreascn » 2008-10-07 11:10

你用uname -a的时候看到的i686就是32bit的。。
头像
璇歌
帖子: 122
注册时间: 2006-11-06 22:53
来自: 贵州大学
联系:

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#7

帖子 璇歌 » 2008-10-07 15:02

uname -m | grep "_64"
hbolive
帖子: 89
注册时间: 2008-04-24 20:01

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#8

帖子 hbolive » 2008-10-07 15:42

uname -m | grep "_64"
xxxx@xxxx-desktop:~/Desktop$ uname -m | grep "_64"
xxxx@xxxx-desktop:~/Desktop$ uname -m | grep "_32"
xxxx@xxxx-desktop:~/Desktop$
什麽也看不到??? :em05
simonwolf
帖子: 18
注册时间: 2008-04-19 20:59

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#9

帖子 simonwolf » 2008-10-07 23:18

hbolive 写了:xxxx@xxxx-desktop:~/Desktop$ uname -a
Linux xxxx-desktop 2.6.24-19-generic #1 SMP Wed Aug 20 22:56:21 UTC 2008 i686 GNU/Linux
xxxx@xxxx-desktop:~/Desktop$ sudo lsb_release -a
[sudo] password for xxxx:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.1
Release: 8.04
Codename: hardy
xxxx@xxxx-desktop:~/Desktop$ 32
bash: 32: command not found
xxxx@xxxx-desktop:~/Desktop$ cat /etc/issue
Ubuntu 8.04.1 \n \l

xxxx@xxxx-desktop:~/Desktop$
查了实在看不出是32bit还是64bit?
兄台用的好像和我一样。。。
simonwolf
帖子: 18
注册时间: 2008-04-19 20:59

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#10

帖子 simonwolf » 2008-10-07 23:20

boreascn 写了:你用uname -a的时候看到的i686就是32bit的。。
真的吗? 可是我的cpu是64bit. 只是我装了32bit的windows, 然后再这个windows上装了virtual box.

然后又在这个virtual box上装了 ubuntu 8.04.

郁闷的是 我在编译gcc4.3.2时探测到了i686. 但是在后面的编译过程汇中错误了。。
头像
runpin
帖子: 647
注册时间: 2005-09-29 11:13
来自: Boston, MA

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#11

帖子 runpin » 2008-10-08 9:15

这跟你host的CPU没有任何关系,host的操作系统是32位的,安装的vbox就只能是32位的,那也就只能安装32位的ubuntu。
头像
boreascn
帖子: 385
注册时间: 2008-03-26 14:28

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#12

帖子 boreascn » 2008-10-08 9:28

楼上正解。。想用64bitubuntu,那就实际安装吧,不要虚拟了。。
qin19683
帖子: 151
注册时间: 2008-09-14 11:46
来自: 深圳

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#13

帖子 qin19683 » 2008-10-08 10:46

唉 直接下个amd64的包装下试试 提示有问题就是32的 直接装好了就是64的 :em04
mimosazhenzhen
帖子: 3
注册时间: 2012-02-29 12:44

Re: 怎么查看安装的ubuntu是32bit还是64bit?

#14

帖子 mimosazhenzhen » 2012-02-29 12:46

#file /sbin/init

我试过的,可以的


1. file 是检测文件类型的命令。

2. 文件类型就文件组织的方式,通常不同的文件类型执行不同的标准。
例如我们熟知的:txt , doc , xls , pdf ...

3. file 命令的简单用法就是:
file 文件名,例如:
file data.txt
data.txt: ASCII text

就告诉我们,data.txt 是一个text (即txt) 类型的文件。
txt 文件所采用的编码是ascii编码体系。
所以 text 是文件类型;ASCII是编码体系。

又如:

file my.pdf
my.pdf: PDF document, version 1.5
“PDF document“ 告诉我们 , my.pdf 是pdf类型的文件。
版本执行的标准是:1.5

像ascii , version 1.5 这些都是与文件类型密切相关的信息。
如果需要更详细的信息,可以加参数:
如:file -i data.txt



使用man file 看详细用法。
回复