LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2014, 08:53 AM   #1
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Rep: Reputation: Disabled
How can I watch the processes in such level


I want to observe how the command "exec" work in the level shown in the video, I mean there is no GUI

I would love to see how exec swaps the ls command with bash


Any idea how to do that? any kernel logs that I can see?


http://www.youtube.com/watch?v=h7v7kqyz7XU
 
Old 09-04-2014, 11:40 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Maybe I don't understand the question, but press [ctrl][alt] + [F1] and you should see a CLI login screen. Actually you can press any of [F1] through [F6] and have multiple CLI sessions running. To get back to the GUI press [ctrl][alt] + [F7].

If this isn't what you mean please do clarify...
 
Old 09-04-2014, 12:55 PM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
exec <command> will replace the current shell, and <command> will be running (in place of your original shell - it does not exist any more, overwritten). When the <program> completed your login will be terminated as well because you replaced your login shell (that happened in that video). ls terminates almost immediately, therefore you will not see the result of the command. You can check it by executing ls > /tmp/ls and check the file /tmp/ls afterward. top will running as long as you wish, after quitting you will be returned to the login prompt again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
*SOLVED* No more processes in this run level terry.jacobs@rsli.com Linux - Server 1 06-15-2010 03:58 PM
No more processes left in this run level Romanrp Slackware - Installation 1 10-25-2009 10:15 AM
INIT: no more processes left in this run level zarazek Linux - Software 1 12-12-2007 08:38 AM
MYSQL: num/size of OS level processes chrism01 Linux - Software 0 05-05-2005 03:34 AM
Samba Upgrade Watch (For User Level Access Control Support) Larry James Linux - Networking 7 11-08-2000 12:13 PM


All times are GMT -5. The time now is 03:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration