Master:
# 1    simple linux commands                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
rename a file:
mv oldfilenam newfilename

list files with size info

ls -s
Hits: 196, Date: 2008-11-11 21:49:55
[Agree] ( 19 ) [Against] ( 20 )

# 2    i hope you add more commands here                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
so that we can make a useful linux libarary here!!!
thanks buddies.
Hits: 194, Date: 2008-11-11 21:53:00
[Agree] ( 20 ) [Against] ( 19 )

# 3    view help for a command                  
hans
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 109
Login 22:26:27
for example crontab,

crontab -- help

add -- help after a command name

Is that simple enough?
Hits: 192, Date: 2008-11-11 21:55:02
[Agree] ( 19 ) [Against] ( 20 )

# 4    how to exit and save crontab -e ?                  
hans
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 109
Login 22:26:27
^ x (Ctrl + x)
then select "yes",then press ruturn button if you have changed, or just automatically exit the editor.
Hits: 190, Date: 2008-11-12 03:13:34
[Agree] ( 20 ) [Against] ( 19 )

# 5    how to change root password?                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
thanks for your help.
Hits: 178, Date: 2009-01-15 22:14:29
[Agree] ( 19 ) [Against] ( 18 )

# 6    I know how to change mysql root password                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
mysqladmin -u root password 'newpassword'

or

mysqladmin -u root -h hostname password 'newpassword'
Hits: 174, Date: 2009-01-15 22:39:11
[Agree] ( 18 ) [Against] ( 16 )

# 7    it is easy to change root password                  
exp
Online no
State
Grouping Member
Class class4
Score 298
Wealth 194
Posts 230
Login 10:43:01
if you logged in as root, then type passwd
This request enter new password twice.
Hits: 170, Date: 2009-01-15 23:17:21
[Agree] ( 19 ) [Against] ( 17 )

# 8    check size of linux partitions                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
use command:
df

the result shows size percentage usage, etc for servera partitions
Hits: 163, Date: 2009-02-19 00:50:27
[Agree] ( 17 ) [Against] ( 19 )

# 9    display it in Mega bytes                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
df -H
Hits: 161, Date: 2009-02-19 01:01:41
[Agree] ( 16 ) [Against] ( 19 )

# 10    mv command is actually for moving a file                  
luke1
Online no
State 453
Grouping Super Admin
Class class4
Score 234
Wealth 54
Posts 218
Login 21:59:32
for example:
mv afile.tar ./afolder/ afile.tar

this move afile.tar in current folder to a new folder, keep the same file name.

rename a file:
mv oldfilenam newfilename

list files with size info

ls -s Posted by: webfun

Hits: 128, Date: 2009-05-06 00:34:06
[Agree] ( 14 ) [Against] ( 14 )

# 11    some more commands for sendmail                  
webfun
Online no
State
Grouping Member
Class class4
Score 156
Wealth 123
Posts 102
Login 03:47:39
hostname
mailq
chkconfig sendmail on
netstat -tlpn
find clientmqueue | wc -l
locate mqueue
tail -f /var/log/maillog
service sendmail start
less maillog
echo 'cat /etc/psa/.psa.shadow'
export columns=159 lines=25
sleep 1
echo "Login Done"
Hits: 124, Date: 2009-06-01 23:43:07
[Agree] ( 12 ) [Against] ( 12 )

1 - 11 [ 11]

Reply: simple linux commands

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing