Sponsored Content
Full Discussion: Basic commands for android!!
Operating Systems Linux Android Basic commands for android!! Post 302849641 by shekhar_4_u on Monday 2nd of September 2013 04:29:21 PM
Old 09-02-2013
cat > file_name worked for me. I am surprised why I did not try it earlier. Thanks Cero. Smilie

saved echo -e -n "\033[2J" in my /system/bin file as 'clear'. Its working now but same problem remains. Cursor doesn't go to top left of the screen.

Wisecracker : echo -e -n "\x1B[2J\x1B[1;1H" did not work either.Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix basic commands

I need a sheet with the basic unix commands , and commands for VI editor. Does anyone know where i can get them. (3 Replies)
Discussion started by: Peter Spellman
3 Replies

2. UNIX for Dummies Questions & Answers

basic commands documentation

I'm training a newbie on unix. He's in another site and I can't share my unix books with him - is there any documentation on basic unix commands he can download? (1 Reply)
Discussion started by: kdgorton
1 Replies

3. Shell Programming and Scripting

Need help in sftp basic commands

I'm trying to make use of some common generic functions already present in the scripts loaded in the environment. A variable VAR1 is declared and used in the generic functions. Its value is also set in the generic function. Now I need to use that generic function for PURGING of some old files... (2 Replies)
Discussion started by: livetaurean19
2 Replies

4. Windows & DOS: Issues & Discussions

Basic Unix Commands for cygwin

Hi. I'm New user for this Forum.Presently i'm working with Cygwin I want to know the basic commands that will be used for Cygwin. Can anyone guide me on this regards Thanks & Regards Sanjay (0 Replies)
Discussion started by: sanjay.karthik
0 Replies

5. UNIX for Dummies Questions & Answers

Vi editor basic commands

I would be thankful if anyone could show me commands to do the following tasks in vi:1) How can I undo or redo my last action in vi editor. 2) How can I copy only a word or a portion of line (not the whole line) in vi, like we can select text and press ctrl+c in notepad to copy any text. 3)... (4 Replies)
Discussion started by: nervous
4 Replies

6. Red Hat

Segmentation fault on basic linux commands

Hello out there!!! I have a Red Hat Entreprise Linux 4 server and I am encountering this error # grep Segmentation Fault I know it is not the right use of grep command, but I did that just for testing purpose,then I did # which grep /bin/grep # ls -l /bin/grep -rwxr-xr-x 1 root... (4 Replies)
Discussion started by: inhaki
4 Replies

7. Solaris

Required list of all basic commands for a beginners

I want the commands list to view only files, and only directories and all the basic commands for a beginner of solaris (1 Reply)
Discussion started by: omsingh2k5
1 Replies

8. Android

Example Linux Commands on Android

In case you are interested, here is a partial list of linux-like commands on Android OS: /sbin adbd devmgr recovery dfta init dfta.sh fat.format redbend_ua /system/bin (partial list) sh date netstat mount umount (0 Replies)
Discussion started by: Neo
0 Replies

9. UNIX for Dummies Questions & Answers

Noob scripting question with android ADB commands

Hi I'm pretty new to scripting and I've been googling around looking for an answer but have yet to come up with a proper solution. I work with multiple android devices at a time and I'm looking to simplify my life with a script. Basically I'm looking for a script that takes the device ID's and then... (2 Replies)
Discussion started by: Onyoursix
2 Replies

10. Android

Basic Android platform information.

I am thinking of developing an app' for Android mobile devices... Two questions here:- 1) Does anyone _develop_ for the Android _mobile_ platform? If so do you use OSX 10.7.5 or greater as your _development_platform_? 2) I know ********* is gonna say that the Android terminal/shell is... (13 Replies)
Discussion started by: wisecracker
13 Replies
PHP_UNAME(3)								 1							      PHP_UNAME(3)

php_uname - Returns information about the operating system PHP is running on

SYNOPSIS
string php_uname ([string $mode = "a"]) DESCRIPTION
php_uname(3) returns a description of the operating system PHP is running on. This is the same string you see at the very top of the phpinfo(3) output. For the name of just the operating system, consider using the PHP_OS constant, but keep in mind this constant will con- tain the operating system PHP was built on. On some older UNIX platforms, it may not be able to determine the current OS information in which case it will revert to displaying the OS PHP was built on. This will only happen if your uname() library call either doesn't exist or doesn't work. PARAMETERS
o $mode -$mode is a single character that defines what information is returned: o 'a': This is the default. Contains all modes in the sequence "s n r v m". o 's': Operating system name. eg. FreeBSD. o 'n': Host name. eg. localhost.example.com. o 'r': Release name. eg. 5.1.2-RELEASE. o 'v': Version information. Varies a lot between operating systems. o 'm': Machine type. eg. i386. RETURN VALUES
Returns the description, as a string. EXAMPLES
Example #1 Some php_uname(3) examples <?php echo php_uname(); echo PHP_OS; /* Some possible outputs: Linux localhost 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686 Linux FreeBSD localhost 3.2-RELEASE #15: Mon Dec 17 08:46:02 GMT 2001 FreeBSD Windows NT XN1 5.1 build 2600 WINNT */ if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { echo 'This is a server using Windows!'; } else { echo 'This is a server not using Windows!'; } ?> There are also some related Predefined PHP constants that may come in handy, for example: Example #2 A few OS related constant examples <?php // *nix echo DIRECTORY_SEPARATOR; // / echo PHP_SHLIB_SUFFIX; // so echo PATH_SEPARATOR; // : // Win* echo DIRECTORY_SEPARATOR; // echo PHP_SHLIB_SUFFIX; // dll echo PATH_SEPARATOR; // ; ?> SEE ALSO
phpversion(3), php_sapi_name(3), phpinfo(3). PHP Documentation Group PHP_UNAME(3)
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy