General :: Osx - How Does Mac's Command Line Compare To System
Aug 23, 2010
I love Ubuntu Linux - especially the commmand line. But I have to admit that, at least for now, Windows is more user-friendly - there's more software for it, more drivers, and more stuff just works.
Knowing that Mac is built on Unix makes me wonder if it's the sweet spot between them. But I wonder: how similar is the Mac command line to Linux's bash? Could I pick right up with using vim and bash scripting and git, etc? Would common commands like changing directories be different? Does anybody know an online "compare and contrast" resource?
I have two files (not sorted) and need to compare line by line (i.e. first line of file1 to be compared to all the lines of file2 and so as for the rest of file1). Output will be an array of length of file2. Any suggestion in BASH other than a grep inside two read line loops ( which is time consuming for files ~1000s of lines).
I am trying to write a program in C which compares two files and prints the line that is equal.
Here file1.txt has
and file2.txt has
Note: file2.txt consist of only a single string where as file2.txt has multiple lines. Actually im comparing two files with md5sum values.
Here is the code but it compares only first line of files..but it should compare the whole file1..and sorry iam a beginner in C can any1 sujest some modification to this code so that..it can compare file2 with entire file1
I just started using ubuntu after being a long time windows user.
what i find really interesting is that in command line, i can type many programs and commands, eg firefox can be run via command line from anywhere. In windows cmd prompt, im used to having to run the .exe file by first navigating to it, then being able to run the .exe.
what i wanna know is how does linux know all the programs at the command line?
Possible Duplicate: Version of Linux with a command prompt?
Which software of Linux to use for command line running? Since I am using MySQL to run from Linux and want to run Linux, which software to download in Linux? There are multiple ones. Can I run .sh scripts and learn how to operate on Linux using the command line? Also use MySQL as backend on Linux?
I have a Debian Linux desktop. I want to change the screen's brightness without pressing the brightness button of my monitor. How can I do this? is this possible in command line or is there an application to be installed?
Here i want to compare these two files with diff command and need to take the common things in a separate file. File contents are 7 strings in length and everything will start with the character e. File 3 contents should be
As a strategy for learning linux I have decided to adopt using a lean windows based approach. I want to focus on command line machine system, network basics, and file management knowledge. In other words find out how desktop manager does it's business, so I know how to master my machine, but by and large once I have made my choices, leave it alone to do just that.
I figure I should know how applications are internally configured etc., but I also figure an apps GUI and config choices should take care of installations, and program usage as in M$ windows. Surely taking care of an applications dependencies are the responsibility of the developer, are they not?
I am working my way through "Rute User's Tutorial and Exposition (Version 1.0.0)" right now for an overall viewpoint. Can anyone suggest a specific source for a point by point explanation of the command basis of a generalised "desktop management" application (KDE,LXDE)? Better yet would be if it had some parallel comparison of the varied approaches taken by different distributions of linux.
A secondary question, is that allowed? Up to a certain point in Ms windows, a thorough knowledge of DOS 6.xx would theoreticaly enable one to more or less duplicate the actions of the windows overlay. Is there a basic distribution (or subset in all of them maybe?) of linux that would be consistent with that paradigm? What would be analogous to DOS batch files, or GM-Basic? Oh! that's 3.I am certainly appreciating the depth of this forum, and the breadth of knowledge among you forumite's. Reading it is time well spent.
I just booted into Linux and the Update Manager prompted me to restart. After the restart the GRUB interface I expect to see is no longer there and now it is just a command line that says press tab for more options. I have not got a clue with shell language as I have had no time to learn it as of yet. Do I need to uninstall and reinstall Linux or is there a command that can be typed that boots up the operating system. Even better if there is something I can do is there also another command that can bring back that interface I was used to.
I am using ubuntu operating system, recently I am getting one problem when i am using the system . system is automatically going to command line mode it is asking user name and password. After entering user name and password I can able to use the system only in command line mode. Again when i restart I am getting gui as usual. Please help me to resolve the problem.
I built Ubuntu desktop up from a server install. I'm using Gnome. I want to change the system's language, and I have no menu option to enter System>Preferences>Language Support. I need to either:1.) Install whatever will place that option in the menu.2.) Affect the change via the command line (preferable).I just can't figure out what to install and Google only produces GUI tutorials. =/
After installing the 10.10 Maverick Meerkat, I decided to have a new partition and install Windows 7 on it for development purposes. So this is the method I worked with:
Partitioned the hard disk with gparted Formatted the drive in NTFS Installed Windows
Booted into Ubuntu 10.10 Live CD and re-installed grub on the MBR Now after restarting the system a grub command line boots up. I was able to boot into ubuntu with the following commands:
My computer is a netbook with no optical drive. I had a friend bring over an external CD drive to burn the live CD, but I don't have that now. Since then, I've messed up my install beyond easy repair, so I was wondering if there was a simple (or perhaps not so simple) command that would reinstall every package from the software repositories (I do have access to the Internet, just no GUI). I'm talking about a clean install here.
i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?
I'm a Linux newbie and don't know how to do a lot of things. Five months ago, I asked a friend at FreeGeek Columbus to delete the extaneous operating systems from my computer just leaving the one I used, and he accidentally deleted them all. No problem, I'll just reinstall when I get home. But everytime I try to reinstall K/Ubuntu, I get an error message saying Installation Failed. The installer encountered an error copying files to the hard disk: [errno 5] Input/output error.
That happens with four Ubuntu installation Cds, three live Ubuntu Cds, one Kubuntu live CD, and one Fedora live CD. I suppose there's a problem with my DVD rom. PCLinuxOS and openSUSE, however, do install, so those are what I've been using (I've only recently ceased with openSUSE, for the time being). Today, however, I got lucky trying out something different. I used an Ubuntu 9.04 alternative CD (not live as they abort when they come to the input/output error message) to install the base system and grub with lvm.
It allows me skip over software installation which is where the input/output error message happens. It boots to a command line. I don't know what commands to use to get the software to install from a mirror, or how to install repositories from the command line. I've never had Kubuntu, per se (only Ubuntu with the KDE desktop); so since PCLinuxOS GNOME 2010 (a rolling distro) is more stable and polished than Ubuntu 9.10, I'd like to fill my base system out with Kubuntu software.
I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...
I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,