You are on page 1of 2

Basic network command

# # # # # # # # # # # # # # # # # # system-config-network (set ip) system-config-network-tui (set ip) neat-tui (set ip) service network restart(start network service) ping ip a ip ad ip add ipconfig ifdown eth0 (disable the nic or lan card) ifup eth0 (enable the nic) mli-tool (check the nic) hostname (check hostname) hostname name (change hostname) vi /etc/sysconfig/network (change hostname permanent) vi /etc/resolve.config (change dns name) vi /etc/sysconfig/network-script/ifcfg-eth0 ethtool eth0 (check status of lan card)

VI-Editor
: se nu : se nonu dG yg ctrl+r :%s/my/ggg/g (set number of the text) (remove number) (to delete all the line after the cursor) (to copy all the line after the cursor) (to redo (to change the my word with ggg)

Linux file system in depth


# # # # # # # # # gzip filename bzip filename gunzip filename bunzip filename zcat filename du du H df H baobab (compress the file with extension .gz) (compress the file with extention .bzz) (uncompress the file which has .gz extention) (umcompress the file with extention .bzz) (open the compressed file with extention .gz) (to see used space of disk) (to see used space in byte) (to see free space in byte) (to see free space of /)

du si filename

(to see size of particular file)

You might also like