Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Thursday, February 6, 2014

5 entertaining Linux Commands

0 comments

5 entertaining Linux Commands

Perhaps you need a few quick commands  to apply in Terminal for entertainment after a long day and hard work , for good luck we are here , you will learn about the day to 5 entertaining commands to run in your terminal.

telnet towel.blinkenlights.nl

telnet towel.blinkenlights.nl

It works on most Linux distributions , is simply star war scenario works from the terminal , really fun !

sl

sl

Simple command shows you a moving train in Terminal , you can use the For loop if you want to repeat the process quickly or for the infinite and onwards :)

May not be installed on your distribution , use sudo apt-get install sl to install it on Ubuntu and daughters and sudo yum install sl to install it on Fedora and derivatives.

fortune

If one cannot enjoy reading a book over and over again, there is no use in reading it at all. - Oscar Wilde

Is useful and fun at the same time , showing the words and a group of ruling party and entertaining in English , contains a lot of them , some really entertaining , you'll need to install it in Ubuntu by sudo apt-get install fortune and sudo yum install fortune in Fedora .

yes i love linux

i love linux i love linux i love linux i love linux i love linux
Are you well now? Dish it and you'll find words of love to fill the Linux terminal back and back :)

cmatrix


cmatrix

Certainly you will learn to symbolize what those green numbers and letters .. Matrix .. The causal .. In the end we all enjoyed by the respective movements Mr.Anderson a combat :) 

You'll need to install the package on your distribution cmatrix .. As usual, you can use apt-get and yum.


     
Read more...

Sunday, January 26, 2014

Changing gtk themes via the Command Line

0 comments

Changing gtk themes via the Command Line

This list of commands which we are going to show later helps changing various theme-related settings in Gnome based desktop.

These commands work with Gnome 3, Unity, Cinnamon, Mate desktop, and also the old Gnome 2 desktop(if you still using it).

Why we need to type some commands to get it done instead of a Gui tool ?

This is important to ask in such situation. In Gnome 2(and Mate today) all the these settings can be easily changed using build-in Gui tool called Appearance Preferences. Unfortunately in modern desktops such as Unity Gnome 3 ... we have Gui tools that can do the same, like Gnome Tweak Tool, Ubuntu Tweak, or MyUnity, but with limitations. It means that "Appearance Preferences" (Gui tool to tweak Gnome 2 and Mate) is powerful than any other tweaking tool.

Since "Appearance Preferences" doesn't come with all desktops except Mate, The command line will be the only replacement.


1 - Change GTK Theme


Unity, Gnome 3 Shell/Classic, Cinnamon
gsettings set org.gnome.desktop.interface gtk-theme "Mytheme"

Mate
mateconftool-2 --type=string --set /desktop/mate/interface/gtk_theme "Mytheme"

Gnome 2
gconftool-2 --type=string --set /desktop/gnome/interface/gtk_theme "Mytheme"

2 - Change window theme (Metacity)


Unity, GNOME 3 Classic (Metacity), GNOME 3 Shell (Metacity > Mutter)
gsettings set org.gnome.desktop.wm.preferences theme "Mytheme"

Cinnamon (Metacity > Muffin)
gconftool --type=string --set /desktop/cinnamon/windows/theme "Mytheme"

Gnome 2 (Metacity)
gconftool-2 --type=string --set /apps/metacity/general/theme "Mytheme"

Mate (Metacity > Marco)
mateconftool-2 --type=string --set /apps/marco/general/theme "Mytheme"

3 - Change Shell theme


Gnome Shell (user-theme extension must be enabled)
gsettings set org.gnome.shell.extensions.user-theme name "Mytheme"

Cinnamon
gsettings set org.cinnamon.theme name "Mytheme"

4 - Change GTK color scheme


Unity, GNOME 3 Shell/Classic, Cinnamon
gsettings set org.gnome.desktop.interface gtk-color-scheme "bg_color:#e9efe9;fg_color:#444444;base_color:#ffffff;text_color:#333333;selected_bg_color:#6666cc;selected_fg_color:#eeeeee;tooltip_bg_color:#222222;tooltip_fg_color:#dfcfcf;link_color:#cc0099;"
  • Reset color:
