Thursday, March 15, 2012

Command Under Root User

# cd /home [to enter home directory]

# cd [to enter root directory from anywhere]

# ls [to show the content]

# cd /etc/;ls [to enter & show the content at a time]

# cd pp [to enter a folder name ‘pp’ not under mount point]

# cd /etc/pp [to enter a folder ‘pp’ under /etc folder]

# ls –F [to show folder]

[ /-> folders , @-> configuration files , *-> execution files , all others are normal files. ]

# ls –s file_name [to show size in KB]

# ls -a [to show hidden files]

# ls -la [to show al files at a time]

[*Blue color or ‘D’ before name -> Folder or , all other colors or ‘-‘ before name -> files.]

# more install.log [to show the whole installing package]

# /usr/bin/setup [to configure hardware, in FedoraCore/Unix-> # /setup ]

# fdisk -l [to show harddisk information]

# df [to show linux partition]

# df -h /dev/hda5 [to show information of D drive]

# history [to show history]

# history -c [to clear history]

No comments:

Post a Comment