RSS Forums RSS
Please support our Getting Started and Choosing a Distro advertiser: Lunarpages Linux Web Hosting
Views: 25269 | Replies: 18
Reply
Join Date: Apr 2005
Location: SA
Posts: 5
Reputation: niXin is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
niXin's Avatar
niXin niXin is offline Offline
Newbie Poster

Re: Quick Reference for Linux Commands

  #11  
Apr 25th, 2005
I like this one : ls -l|sort +4nr|more - sorts the largest dir in your mail log
Reply With Quote  
Join Date: Jul 2005
Posts: 2
Reputation: mustang68 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mustang68 mustang68 is offline Offline
Newbie Poster

Re: Quick Reference for Linux Commands

  #12  
Jul 14th, 2005
Hello every one. I'm very new in Linux. I have worked on AIX and for what I have seen, the commands and structure are very much close.
The question is:
When I logon to Linux box, I have Korn Shell as the default shell. I know you can switch to other shells (born etc).
So in my pervious environment (aix) my .profile I have the following statements:
~~~~~
VISUAL=vi

#Setup for FULIST

FUPATH=/usr/local
export FUPATH

#Setup for VE

VEPATH=/usr/local
export VEPATH
VVTERM=aixterm

#Below is magic code to enable command line editing. Up/down arrows retrieve previous commands. Left/right move in command line, backupspace to delete.
#
set -o emacs
set -o ignoreeof
alias __A='^P'
alias __B='^N'
alias __C='^F'
alias __D='^B'

what can I do for linux to get this kind of setup
Reply With Quote  
Join Date: Jul 2005
Posts: 2
Reputation: mustang68 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mustang68 mustang68 is offline Offline
Newbie Poster

Re: Quick Reference for Linux Commands

  #13  
Aug 3rd, 2005
Does any one know the command that shows you the filsystem information. For instance, if I want to know how many disks are in a particular filesystem.
In AIX , you have something like this "lslv -l <lv_name>.
So what's the equivalent command for LINUX SUSUE.

Thank you.
Reply With Quote  
Join Date: Aug 2003
Location: Jersey - You gotta problem wit dat?
Posts: 334
Reputation: TheOgre has a spectacular aura about TheOgre has a spectacular aura about TheOgre has a spectacular aura about 
Rep Power: 8
Solved Threads: 5
TheOgre's Avatar
TheOgre TheOgre is offline Offline
Posting Whiz

Re: Quick Reference for Linux Commands

  #14  
Aug 3rd, 2005
cat /etc/fstab

will show the list of partitions/slices that are mountable on the system, along with their filesystem.

Example (from a FreeBSD system):

cat /etc/fstab

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad0s1b             none            swap    sw              0       0
/dev/ad0s1a             /               ufs     rw              1       1
/dev/ad0s1f             /tmp            ufs     rw              2       2
/dev/ad0s1g             /usr            ufs     rw              2       2
/dev/ad0s1e             /var            ufs     rw              2       2
/dev/acd0c              /cdrom          cd9660  ro,noauto       0       0
proc                    /proc           procfs  rw              0       0

The same command works on Linux, Solaris, HP-UX (I think) and the BSDs. If you need to check NFS stuff, it varies by OS.
If you spend more on coffee than on IT security, you will be hacked.
What's more, you deserve to be hacked.
-- former White House cybersecurity czar Richard Clarke
Reply With Quote  
Join Date: Aug 2005
Location: Bangalore,India
Posts: 4
Reputation: chandhru is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
chandhru chandhru is offline Offline
Newbie Poster

Re: Quick Reference for Linux Commands

  #15  
Aug 6th, 2005
ps ax | grep init
If using grep commend like above it won't repeat once same.

ps ax | grep init | grep -v grep
If using grep commend like above it won't repeat once.

Chandhru
Reply With Quote  
Join Date: Apr 2004
Location: Virginia Beach
Posts: 113
Reputation: liliafan is on a distinguished road 
Rep Power: 5
Solved Threads: 2
liliafan's Avatar
liliafan liliafan is offline Offline
Junior Poster

Re: Quick Reference for Linux Commands

  #16  
Aug 7th, 2005
Originally Posted by mustang68
VISUAL=vi
FUPATH=/usr/local
export FUPATH

#Setup for VE

VEPATH=/usr/local
export VEPATH
VVTERM=aixterm

#Below is magic code to enable command line editing. Up/down arrows retrieve previous commands. Left/right move in command line, backupspace to delete.
#
set -o emacs
set -o ignoreeof
alias __A='^P'
alias __B='^N'
alias __C='^F'
alias __D='^B'

This should work in linux, since korn is what does the work in this instance basically if ksh can interprete this in AIX it should work in linux, unless you are using pdksh (public domain korn shell) which isn't entirely compatible with ksh93 (but should be 100% compatible with ksh88).

I also use korn as my default shell it is a lot more powerful that bash and all the bash derivatives (tcsh, zsh)
Application development, webhosting, and much more: www.webcentric-hosting.com
Reply With Quote  
Join Date: Oct 2004
Location: On Earth, I think...
Posts: 246
Reputation: mmiikkee12 is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 4
mmiikkee12's Avatar
mmiikkee12 mmiikkee12 is offline Offline
Posting Whiz in Training

Re: Quick Reference for Linux Commands

  #17  
Sep 3rd, 2005
tcsh is a C shell variant...

2 things you don't want to type:
  • rm -Rf /*
  • dd if=/dev/zero of=/dev/(your HD here)
Reply With Quote  
Join Date: Nov 2004
Location: tiny island in indian ocean
Posts: 138
Reputation: anastacia is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 1
anastacia's Avatar
anastacia anastacia is offline Offline
Junior Poster

Re: Quick Reference for Linux Commands

  #18  
Sep 29th, 2005
hi everyone. even i am new to linux. in fact i was looking for something like that just to get started with linux. i guess i found what i wsa loking for keepmit up and eway to go
:lol: I am not one of those who wait for things to happen, :p but one of those who make things happen ;)
Reply With Quote  
Join Date: Jan 2006
Location: Winnipeg, Manitoba
Posts: 2
Reputation: jackfusion is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jackfusion's Avatar
jackfusion jackfusion is offline Offline
Newbie Poster

Question Re: Quick Reference for Linux Commands

  #19  
Jan 17th, 2006
How do I make it all user can shutdown using unix/red hat 7.2? It is not hook up to the internet. I am using for school.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
All times are GMT -4. The time now is 9:35 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC