background preloader

Linux

Facebook Twitter

Determine Linux version | Linux | Tech-Recipes. 10 mistakes new Linux administrators make | 10 Things | TechRepu. Speed up eth0 (from 10 Mb/s to 100 Mb/s) - Ubuntu. How to change Ethernet network card speed and duplex settings in. Basic vi Commands. What is vi? The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product of GNU.] The UNIX vi editor is a full screen editor and has two modes of operation: Command mode commands which cause action to be taken on the file, and Insert mode in which entered text is inserted into the file.

In the command mode, every character typed is a command that does something to the text file being edited; a character typed in the command mode may even cause the vi editor to enter the insert mode. In the insert mode, every character typed is added to the text in the file; pressing the <Esc> (Escape) key turns off the Insert mode. While there are a number of vi commands, just a handful of these is usually sufficient for beginning vi users. To assist such users, this Web page contains a sampling of basic vi commands. NOTE: Both UNIX and vi are case-sensitive. To Get Into and Out Of vi To Start vi. MountWindowsSharesPermanently. This document describes how to mount CIFS shares permanently. The shares might be hosted on a Windows computer/server, or on a Linux/UNIX server running Samba. This document also applies to SMBFS shares, which are similar to CIFS but are deprecated and should be avoided if possible (link).

(This document does not describe how to host the shares yourself, only how to access shares that are hosted somewhere else. For hosting shares, use Samba.) We're assuming that: Network connections have been configured properly. Sudo apt-get install cifs-utils On older systems: sudo apt-get install smbfs First, let's create the mount directory. Sudo mkdir /media/windowsshare Then edit your /etc/fstab file (with root privileges) to add this line: //servername/sharename /media/windowsshare cifs guest,uid=1000,iocharset=utf8 0 0 Where After you add the entry to /etc/fstab type: sudo mount -a This will (re)mount all entries listed in /etc/fstab. gedit ~/.smbcredentials username=msusername password=mspassword.

UNIX Tutorial One. 1.1 Listing files and directories ls (list) When you first login, your current working directory is your home directory. Your home directory has the same name as your user-name, for example, ee91ab, and it is where your personal files and subdirectories are saved. To find out what is in your home directory, type % ls The ls command ( lowercase L and lowercase S ) lists the contents of your current working directory. There may be no files visible in your home directory, in which case, the UNIX prompt will be returned. Ls does not, in fact, cause all the files in your home directory to be listed, but only those ones whose name does not begin with a dot (.)

To list all files in your home directory including those whose names begin with a dot, type % ls -a As you can see, ls -a lists files that are normally hidden. ls is an example of a command which can take options: -a is an example of an option. 1.2 Making Directories mkdir (make directory) % mkdir unixstuff 1.3 Changing to a different directory. 10+ mistakes Linux newbies make. This is a guest post by TechRepublic's Jack Wallen. For more posts like this see TechRepublic's 10 Things blog. New desktop users can make plenty of mistakes (as can anyone). But knowing which mistakes to avoid, from the start, helps prevent a LOT of frustration.

I’ve handled the topic of mistakes new Linux admins make, but never those of desktop users. Here are some of the most common Linux desktop mistakes I see new users make. Note: This article is also available as a PDF download. 1: Assuming they are using Windows Although this might seem way too obvious, it’s not. 2: Trying to make exe files work Unless you have done your homework and installed WINE, double-clicking those .exe files simply won’t do anything. 3: Choosing the wrong distribution One of the biggest problems for users is choosing the wrong distribution. 4: Not finding software Because so many new Linux users are migrating from Windows, they think software can be had from the same channels.

I see this so often.