Basic Commands in FC5
Here are some basic commands that one needs often but remembering them is quite tedious for a beginner. So here I post these for help:
to run a jar file:
java -jar
installing tar packages:
tar -zxvf
compiling source:
extract by tar then go inside the uncompressed dir, type
./configure
then:
make
make install
(after installation executable file goes to /usr/bin or usr/sbin
rpm installation from command line:
rpm -ivh
command for overriding dependencies:
rpm -ivh --force kplayer-0.5.3-0.lvn.1.3.i386.rpm
mounting ntfs partition:
mount /dev/hda5 /media/winxp -t ntfs -r -o umask=0222
For automount:
Edit your /etc/fstab permanently:
/dev/hdb1 /mnt/windows vfat umask=0000,dmask=0000,uid=0002,gid=users,users 0 0
or
/dev/hdc1 /mnt ntfs ro,defaults,umask=0222 0 0
/* don't forget to add a new line char at the end of line*/
starting smb:
chkconfig --list smb
/etc/init.d/smb start
or restart
ref: http://www.reallylinux.com/docs/sambaserver.shtml
list hard disks and partitions:
fdisk -l
make the file executable with the command
Code:
chmod +x /usr/bin/hello.py
chmod +x
Code:for compiling python files
python hello.py
the above method will work if you are in the same directory as the program. else do it like this
Code:
python /full/path/to/hello.py
adding new users:
run 'useradd jsmith' to create a login for him.
yo- set the password for this account (they can change it themselves later) - you can do this by running 'passwd jsmith'
The next thing you need to do is make a home directory for them. This will normally just involve running:
mkdir /home/jsmith
chown jsmith:users /home/jsmith
This creates a directory with the same name as the login account beneath the /home directory - then changes it to be owned by the user.
If you omit the 'chown' command the user will not have permission to save files inside their own home directory!
Have a nice day tinkering with Fedora!
0 Comments:
Post a Comment
<< Home