Hot Downloads



The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Linux Mini Tips&tricks

Linux Mini Tips&tricks 13 years 5 months ago #10428

  • ping
  • ping's Avatar Topic Author
  • Offline
  • Distinguished Member
  • Distinguished Member
  • Posts: 181
  • Thank you received: 0
Here are some commands that I use and thought might be interesting:
You can view the directories in color:
[code:1]alias ls="ls --color=tty"[/code:1]

If you use "cd" it will take us to the $HOME directory and to go back to the previous directory you have type "cd -"

How to split files so that you can put them on floppy discs
[code:1]split -b 1400000[/code:1]

to make the file back together
[code:1]cat x* > original_filename[/code:1]
You can open another terminal by typing "screen" and you can detach from it by pressing CTRL+A+D

You can run a process in the background by using "&" at the end of the command

If you want to run a previously used command you can type "!" and a part of the beginning of the command
eg: for

[code:1]vi /home/user/README[/code:1]

you can type


Do you want to monitor a log or a file that continuously grows?

[code:1]tail -f file_name[/code:1]

and you wont have to open/close it every time when you want to see what has been added to the file

To give a message to the people that are connected to your computer
[code:1]wall message[/code:1]

Are you annoied by the messages? Stop them

[code:1]mesg n[/code:1]

Do you want to edit a file that you know the name but you don't know where it's located?

[code:1]emacs $(which file_name)[/code:1]

This is all I can think of right now, feel free to continue the list :D

The greatest pleasure in life is doing what people say you can not do..!!

Re: Linux Mini Tips&tricks 13 years 5 months ago #10441

  • jhun
  • jhun's Avatar
  • Offline
  • Senior Member
  • Senior Member
  • Posts: 356
  • Thank you received: 0
nice post there ping..this would really help alot both for noobs and expert linux users... :D

Re: Linux Mini Tips&tricks 13 years 3 months ago #12114

Hi Ping !!

Nice Post really, as Jhun said it would really help experts as well as newbies like me :lol:


Re: Linux Mini Tips&tricks 13 years 2 months ago #12331

To extend his bit on "screen", not only can you detach and reattach to screen sessions, you can also do things like lock the terminal (ctrl-a ctrl-x), and have multiple terminals in one screen session (ctrl-a ctrl-c to create new ones). Screen is really sweet stuff, especially for when you're ssh'ing to a remote box.

Also, here's some configs I picked up from a mailing list a while back that puts a nice clock and listing of active screen terminals at the bottom. Pretty colors, too :)

It'll also make F7 and F8 be "back and forth" buttons for going through terminals.

Just put it in your .screenrc file in your home directory.

[code:1]hardstatus alwayslastline "%{km}%H%{mk} %{yb}%-Lw%{= yb}%50>%n%f* %t%{-}%+Lw%< %{gk}%-19=%C%a %D,%d %M "

bindkey -k k7 prev
bindkey -k k8 next
startup_message off

Oh, and you forgot the most important linux command ever!


If there's one thing I hate, it's everything.
  • Page:
  • 1
Time to create page: 0.103 seconds


Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V


  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup