linux office programs

Discover linux office programs, include the articles, news, trends, analysis and practical advice about linux office programs on alibabacloud.com

Writing C programs under the Linux environment

the desktop. (Input in terminal)CD Desktop//Then press ENTER3. Create a folder (this step can be skipped, but recommended)mkdir file name4. Create a textgedit Hello WORLD.C//Then press ENTER to jump out of a Windows-like Notepad5. Go inside and knock the codeCInclude int main(void) { printf("hello world!"); return 0; } 6.保存代码,关闭文本框。按esc,再输入:wq(一开始看不到尽管输进去,wq为保存并关闭,也可为w则为保存不关闭) 7.启动gcc对代码进行编译。 gcc helloworld.c -o execFile(此步骤会生成一个execFlie的文件,可用ls查看)8.如果有错误,系统会提示,按方向键找回gedit helloworld.c 的指令,按下回车

Win7+putty+xming running programs on Linux remotely (can display the program interface)

1, install xming, run Xlaunch, select Multiple window Start a program Xterm Using Putty ... (IP parameters of remote host) Tick Clipboard, additional parameters for PuTTy or ssh fill in-X The xming configuration is complete.2, configure putty, find the path connection->ssh->x11, do some settings3, the next normal connection on SSH, and then run the program, such as Wireshark, appear Wireshark interfaceWin7+putty+xming running progra

Generic script for starting Java programs under Linux 2

not started!"Exit 1FiIf ["$"! = "Skip"]; Then$BIN _dir/dump.shFiEcho-e "Stopping the $SERVER _name ... \c"For PID in $PIDS; DoKill $PID >/dev/null 2>1DoneCount=0While [$COUNT-lt 1]; DoEcho-e ". \c"Sleep 1Count=1For PID in $PIDS; DoPid_exist= ' PS--no-heading-p $PID 'If [-N "$PID _exist"]; ThenCount=0BreakFiDoneDoneecho "ok!"echo "PID: $PIDS"Third, restart.sh#!/bin/bashCD ' DirName $ './stop.sh./start.sh Copyright NOTICE: This article for Bo Master original article, without Bo Master permission

Compile C language programs in Linux

Compile C language programs in Linux 1. First install the gcc package, run the C ++ program, and install the gcc-c ++ package If no installation is available, install it on your own. 2. Edit the C language program, Print the multiplication table [Root @ Db1 c] # vim chengfa. c On the editing page, enter # Include Save and exit 3. Compile with the gcc command After compilation, an a. out file

General Script 2 for starting java programs in linux, linuxjava

General Script 2 for starting java programs in linux, linuxjava 1. start. sh #! /Bin/bashCd 'dirname $0' BIN_DIR = 'pwd' Cd .. DEPLOY_DIR = 'pwd' CONF_DIR = $ DEPLOY_DIR/conf SERVER_NAME = 'sed '/server. name /! D; s/. * = // 'conf/server. properties | tr-d' \ r'' SERVER_PORT = 'sed '/server. netty. port /! D; s/. * = // 'conf/server. properties | tr-d' \ r'' If [-z "$ SERVER_NAME"]; then SERVER_NAME =

Methods for obtaining absolute paths in C Programs in Linux

Someone in the group yesterday asked Linux C how to obtain the absolute path of the program. When I first read this question, I thought it was very simple. Just use getcwd or argv [0. I wrote a program and tried it, # Include Compile: Gcc-wall-pipe-g-static-O getpath. c It is found that getcwd does not work. This function returns the current execution path. If you execute this program in another directory, such ~ /. The call will not work. Argv

. Run. NET core programs on Linux

1. Install the. NET core environmentRPM--import https://PACKAGES.MICROSOFT.COM/KEYS/MICROSOFT.ASC' echo-e "[Packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl= https:// packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https:// Packages.microsoft.com/keys/microsoft.asc ">/etc/yum.repos.d/dotnetdev.repo"Yum Updateyum install libunwind libicuyum install dotnet-sdk-2.0. 22. OperationNew console-o myappcd myApp. Run. NET core

The relationship between Linux programs and processes

, can be followed by S, M, H or D where s is seconds, M is minutes, h is hour, D is dayNumberTo terminate the running of a processKill:kill-9 2288Killall:killall-9 sleep kills all sleep processes.Pkill: Terminates a user's process based on a specific condition. W|grep-v "root" to view non-root users; pkill-9-T PTS/4 kicks the user out of TPS/4 terminalScheduled Task management atOne-time Scheduled tasksService Script Name:/ETC/INIT.D/ATDFormatting: at [hh:mm] [YYYY-MM-DD]At 23:00 Enter atShutdow

The order of Linux boot programs

1. Load Biso hardware information and get the first boot code2. Read the boot loader information of the MBR of the first boot device3. Load kernel OS core information, start extracting, and drive all hardware devices4.kernel Execute init program and obtain run-level information5.init Executive/etc/rc.d/rc.sysinit Archive6. Launch the core plug-in module7.init execution of Run-level of each batch file8.init Executive/etc/rc.d/rc.local Archive9. Execute the/bin/login program and wait for the user

Compiling 32-bit programs for i386 intel on 64-bit Linux

In edit# ld-vGNU ld version 2.15.92.0.2 20040927Supported Emulations:Elf_x86_64Elf_i386I386linux#ld-M elf_i386Along with The-m32 flag in GCC, your may need to include the-melf_i386 flag for LD to properly link the 32bit objectFiles to the 32bit libraries if you have both the 32bit and 64bit libraries.Make libdir=/usr/lib64Make Libdir=/usr/libThe system needs to link 64-bit library files while/usr/lib/libexpat.so is the 32-bit ELF format, so the format is not correct. When configure is addedldfla

commands for adding boot programs to different Linux systems

See http://phpcj.org/blog/%E4%B8%8D%E5%90%8Clinux%E7%B3%BB%E7%BB%9F%E6%B7%BB%E5%8A%A0%E5%BC%80%E6%9C%BA%E5%90% af%e5%8a%a8%e7%a8%8b%e5%ba%8f%e7%9a%84%e5%91%bd%e4%bb%a4/commands for adding boot programs to different Linux systemsAuthor: Breeze Date: September 16, 2011 Comment (0) View commentsGentooRc-update Add nginx DefaultCentos/fedora:Chkconfig Nginx onUbuntu:Update-rc.d-f Nginx Defaults=================

C programs under Linux, using function EXECLP to run shell commands

Run the shell command through the C program, using the EXECLP function EXECLP Several parameters are: file name, each parameter, (char*) 0 Where the first parameter in the "Parameters" section is the file name (equivalent to the file name entered two times) Last parameter Write (char*) 0 Yes File B.cpp Code: Loop through the commands → execute the command until you press CTRL + C to end #include Compile b.cpp into executable file B (input command: g++ b.cpp-o b) Then open file B and enter the c

C + + programs under Linux: Count the total amount of space that a directory and its internal files occupy

The simplest way to count the size (number of bits) of a directory is to enter the command in the console: DU-SB Directory Address implementing this function in C + + is achieved by recursively traversing files and subdirectories in the directory. It is important to note that because the byte count is too large, only one integer is counted for the number of bytes, and a larger directory will overflow. So I used TB, GB, MB, KB, and byte five levels to represent the size of a directory. My code

How to compile, run C, C + + programs under Linux?

The most important software development tool in Linux is GCC. GCC is the GNU C and C + + compiler. In fact, GCC can compile three kinds of C, C + +, and object C (an object-oriented extension of the C language). Use the GCC command to compile and connect both C and C + + source programs at the same time. #DEMO #: HELLO.C If you have two or a few C sources, you can also easily compile, connect, and build e

Suspended animation when Eclipse for Linux programs are used

If you have suspended animation and cannot be closed, open the terminal input commandEclipsesid fill in the Eclipsesid number$top $sudo Kill EclipsesidThen you can force the eclipse of suspended animation to be closed.Solutions for suspended animation1. Open terminal (terminal) and enter the following command:Export swt_gtk3=02. Then enter the Eclipse directory, open the Eclipse,ini file with gedit, and modify it as follows:Cd/home/lt/eclipse/jee-mars/eclipse/sudo gedit Eclipse.ini3. In front of

Solutions for QT programs not being able to input Chinese in Linux

Solutions for QT programs not being able to input Chinese in LinuxA netizen asked me how to enter Chinese in the QT application of Linux, I didn't think it was a problem at first, but I tried it on the back. Not only QT-made applications, even QT creator are not supported. After reading some information, understand the QT application methods, here to share with you.Write a bash script that reads as follows:

stack frame analysis of programs in Linux and modifying function addresses

Here's a piece of code:#include Execution results under Linux:Main call FUN1 Call fun---exit exitFor the problem with this result:Obviously did not call the fun function, why do the fun function, the function is how to jump?How does the stack frame save the information and return it?Analysis Reason:View important stack segments in assembly code650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/83/17/wKiom1dqdS7ChdVmAACpe1R_wTY604.png "title=" screen Shot 2016-06-22 at 19.22.39.png "alt="

Links, mounts, and libraries for C programs under Linux (3)

waste of hard disk space; (two executable files contain ONE.O)Second, when the program loads, the memory is wasted. (Since the ONE.O was loaded two times)Dynamic library, you can solve the above two problems.The same code, the hard disk should be able to exist only one copy, in memory should only exist in order to achieve the savings.This is why, dynamic linking is the time when the program is loaded, only to link. (Because the early link, do not occupy the hard disk space?)That's why, dynamic

Links, mounts, and libraries for C programs under Linux (2)

file, and also to a target file, that is, there is only one function in a target file, there is no other thing.When you use it, you can pick and choose which target file to link to.For example, your colleague already has these:ONE.C contains the void One () {} functionTWO.C contains the Void () {} functionTHREE.C contains the void three () {} functionWait a minute....... And it also provides a header file called All.h, which contains a declaration of all the functions he wrote.When you use it,

Linux C Programs Get directory information (16)

4. Get the current directoryGETCWD will copy the current working directory absolute path to the memory space referred to by the parameter buf5. Set up working directoryChDir6. Get directory informationOpendir Open a DirectoryReaddir Reads directory entry information from the contents of a directory, returns a struct dirent struct pointerClosedir Close an Open DirectoryImplementing the LS command-l-aImplementation process:1. Get the total number of files and the longest file name in this director

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.