Linux and UNIX Systems Configuration Help, How To, Tutorial and Basic Information

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
Home How To System
System
How To Enable Root Login on Fedora PDF Print E-mail
Tuesday, 22 December 2009 09:10
AddThis Social Bookmark Button

This how to shows how to enable root log in on fedora GUI Desktop.

  • Open Terminal from Applications -> System Tools
  • Type su - and then insert root pasword
 
How to get Default Port Numbers PDF Print E-mail
Thursday, 03 December 2009 12:50
AddThis Social Bookmark Button

To View a port number type in terminal

for full list:
cat /etc/services
for one you need:
cat /etc/services | grep (port number or service)

View /etc/services file.

 
UNIX, Linux Date and Time PDF Print E-mail
Thursday, 03 December 2009 12:40
AddThis Social Bookmark Button

UNIX, Linux Date and Time Set Date

Set the system time date

# date -s "7 Jul 2008 16:15:00"

Set time hardware

# hwclock --set --date "04 Jul 2008 00:43"

Set linux system clock to hardware clock

# hwclock --utc --systohc

Configure timezone

# timeconfig

Date Sync

Sync time date with time.nyst.gov

# /usr/sbin/ntpdate 192.43.244.18
# /usr/sbin/ntpdate pool.ntp.org
# hwclock --systohc

new option. check it!

# /sbin/service ntpd stop
# /sbin/hwclock -w
# /sbin/service ntpd start

Get Date

Get date and time

# date
# date - u

Get CMOS date time

# hwclock

Show calendar

# cal -1

Get hardware date time

# hwclock
 
Files, Folders Management PDF Print E-mail
Thursday, 03 December 2009 12:35
AddThis Social Bookmark Button

Append "Hello" to /hello.txt

# echo "Hello" >> /hello.txt

Replace /hello.txt and put the "Hello" into the /hello.txt # echo "Hello" > /hello.txt

Show file info

# wc /root/anaconda-ks.cfg

Delete file(s)

# rm *.txt
# rm lala.txt

Create text file

# touch /tmp/myfile

Show current path

# pwd

Show full path of application

# which php
# which ffmpeg
# which httpd

Copy file

cp /root/install.log /root/other/install.log

Move file

# mv ~/root/new-wirks/myfile ~/root/old-work

List files

# ls -la /etc | more

List files partly, for close press "q"

# ls -la /etc | more

Find file where name like "log"

# find / | grep log

Show last 10 lines of the file

# tail /var/log/messages

Show first 10 lines of the file

# head /var/log/messages

Create diretcory

# mkdir mydir

Mount cd-rom

# mkdir /cdrom
# mount /dev/cdrom /cdrom

List files and folder of current folder

# du -h

Show size of current folder

# du -sh

List "/root" files to "/thefiles" file

# du /root >> /thefiles

Get directory total size

# du -ch /home/rommel/bachup | grep total

Change file mode

# chmod 777 kkk.txt

Change directory mode recursive (with subfolders)

# chmod 777 mydir -R
 
Hard Drive Temperature PDF Print E-mail
Thursday, 03 December 2009 12:28
AddThis Social Bookmark Button

Install HDD Temperature.

# yum install hddtemp

Show hdd temperature

# hddtemp /dev/sda

/dev/sda = hdd1, /dev/sdb = hdd2
 
<< Start < Prev 1 2 Next > End >>

Page 1 of 2

Latest News

Tags

by Zaragoza Online

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)