Unix/Linux Go Back    


Android Brand new forum for folks interesting in Linux and Java-based Android OS and multi-platform mobile computing in general.

Basic commands for android!!

Android


Closed    
 
Thread Tools Search this Thread Display Modes
    #15  
Old Unix and Linux 09-02-2013
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 27 July 2017, 4:41 PM EDT
Location: Aachen, Germany
Posts: 11,067
Thanks: 284
Thanked 3,412 Times in 3,142 Posts
Try
Code:
echo -en "\033[2J\033[1;1H

Sponsored Links
    #16  
Old Unix and Linux 09-03-2013
wisecracker's Unix or Linux Image
wisecracker wisecracker is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 24 July 2017, 10:18 AM EDT
Location: Loughborough
Posts: 1,213
Thanks: 364
Thanked 322 Times in 252 Posts
To shift the cursor to (H)ome you could try manually first to see if this works:-

Code:
echo -n $'\x1B[H'

If not then you might have to juggle the vertical tabs or cursor position using similar methods as before see here:-

ANSI escape code - Wikipedia, the free encyclopedia

EDIT:
An example:-

Code:
echo -n $'\x1B[2J'$'\x1B[24A'

This works on the very limited OSX 10.7.5 "/bin/echo" command too...

Last edited by wisecracker; 09-03-2013 at 03:29 AM.. Reason: Add an example...
The Following User Says Thank You to wisecracker For This Useful Post:
shekhar_4_u (09-04-2013)
Sponsored Links
    #17  
Old Unix and Linux 09-03-2013
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 27 July 2017, 5:03 PM EDT
Location: Saskatchewan
Posts: 22,298
Thanks: 1,111
Thanked 4,204 Times in 3,888 Posts
Quote:
Originally Posted by shekhar_4_u View Post
cat > file_name worked for me. I am surprised why I did not try it earlier. Thanks Cero. Linux

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.
You do not have a real terminal... (edited by neo). There's entire categories of things it cannot or will not do. Most people, once they root a machine, install sshd so they can login with a real terminal and do real things.
    #18  
Old Unix and Linux 09-04-2013
shekhar_4_u shekhar_4_u is offline
Registered User
 
Join Date: Sep 2011
Last Activity: 7 July 2017, 5:31 AM EDT
Location: INDIA (delhi)
Posts: 57
Thanks: 34
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by Corona688 View Post
You do not have a real terminal, just some java pretend junk. There's entire categories of things it cannot or will not do. Most people, once they root a machine, install sshd so they can login with a real terminal and do real things.
Thanks Corona.

I installed BusyBox and thereafter I am able to access 'clear', 'vi' etc commands.

I also installed sshd server and client. Accessed my cell through my laptop using ssh also connected to my Database server through mobile.

thanks Everyone!! Linux
Sponsored Links
    #19  
Old Unix and Linux 09-05-2013
PheekaJabal's Unix or Linux Image
PheekaJabal PheekaJabal is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 12 December 2013, 1:58 AM EST
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Just wondering through the forum and find this good one so wanted to like the discussion.
It was very useful visit for me...
Keep it up......

Last edited by PheekaJabal; 12-12-2013 at 01:58 AM..
Sponsored Links
    #20  
Old Unix and Linux 09-05-2013
shekhar_4_u shekhar_4_u is offline
Registered User
 
Join Date: Sep 2011
Last Activity: 7 July 2017, 5:31 AM EDT
Location: INDIA (delhi)
Posts: 57
Thanks: 34
Thanked 2 Times in 2 Posts
Quote:
Originally Posted by PheekaJabal View Post
Just wondering through the forum and find this good one so wanted to like the discussion.
It was very useful visit for me...
Keep it up......
Welcome to the family.LinuxLinux

Certainly, It is one of the best forums.Linux
The Following User Says Thank You to shekhar_4_u For This Useful Post:
PheekaJabal (09-05-2013)
Sponsored Links
    #21  
Old Unix and Linux 09-05-2013
PheekaJabal's Unix or Linux Image
PheekaJabal PheekaJabal is offline
Registered User
 
Join Date: Sep 2013
Last Activity: 12 December 2013, 1:58 AM EST
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by shekhar_4_u View Post
Welcome to the family.LinuxLinux

Certainly, It is one of the best forums.Linux
Yeah....!
I agree......
hope for a long stay here...
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Noob scripting question with android ADB commands Onyoursix UNIX for Dummies Questions & Answers 2 10-21-2011 12:02 AM
Example Linux Commands on Android Neo Android 0 09-27-2010 02:04 PM
Need help in sftp basic commands livetaurean19 Shell Programming and Scripting 2 06-15-2005 08:41 AM
basic commands documentation kdgorton UNIX for Dummies Questions & Answers 1 02-20-2005 03:19 AM
Unix basic commands Peter Spellman UNIX for Dummies Questions & Answers 3 08-10-2001 07:41 PM



All times are GMT -4. The time now is 10:54 AM.