需要检查一下这个文件是否 shell 脚本, 如果是shell脚本, 才可以使用 “sh ***.run”的形式执行。
如果本身是一个可执行的命令程序, 不需要使用 sh, 直接加上执行权限, 执行这个应用程序就可以 (类似 windows下的 。exe文件 )如果不是shell脚本
1. file 文件名
可以查看文件类型;
2. 或者: more 文件名
查看文件内容是否可读文本
3. 修改权限
chmod 777 文件名
或者: chmod a+x 文件名
如果没有权限, 需要文件属主或管...
尝试挂载光盘镜像时出现mount: you must specify the filesystem type 使用-t auto -t iso9660 或不加参数都搞不定,最后在以下链接找到解决办法:http://blog.itpub.net/27015256/viewspace-772686/[root@primary dev]# mount /dev/cdrom /mnt/cdrommount: you must specify the filesystem type处理方法:虚拟机-〉setting->cd/dvd-〉device status-.connected前面的勾打上原文:http://www.cnblogs.com/cation/p/3680030.h...
注:本文参照博客:https://blog.csdn.net/initphp/article/details/76929231. 概述2. 示例说明2.1 无makefile编译2.2 有makefile编译1. 概述Makefile是一个C语言的程序编译规则。它能够帮助C语言建立自动化编译流程。一旦写好,便可以通过执行make命令,来编译整个工程。2. 示例说明创建项目如下:
val.h和val.c
val.h #include<stdio.h>#include<stdlib.h>#include<unistd.h>int val(int *x);val.c #include "val.h"int ...
Last week my friend brought me an evidence file duplicated from a Linux server, which distribution is CentOS 5.0 and the i18n is zh-tw. She wanna know whether there is any malware on this Linux server or not. OK. Let‘s get to work. I add this evidence and do Evidence Process. Guess what??? EnCase could not recognize Chinese character folder names / filenames, and those folder names / filenames b...
最近研究linux,对linux的profile文件和bashrc文件有些不清楚,于是深入研究了一下。 如果想知道这些文件什么时候被执行,还需要知道几个关于shell的小知识。(CentOS6.5 linux) 1.login shell,登录shell,即init 3启动linux后,需要输入用户名和密码,进入的shell就是loginshell。 注意:在shell里使用su - user_name 切换用户,登录的shell也是login shell login shell会读取的文件有:/etc/profile,$HOME/...
通过命令ulimit -a查看的open files参数的修改:[root@nginx ~]# ulimit -acore file size (blocks, -c) 0data seg size (kbytes, -d) unlimitedscheduling priority (-e) 0file size (blocks, -f) unlimitedpending signals (-i) 7697max locked memory (kbytes, -l) 64max memory size (kbytes, -m) unlimitedopen files (-n)...
今天同事想在redhat6.4系统环境下,收集IBM3650 m4的所有硬件日志信息,当执行IBM的日志收集程序的时候,出现如下报错:/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory原因:在64位的系统中执行了32位的程序解决方法:yum -y install glibc.i686本文出自 “小小的进步,愿与你分享” 博客,请务必保留此出处http://lidaxia.blog.51cto.com/11588738/1904961原文:http://lidaxia.blog.51cto.com/11588738/19...
一. 文件重命名与移动(mv) 在linux中,重命名文件称为移动(moving)。mv命令可以将文件和目录移动到另一个位置或重新命名。 1.1 使用mv重命名 下面在/usr/local下面创建一个空文件为test, 使用mv命令重命名为test1, 查看inode编号和时间将会保持不变,因为mv只影响文件名。如下图所示: 1.2 使用mv移动位置 下面使用mv将 local下的test1文件 移动到/src目录下,inode编号和时间将会保持不变,只是移...
修复/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory问题 1、在64系统里执行32位程序如果出现/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory,安装下glic即可 yum install glibc.i686 2、error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directoryyum install zlib.i686 原文:http://www.cnblogs.com/rusking/p/6666587.html
解决centos7/redhat7安装oracle11g到%70报错问题Linux/Centos 安装oracle报错“调用makefile ‘/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk的目标” 解决办法如下图为报错:解决办法:
#vim/oracle-11g/app1/oracle/product/11.2.0/dbhome_1/sysman/lib/ins_emagent.mk加入 -lnnz11如下图所示点击重试,继续安装,问题解决如果对此有兴趣,请扫下面二维码免费获取更多详情原文:http://blog.51cto.com/11233498/21...
前提:windows 7 /windows8 / windows 10系统已安装FileZilla软件: 我们还有一个Linux系统,系统上安装了ssh服务,并且开放了22端口。 操作:1.打开软件:FileZilla,出现如下界面 2.在如下几个输入框中分别填写如下内容:主机(H):使用sftp协议和需要链接的Linux的Ip,例如: sftp://192.168.75.21用户名(U):输入Linux的用户名,例如: root密码(W):输入linux密码,此处根据系统自己的设置的密码填入。端口(P):默认...
嵌入式 Linux开发Kernel移植(三)——Kernel工程Makefile分析 本文选择三星发布的基于SMDKV210开发板的linux 2.6.35.7版本kernel。一、Kernel Makefle体系简介1、Kernel Makefile体系组成 Kernel Makefile体系包含Kconfig和Kbuild两个系统。Kconfig系统 Kconfig 对应的是内核配置阶段,make xxconfig就是在使用Kconfig系统。Kconfig由三部分组成:scripts/kconfig/*Kconfig文件解析程序kconfig 各个内核源代码目录中的...
650) this.width=650;" src="http://blog.chinaunix.net/attachment/201406/16/14735472_14028883441bDJ.png" width="360" height="450" border="0" hspace="0" vspace="0" title="" /> 这个一定要理解登录式shell和非登录式shell的区别,前者是完全切换用户,后者是不完全,就算切换过来了,你pwd时家目录还是之前的家目录,所以 登录式顺序为:/etc/bashrc---/etc/profile.d/*.sh----~/.bash_profile---~/.bashrc_profile...
.SUFFIXES:.c .o //.c和.o建立关联CC=gcc
SRCS=hello.c add.c //同时编译两个.c文件OBJS=$(SRCS:.c=.o)//ORJS=hello.o add.o
EXEC=hellostart: $(OBJS) //依赖hello.o add.o$(CC) -o $(EXEC) $(OBJS)@echo‘----------------ok------------‘.c.o:$(CC) -o $@ -c $<//自动根据$(OBJS) 中.o的数量循环编译, 直到编译完所有的.c文件clean:rm -f $(OBJS)/*‘).addClass(‘pre-numbering‘).hide();$(this).addClass(‘has-n...
对于Linux系统中,一般字符设备和驱动之间的函数调用关系如下图所示上图描述了用户空间应用程序通过系统调用来调用程序的过程。一般而言在驱动程序的设计中,会关系 struct file 和 struct inode 这两个结构体。用户空间使用open()系统调用函数打开一个字符设备时( int fd = open("dev/demo", O_RDWR) )大致有以下过程:在虚拟文件系统VFS中的查找对应与字符设备对应 struct inode节点遍历字符设备列表(chardevs数组),根据ino...