Linuxconfig.org - Linux Questions and Answers
synchronize time with NTP server on Ubuntu 10.04
Last Updated on Sunday, 15 May 2011 14:00
Question:
Hi Could u please tell me how to synchronize time with NTP server on Ubuntu 10.04 THX
Answer:
First you need to install ntpdate package. Login as a root install enter:
# apt-get install ntpdate
When installed execute a following command as a root user:
# ntpdate pool.ntp.org
Â
Add a commentSimple file Encryption and Decryption using encryption key
Question:
Is there a easy way to encrypt and decrypt a file on a Ubuntu Linux system?
Answer:
If you are looking for a simple way to encrypt and decrypt files your should consider to use ccrypt. Use a following command to install ccrypt on a Ubuntu Linux system:
# apt-get install ccrypt
When ready you can use ccrypt to encrypt any file. Example:
Add a commentRead more: Simple file Encryption and Decryption using encryption key
Bash for loop with files containing white space
Last Updated on Wednesday, 13 April 2011 07:21
Question:
i've got a problem when using wild cards like "*.jpg". maybe you have a hint for that resp. want to add an example for the community:
- there is a directory with files,that also have spaces in the name
- i want to write a script that creates thumbs from its jpgs (using mogrify)
- if i call the script with arg "*.jpg" then the names are resolved as space delimitered strings
- inside the script i can't find out anymore, if space is a delimiter or part of the name
What i found is an option in ls "-b" that escapes the spaces. This could be the solution. Is there a way to resolve "*.jpg" in a escaped way?
Answer:
You may want to set $IFS ( Internal Field Separator ) variable to avoid your for loops break when encountered with a whitespace character such as space or tabs.
Add a commentGnome-mastermind game and Ubuntu Linux
Last Updated on Thursday, 02 June 2011 17:22
Question:
I'm new to Linux and recently I have installed Ubuntu Linux. I'm wondering how would I install new software like games and etc. I'm really fan of a mastermind game and wish to have it also on my Ubuntu linux. Is there anything like mastermind game for Ubuntu linux?
Answer:
Ubuntu linux comes with thousands of software package which are waiting to be installed by the end user. Just a portion of those packages is installed on your system by default. You as end user can make a decision which packages would be best to be installed on your system to fit your needs. To search all available packages for a mastermind game from command line execute a following command:
Add a commentBatch image resize using linux command line
Last Updated on Thursday, 07 April 2011 19:16
Question:
How can I batch resize of multiple images using ubuntu linux command line? Is there any tool which would help me with this and/or is there GUI application which makes image resizing easy. I have hundreds of images and therefore I'm in need of such a tool.
Answer:
The best and the easiest way to resize multiple images using linux command line is to use imagemagick tools. First you need to install imagemagick package:
# apt-get install imagemagick
Once installed you will have multiple image processing tools available to our disposal, such as convert, identify and etc.
Add a commentMore Articles...
- Calculate column average using bash shell
- How do I ping a specific port of a remote server?
- Remove all files and directories owned by a specific user
- Iptables to reject all INPUT and OUTPUT except specific hosts
- Changing vmware vmnet bridged physical network interface
- Extract unique IP addresses from an apache log
- Installing Linux MINT 10 and partitioning harddrive
- Rename all files and prefix a time-stamp to all file names
- Generate random numbers with $RANDOM
- How do I autostart application after login to KDE4
- How to create file in linux
- Linux ipconfig equivalent
- How to Disable SElinux
- Bash reverse counting with while loop
- The difference between parameter and variable in bash
- Fedora - Missing /etc/syslog.conf a syslog configuration file
- How do I display user ID associated with a process?
- ls command with a long listing format output
- Match beginning and end of the filename using meta characters and regex
- How do I locate all files installed from a RPM package?
- Automatically mount USB external drive with autofs
- Change tty font size with Grub 2 boot console resolution
- How do I print all arguments submitted on a command line from a bash script?
- How do I automatically start an application after KDE start up?
- In what directory will the command cd .. not do anything at all?
- What access modes (permissions) are given to new created files?
- What command prevents other users from sending you messages?
- Command to display the name of the local system
- Why is the GNU/Linux filesystem referred to as hierarchical
- Combine files into a single file
- Command to retrieve the current working directory
- Single linux command to return to home directory
- Linux command that creates a new subdirectory
- What character must be in front of an absolute path
- Look at the first 3 lines of a file
- Location of cp command
- Command that makes a guess about the file content
- Command to locate the word within a text file
- Keyword search in the online manual
- Differences between the cat and ls utilities
- A command retrieve information from the online manuals
- what is the use of / in RhEL 5 ?
Page 1 of 10













