Mount a CDROM in Linux
Answer:
You can mount a CDROM using this command:
# mount /dev/cdrom /mnt/cdrom
Make sure you have created the mount point /mnt/cdrom beforehand.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Mount a CDROM in Linux
Answer:
You can mount a CDROM using this command:
# mount /dev/cdrom /mnt/cdrom
Make sure you have created the mount point /mnt/cdrom beforehand.
Add a user to group in Linux
Answer:
To add a user to a group (supplementary), you can use the command below:
e.g.
# useradd -G admin john
If you want to change the user's primary group, you can use
e.g.
# useradd -g admin john
mount: unknown filesystem type 'nfs'
Answer:
If you attempt to mount a NFS share, using the mount command, e.g.
# sudo mount -t nfs 192.168.1.2:/data/share /mnt/share
And it gives:
mount: unknown filesystem type 'nfs'
You would need to install the nfs clients to solve it:
# sudo apt-get install nfs-common
A command that do nothing
Answer:
In GNU/Linux, there is a command that do nothing, unsuccessfully - the false command.
E.g.
# false
It is common to set the user shell to /bin/false if you don't want the user to login.
Reference: http://www.gnu.org/software/coreutils/manual/html_node/false-invocation.html
Add a User in Linux
Answer:
Add a User in Linux, just use the useradd command:
# sudo useradd -d /home/john -m john
The above command will create the user john and create a home directory which is at /home/john