Sponsored Content
Full Discussion: Linux FAQ Items
Operating Systems Linux Gentoo Linux FAQ Items Post 302088228 by prashant_ohol on Sunday 10th of September 2006 05:27:19 PM
Old 09-10-2006
Computer How to check system architecture?

Hello,

Please use the following command to check system architecture.
Equivalent to uname -m.

$ arch
i686

$ uname -m
i686

bingo Smilie

Prashant ohol - System Administrator

Last edited by prashant_ohol; 09-11-2006 at 04:51 PM..
 

3 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Unix for Dummies FAQ

I have created a small FAQ for the "Unix for Dummies" forum. Hopefully this will be useful, as there are questions which are asked (and answered) repeatedly. <A HREF="http://www.droflet.net/unix_dot_com_faq.html">http://www.droflet.net/unix_dot_com_faq.html (0 Replies)
Discussion started by: PxT
0 Replies

2. Shell Programming and Scripting

awk between items including items

OS=HP-UX ksh The following works, except I want to include the <start> and <end> in the output. awk -F '<start>' 'BEGIN{RS="<end>"; OFS="\n"; ORS=""} {print $2} somefile.log' The following work in bash but not in ksh sed -n '/^<start>/,/^<end>/{/LABEL$/!p}' somefile.log (4 Replies)
Discussion started by: Ikon
4 Replies

3. Post Here to Contact Site Administrators and Moderators

Dead link in FAQ

Dead link from FAQ, then Technical FAQ: Senior Advisor - https://www.unix.com (Was about to suggest that a O/P read this FAQ). (9 Replies)
Discussion started by: methyl
9 Replies
SETARCH(8)						       System Administration							SETARCH(8)

NAME
setarch - change reported architecture in new program environment and set personality flags SYNOPSIS
setarch arch [options] [program [arguments]] arch [options] [program [arguments]] DESCRIPTION
setarch This utility currently only affects the output of uname -m. For example, on an AMD64 system, running 'setarch i386 program' will cause 'program' to see i686 (or other relevant arch) instead of x86_64 as machine type. It also allows to set various personality options. The default program is /bin/sh. OPTIONS
-v, --verbose Be verbose. -h, --help Display help (it is also displayed when setarch takes no arguments). --uname-2.6 Causes the program to see a kernel version number beginning with 2.6. -3, --3gb Specifies that processes should use a maximum of 3GB of address space on systems where it is supported (ADDR_LIMIT_3GB). -B, --32bit Turns on ADDR_LIMIT_32BIT. -F, --fdpic-funcptrs Userspace function pointers point to descriptors (turns on FDPIC_FUNCPTRS). -I, --short-inode Turns on SHORT_INODE. -L, --addr-compat-layout Changes the way virtual memory is allocated (turns on the ADDR_COMPAT_LAYOUT). -R, --addr-no-randomize Disables randomization of the virtual address space (turns on ADDR_NO_RANDOMIZE). -S, --whole-seconds Turns on WHOLE_SECONDS. -T, --sticky-timeouts Turns on STICKY_TIMEOUTS. -X --read-implies-exec Turns on READ_IMPLIES_EXEC. -Z, mmap-page-zero Turns on MMAP_PAGE_ZERO. EXAMPLES
setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm setarch ppc32 -v -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm AUTHOR
Elliot Lee <sopwith@redhat.com> Jindrich Novy <jnovy@redhat.com> AVAILABILITY
The setarch command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux June 2007 SETARCH(8)
All times are GMT -4. The time now is 05:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy