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...

Monday, December 30, 2013

Ls command

0 comments

Linux commands - Ls command

List the files in the current directory.

ls -al
List all (-a) the files in the current directory in long (-l) format.

ls *.pdf
List files in the current directory that end with .pdf. The * is a wild-card character that represents any number of characters. The ? is a wild-card character that represents a single character.

ls /home/user
List the files in the directory /home/user.

     
Read more...

Saturday, December 28, 2013

Happy Birthday Linus (Linux)

0 comments

Happy Birthday Linus (Linux)


Microsoft sends Linux a Happy Birthday video.
The video shows despite of the dispute between Penguin and Windows, Bill gates gave a birthday cake for Penguin which the penguin accepts it.

Microsoft sends a clear message , by saying "Linux and Microsoft" instead of the old one "Linux vs Microsoft".

Microsoft wants to work with Linux in the future.







     
Read more...

How to rename a file in Linux

0 comments

How to rename a file in Linux

"mv" command renames the file, It needs only the source of old file and the location will be in with a new name, or with the same name.

It is obvious from the command "mv" that moves files, however It renames them too as well.

An example to demonstrate renaming a file in the same path :

mv {old-file-name} {new-file-name}
mv file myfile

In fact, It moved the file in the same location and gave it a new name.

Note : You can do the same example, but changing the name is necessary or you will get an error.

This example moved a file from a path to another without changing Its name

mv {old-path/file-name} {new-path/file-name}
mv ~/Myfile ~/Desktop/Myfile 

This example changes the name and the path as well :

mv {old-path/file-name} {new-path/new-file-name}
mv ~/Myfile ~/Desktop/Mynewfile


Note : The same can be done with folders.

     
Read more...

Thursday, December 26, 2013

How to Download Youtube videos in Linux

0 comments

How to Download Youtube videos in Linux

In this Post, I will show you many ways on how to download Youtube videos in Linux.

Newbies of course will prefer something very easy, that does not require typing a single command.

To download Youtube videos in Linux


Flashgot Add on
Flashgot Add on

This one require to have Firefox, then we have to install this Add on, Flashgot : It allows you to Save movies and audio clips With a single click from all webpages and not only from Youtube.

This Add on also gives the choice to select your external download manager.


2

There are tons of websites that provides that kind of service (Downloading from Youtube).

I recommend These two Websites for you :



3

For the lovers of Command Line, Youtube-dl is the best tool.

To install it in Ubuntu and Ubuntu base distributions like Linux Mint 
type the following command :

sudo apt-get install youtube-dl

for Debian users : 

sudo aptitude youtube-dl

for Arch Users : 

sudo pacman -S youtube-dl

...

You need to search for the video you want to download from Youtube

Open up the Terminal and type in :

youtube-dl {video URL}

Note : Don't forget to replace {video URL} with address URL you copied from the browser's navigation 

youtube-dl

your video will start downloading, but your download may be heavy, and the video will be in a format you don't want.

To download a video in a format of your choice, type in :

youtube-dl -F  {video URL}

youtube-dl -F


it will give you list of different options, showing the formats and resolutions of that video.

Example of youtube-dl -F

choose the code of one you like and type in :

youtube-dl -f  {format code} {video URL}

Note : Don't forget to replace {format code} with code of your choice and {video URL} with address (URL) you copied from the browser's navigation.

youtube-dl -f

In this example, I chosen to download the video in Webm format with resolution [640x360] which Its code is 43.


     
Read more...

Valve's Christmas gift

0 comments

Valve's Christmas gift

Valve now is gives away its wonderful game of zombie shooter, Left 4 Dead 2, for free on download service Steam.

To get your copy of the game, you’ll need to log in to a Steam account, go to Left 4 Dead 2′s store page, and then click ‘install game.’ This expires on December 26th at 10AM PT/1PM ET, this is a great occasion to get this game for free.

     
Read more...

Wednesday, December 25, 2013

Merry Christmas!!

0 comments

Merry Christmas!!

Sorry I was late, but I want to wish everyone a Merry Christmas. I hope everyone is having a very good time with your loved ones these days. Enjoy!.

     
Read more...

Tuesday, December 24, 2013

Linux : Ip Commands

0 comments


Linux : Ip Commands

ifconfig : Display Current Config for all NIC’s.

ifconfig eth0 : Display Current Config for eth0.

ifconfig eth0 192.168.1.2 : Assign IP.

ping -c 3 192.168.1.1 : Ping.

ifconfig eth0:0 192.168.1.2 : Assign multiple IP’s.

ifconfig eth0:1 192.168.1.3 : Assign second IP.

ifconfig eth0 down : Disable network card.

ifconfig eth0 up : Enable network card.

route “or” route -n : View current routing table.

arp “or” arp -n : View arp cache.

ifconfig eth0 192.168.1.2 netmask 255.255.255.0 : Assign IP/Subnet.

route add default gw 192.168.1.1 : Assign Default Gateway.

traceroute www.google.com : Trace Route.

tracepath www.google.com : Trace Path.

host www.google.com : DNS Test.

dig www.google.com : Advanced DNS Test.

Note : Some commands will need root privilege, so better to Enter as Root to perform them all.

     
Read more...

Monday, December 23, 2013

Terminal : keyboard Shortcuts

0 comments

Terminal : keyboard Shortcuts

Keyboard Shorcuts helps in writing codes easily and shorten time.
Some users, probably power users who loves doing some works via the Command Line, performing complicated tasks with just a few keystrokes.

Basic Keyboard Shortcuts

Up/Down Arrows = With those two keys, you can move between your last commands.
Ctrl+Left/Ctrl+Right = Jumps between arguments (words) in your command
Ctrl + U = Clears all characters starting from the cursor position.
Ctrl + K = Clears all characters starting from the end of the command to the position of the cursor.
Ctrl + A = Moves you to the start of the command.
Ctrl + E = Moves you the the end of the command.
Ctrl + L = Clears the screen.
Ctrl + R = Lets you search your command history.
Ctrl + Shift + T = Opens new Tab.
Ctrl + Shift + N = Opens new Terminal.
Ctrl + P = Lets you Browse the command you executed before.
Ctrl+ O = Works as "Enter" button.
Ctrl + Shift + C = Lets you copy selected text.
Ctrl + Shift + V = Lets you paste.
Tab = This is the powerful shortcut, Everyone loves it. It completes paths and commands.

With Path :

cd ~/De 

after hitting Tab, It completes it.

cd ~/Desktop

With command :

nan

after hitting Tab, It completes it.

nano 

What if there are resemblance between names ?

We take for example folder "De" and "Desktop"

we typed "De" and hitting Tab for auto-completion. It makes an output : "De", "Desktop", we have then to add another caracther to make it different.

cd ~/Des

     
Read more...

Saturday, December 21, 2013

Man command

0 comments

man command








     
Read more...

Friday, December 20, 2013

Manjaro gets better and better with each release

0 comments

Manjaro gets better and better with each release

Arch Linux is a lightweight and flexible Linux distribution which aims to simplicity and user-centrism, Manjaro Linux (some people pronounce it with letter "J" while others use letter "H" instead) is based on Arch Linux and carries forward the Arch Linux philosophy. However It's a user friendly  that offers intuitive installation process, automatic hardware detection, stable rolling-release model, ability to install multiple kernels, special Bash scripts for managing graphics drivers and extensive desktop configurability.

Manjaro Linux is cutting egde but not bleeding edge. They have their own repositories and access to Arch User repositories (Aur) as well.

It is a rolling release, that means you can install it once, you will continuously get updates (daily updates) no-matter what release you use, in contrast to standard release software which is upgraded between versions.

It comes with Xfce, Openbox,  Desktops as the core, however you can find Manjaro Minimal Net Edition (Arch way), and Manjaro Community Editions that gives you a choice between many other Desktops such as Gnome, Cinamon, E17, Lxde, Mate, Kde.

I have tried Manjaro Openbox edition and the Xfce Edition as well. All I have to say is, they did a magnificent job, I felt like I'm on Linux mint but using Arch package manager (Pacman). The installation was quite easy. I used Graphic installation but they provide also Cli installation which is fast.

I had not faced any problem yet, but I wasn't doing match work on my computer.

Give it a try, Download Manjaro

Some screenshots of Manjaro With 4 different flavours


Manjaro openbox edition
Manjaro Openbox edition 

Manjaro xfce edition
Manjaro xfce edition


Manjaro Kde edition
Manjaro Kde edition


Manjaro Cinnamon edition
Manjaro Cinnamon edition


     
Read more...

Thursday, December 19, 2013

Who command

0 comments


who command







     
Read more...

Rm command

0 comments

rm command






     
Read more...

Tuesday, December 17, 2013

SteamOs Review

0 comments

SteamOs Review

SteamOS is based on Debian GNU/Linux, well known for its stability. It aims to bring PC gaming into the living room.

SteamOS uses Linux kernel 3.10 and GNOME as Its desktop environment. The system includes basic GNOME applications, such as Brasero, Dconf, Baobab, GNOME Terminal, Evince, Disks, Eye of GNOME, GNOME Dictionary, and GNOME Screenshot. The Iceweasel web browser and the Steam for Linux client are also installed, along with a shortcut for the SteamOS desktop.

Most Linux users are excited to see this operating system which is based on Linux, so I came with these quick screenshots.

steamos gnome activities


steamos login


steamos computer


steamos gnome details

steamos gnome system settings

To Download it : from Here 
Note : Login name and password is : steam

     
Read more...

Saturday, December 14, 2013

Valve's Steam OS available to download now

0 comments

SteamOs is available to download now for people who like to test new things especially those who try new Linux distributions. This is their chance to test a new Linux flavour developed by the Bellevue-based game company.

If you want something working good and stable, you might wait because the system is still beta.

SteamOS is based on Debian GNU/Linux, and it requires to run :


  • Intel or AMD 64-bit capable processor
  • 4GB or more memory
  • 500GB or larger disk
  • NVIDIA graphics card (AMD and Intel graphics support coming soon)
  • UEFI boot support
  • USB port for installation


     
Read more...

Thursday, December 12, 2013

SteamOS will be available to download on December 13

0 comments

SteamOS will be available to download on December 13
Valve company announced that SteamOs will be available for public download on December 13.


The announcement comes as Valve ready their Steam Machine and Steam Controller prototypes for shipping on the same day. only 300 people will be getting the prototype devices, Valve will be offering its Linux-based OS to everyone when the devices ship on Friday.

Valve has limited The beta to the U.S(300 people), It is obvious that They wanted to make Steam hardware available to testers all over the world, however due to some obstacles, they could not make it accessible for all people who want to test  SteamOs Machines

     
Read more...

Wednesday, December 11, 2013

How to convert binary files into text file?

0 comments

How to convert binary files into text file?

How to convert binary files into text file?

Simply by using this Linux command :

strings <binary file name >


     
Read more...

How to find all tar files in current directory and decompress them ?

0 comments

How to find all tar files in current directory and decompress them ?

How to find all tar files in current directory and decompress them ?


find . -name "*.tar" -exec tar -xvf "{}" ";"


     
Read more...

Sunday, December 8, 2013

Valve joins Linux Foundation

0 comments

Valve's Gabe Newell and Linus Torvalds on Linux and Gaming

Valve has decided to support the Linux community by joining The Linux Foundation. In this short movie, we catch Valve's Gabe Newell discussing the part Linux is playing in the organization's advancement system, and Linus Torvalds discusses the benefits of this for Linux and the Linux desktop in general.




     
Read more...

Saturday, December 7, 2013

Gimp tutorials (+60 videos)

0 comments

Gimp tutorials (+60 videos)

Gimp is a GNU Image Manipulation Program, It is well known in Linux, Unix systems.
It is a good replacement for Adobe Photoshop, and It can be a biggest competitor too.
Free and open source software is a simple way to go.

60+ GIMP Video Tutorials here

     
Read more...

Wednesday, December 4, 2013

Elementary Os distribution

0 comments

Elementary Os distribution

Elementary Os distribution


Elementary OS is an Ubuntu-based desktop distribution. Some of its fascinating features include a new GTK+ and icon theme for GNOME, the Midori web browser, new applications developed in-house (e.g. Dexter, an address book and Postler, an email client), and Nautilus Elementary, a simple file manager.

Linux Distro Elementary OS has a custom Desktop, Window Manager, as well as several custom applications to match the OS style.

It is faster and very lightweight distro, that some Lxde users have switched to it, however It still rely on Ubuntu repo.

Kernel1.2.3
Based onUbuntu 12.04
DesktopPantheon 1.303

Official website : http://elementaryos.org

Some Pictures of Elementary Os Desktop






     
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...

How To Make A Linux Distribution and Promote It

0 comments

How To Make A Linux Distribution and Promote It



This short video can show you how to make your own Linux Distribution and how to promote it or  how to built your Software Project as well as how to design your website, get more users, fans, and supporters.





     
Read more...