Jump to content
Sign in to follow this  
slaughters_1

command kegemaran..

Recommended Posts

ethtool ethX = nak tengok eth setting.

ethtool -s duplex full speed 1000 autoneg off = nak set ethtool.

date -s "12:12:12" = nak set jam manually

ntpdate jaring.my = set jam ikut jam pada jaring ntp server.

hwclock = nak tengok jam hardware.

hwclock -w = untuk samakan jam hardware dengan jam system( hardware follow system )

Share this post


Link to post
Share on other sites
Guest
Sama juga... ls, cd, rm -rf
file -s <block device/char file>
file <all normal file/folder>
dd (contoh dd if=/dev/zero of=/dev/sda)
find /usr/include | xargs -I grep -H <keyword> {}
lsmod
modprobe (-r) <module>
./configure [options] && make && make install && make clean
make -C <kernel source path> M=`pwd` modules (betulkan kalau silap)
vi
sed/cut/tr/awk dan seangkatan
top (dan tekan 1 utk tengok semua CPU utilization, betulkan kalau silap)
uname -a
init <init level> (0 = shutdown, 1 = single user/recovery console, 3 = multiuser console, 5 = multiuser console + X, 6 = reboot)
/etc/init.d/<service> <start|stop|restart>
mkfs.<filesystem type> <block device>
mount
buat fail nama yang pelik pelik e.g: ".a", ". b", ". c", "-f", "-v" (cuba try delete pakai rm bagi yg pangkal "-")
lsattr/chattr <file/folder>
chmod +x <file/folder>
nc -vvLp <port number>
nmap -sP/-sS
ifconfig
iwconfig
route
brctl
ethtool
echo <dns ip> >> /etc/resolv.conf
tcpdump -ni <network interface>

# Maaf sekiranya salah, dah lebih 3 bulan tak sentuh Linux

Share this post


Link to post
Share on other sites
ps aux | less ( tekan / pastu masukkan perkataan yang anda cari)

more <nama file>

tail -100 <nama file>

ls -al | grep <nama file atau folder>

locate <nama file atau folder> ( biasanya kena updatedb. Kena guna root akaun)

Share this post


Link to post
Share on other sites
ifconfig

/etc/init.d/networking restart

ps auxwww | grep <application>

top

free -m

df -kh

du .

ls -lort

Share this post


Link to post
Share on other sites
ps -ef | grep XXX

apropos

cat

vi

su - / sudo

rm -riv <nama_fail>

prstat / topas / top

find . -name "*pape_yang_berkenaan*" -exec file {} \;
find . -name "*pape_yang_berkenaan*" -exec ls -lpa {} \;

ssh nama_aku@server

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...