gsettings set org.gnome.desktop.interface gtk-color-scheme ""

Mate
mateconftool-2 --type=string --set /desktop/mate/interface/gtk_color_scheme "bg_color:#e9efe9;fg_color:#444444;base_color:#ffffff;text_color:#333333;selected_bg_color:#6666cc;selected_fg_color:#eeeeee;tooltip_bg_color:#222222;tooltip_fg_color:#dfcfcf;link_color:#cc0099;"

Gnome 2
gconftool-2 --type=string --set /desktop/gnome/interface/gtk_color_scheme "bg_color:#e9efe9;fg_color:#444444;base_color:#ffffff;text_color:#333333;selected_bg_color:#6666cc;selected_fg_color:#eeeeee;tooltip_bg_color:#222222;tooltip_fg_color:#dfcfcf;link_color:#cc0099;"
  • Reset color :
gconftool-2 --type=string --set /desktop/gnome/interface/gtk_color_scheme ""


Note : You can also try to use some other tools like dconf-tool or gconf-editor

     
Read more...

Wednesday, January 15, 2014

How to change date and time in Linux

0 comments

How to change date and time in Linux

It's easy to change Time and Date in Linux, You can use Gui for that, but some Desktop environments do not have a Gui to change time and date, and Servers have no Gui at all.

So we need a command line for that :D
Remember : It's easier with The command Line :)

1- To change Date and Time :


First we have to use root privileges.

and one command such as this :

To change Date and Time in Linux

Or that one :

To change Date and Time in Linux

Oct stands for October.
2006 = a year.
18:00:00 = 18 hours
                   00 Minutes
                   00 Seconds

To make it short and very easy we can use this command :

To change Date and Time in Linux

%Y stands for the year.
%m stands for the month.
%d stands for the day.

So we will put the year first : 2008.
and month : 11.
and day : 28.

Example : 

We would like to change our date  to 2014, month May, and day 2.

date +%Y%m%d -s 20140502

2 - To change Time only :


Type this command with your modification of the time :

To change Time in Linux

10 : Hours.
13 : Minutes.
13 : Seconds.

Note : # sign is not part of the commands, It indicates only that we are signed to terminal as root.

     
Read more...

Tuesday, December 31, 2013

Find command

0 comments

Linux commands - Find command

Find files under a specified directory that match conditions you specify.

find / -name myfile*

Find files in the root directory and all directories under it that have file names beginning with myfile. The * is a wild-card character that represents any number of characters. The ? is a wild-card character that represents a single character.

find -name '*.pdf' -print -exec chown User2 {} \;

Find all files in this directory and all subdirectories that end with .pdf, display the names of all files that are found on the screen and, for each file (indicated by the curly braces — {}), change its owner to User2.
 The -print option is not necessary, but it is handy to track the progress of the find command. If you do not use -print, the find command is silent except for error messages from find or from chown.

find -name '*.pdf' -exec grep -il 'SOMETHING' {} \;

Find all files in this directory and all subdirectories that end with .pdf and look for the pattern SOMETHING in each of the files. The -i option to grep makes the search case-insensitive. The -l option to grep causes grep to display the names of the files that have SOMETHING in them. When a file is found that contains SOMETHING, this command displays the full path to the file from the current directory (for example,
./home/user/Documents/Linuxcommand.pdf).

     
Read more...

Tuesday, December 3, 2013

play music using vlc without gui

0 comments

play music using vlc without gui

play music using vlc without gui



This topic post is dedicated to engaging lovers Terminal,
How to run the media by VLC through terminal (command line)
with ncurses you can do it .

vlc -I ncurses path

example

vlc -I ncurses ~/Music/*.mp3

There are many options such as raising one's voice by clicking on the 'a' right-or decrease the 'z'
To find out more options click on the 'h'

     
Read more...